tazbug diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/web/plugins/mybugs/mybugs.cgi Wed Feb 22 20:51:46 2017 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +#!/bin/sh 1.5 +# 1.6 +# TinyCM/TazBug Plugin - List bugs for a user 1.7 +# 1.8 + 1.9 +if [ "$(GET mybugs)" ]; then 1.10 + d="My bugs" 1.11 + header 1.12 + html_header 1.13 + user_box 1.14 + if ! check_auth; then 1.15 + echo "You must logged to view user bugs" 1.16 + html_footer && exit 0 1.17 + fi 1.18 + echo "<h2><a href='?user=$USER'>$(get_gravatar "$MAIL" 48)</a> $USER</h2>" 1.19 + . $plugins/mybugs/user.sh 1.20 + html_footer && exit 0 1.21 +fi