tazbug annotate web/plugins/mybugs/mybugs.cgi @ rev 141
Improve mybugs plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 22 21:18:03 2017 +0100 (2017-02-22) |
parents | 49fa101e75f5 |
children | d98dc7dce8d4 |
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@141 | 15 echo "<h2><a href='?user=$USER'>$(get_gravatar "$MAIL" 48)</a> $NAME</h2>" |
pankso@140 | 16 . $plugins/mybugs/user.sh |
pankso@140 | 17 html_footer && exit 0 |
pankso@140 | 18 fi |