tazbug annotate web/plugins/mybugs/mybugs.cgi @ rev 140
Add 'mybugs' plugin with user profile support
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 20:51:46 2017 +0100 (2017-02-22) |
parents | |
children | b4700d7f9d42 |
rev | line source |
---|---|
pankso@140 | 1 #!/bin/sh |
pankso@140 | 2 # |
pankso@140 | 3 # TinyCM/TazBug Plugin - List bugs for a user |
pankso@140 | 4 # |
pankso@140 | 5 |
pankso@140 | 6 if [ "$(GET mybugs)" ]; then |
pankso@140 | 7 d="My bugs" |
pankso@140 | 8 header |
pankso@140 | 9 html_header |
pankso@140 | 10 user_box |
pankso@140 | 11 if ! check_auth; then |
pankso@140 | 12 echo "You must logged to view user bugs" |
pankso@140 | 13 html_footer && exit 0 |
pankso@140 | 14 fi |
pankso@140 | 15 echo "<h2><a href='?user=$USER'>$(get_gravatar "$MAIL" 48)</a> $USER</h2>" |
pankso@140 | 16 . $plugins/mybugs/user.sh |
pankso@140 | 17 html_footer && exit 0 |
pankso@140 | 18 fi |