tazbug view 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 |
line source
1 #!/bin/sh
2 #
3 # TinyCM/TazBug Plugin - List bugs for a user
4 #
6 if [ "$(GET mybugs)" ]; then
7 d="My bugs"
8 header
9 html_header
10 user_box
11 if ! check_auth; then
12 echo "You must logged to view user bugs"
13 html_footer && exit 0
14 fi
15 echo "<h2><a href='?user=$USER'>$(get_gravatar "$MAIL" 48)</a> $USER</h2>"
16 . $plugins/mybugs/user.sh
17 html_footer && exit 0
18 fi