tazbug diff web/bugs.cgi @ rev 112
Small fixes
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 11 00:00:17 2017 +0100 (2017-02-11) |
parents | 3a01dfb5ed7d |
children | d24cd6951458 |
line diff
1.1 --- a/web/bugs.cgi Fri Feb 10 19:34:43 2017 +0100 1.2 +++ b/web/bugs.cgi Sat Feb 11 00:00:17 2017 +0100 1.3 @@ -217,22 +217,6 @@ 1.4 EOT 1.5 } 1.6 1.7 -# Display user public profile. 1.8 -public_people() { 1.9 - cat << EOT 1.10 -</pre> 1.11 -EOT 1.12 -} 1.13 - 1.14 -# Display authenticated user profile. TODO: change password 1.15 -auth_people() { 1.16 - cat << EOT 1.17 -Email : $MAIL 1.18 -Secure key : $KEY 1.19 -</pre> 1.20 -EOT 1.21 -} 1.22 - 1.23 # Usage: list_bug ID 1.24 list_bug() { 1.25 id="$1" 1.26 @@ -706,7 +690,7 @@ 1.27 js_redirection_to "$script" 1.28 fi ;; 1.29 *\ user\ *) 1.30 - # User profile 1.31 + # User profile. Use the users plugin for more functions 1.32 last="$(cat $PEOPLE/"$(GET user)"/last)" 1.33 header 1.34 html_header 1.35 @@ -718,14 +702,8 @@ 1.36 <pre> 1.37 $(gettext "User name :") $USER 1.38 $(gettext "Last login :") $last 1.39 +</pre> 1.40 EOT 1.41 - if check_auth && [ "$(GET user)" == "$user" ]; then 1.42 - auth_people 1.43 - else 1.44 - # check_auth will set VARS to current logged user: re-source 1.45 - . $PEOPLE/"$(GET user)"/account.conf 1.46 - public_people 1.47 - fi 1.48 html_footer ;; 1.49 *\ newbug\ *) 1.50 # Create a bug from web interface.