tazbug diff web/bugs.cgi @ rev 26

Small bug fix (it stable for 4.0)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 10 12:34:20 2012 +0200 (2012-04-10)
parents 828d018ffb0f
children bc985f3f94f0
line diff
     1.1 --- a/web/bugs.cgi	Wed Apr 04 23:57:41 2012 +0200
     1.2 +++ b/web/bugs.cgi	Tue Apr 10 12:34:20 2012 +0200
     1.3 @@ -77,7 +77,7 @@
     1.4  # Authentified or not
     1.5  user_box() {
     1.6  	if check_auth; then
     1.7 -		. $PEOPLE/$user/slitaz.conf
     1.8 +		. $PEOPLE/$user/account.conf
     1.9  		cat << EOT
    1.10  <div id="user">
    1.11  <a href="?user=$user">$(get_gravatar $MAIL 20)</a>
    1.12 @@ -87,7 +87,7 @@
    1.13  	else
    1.14  	cat << EOT
    1.15  <div id="user">
    1.16 -	<img src="images/avatar.png" alt="[ User ]" />
    1.17 +	<a href="?login"><img src="images/avatar.png" alt="[ User ]" /></a>
    1.18  	<a href="?login">Login</a>
    1.19  </div>
    1.20  EOT
    1.21 @@ -189,8 +189,8 @@
    1.22  
    1.23  # Bug page
    1.24  bug_page() {
    1.25 -	if [ -f "$PEOPLE/$CREATOR/slitaz.conf" ]; then
    1.26 -		. $PEOPLE/$CREATOR/slitaz.conf
    1.27 +	if [ -f "$PEOPLE/$CREATOR/account.conf" ]; then
    1.28 +		. $PEOPLE/$CREATOR/account.conf
    1.29  	else
    1.30  		MAIL="default"
    1.31  	fi
    1.32 @@ -395,7 +395,7 @@
    1.33  	key=$(echo -n "$user:$mail:$pass" | md5sum | awk '{print $1}')
    1.34  	echo "$user:$pass" >> $AUTH_FILE
    1.35  	mkdir -p $PEOPLE/$user/
    1.36 -	cat > $PEOPLE/$user/slitaz.conf << EOT
    1.37 +	cat > $PEOPLE/$user/account.conf << EOT
    1.38  # SliTaz user configuration
    1.39  #
    1.40  
    1.41 @@ -409,7 +409,7 @@
    1.42  RELEASES="$(GET releases)"
    1.43  PACKAGES="$(GET packages)"
    1.44  EOT
    1.45 -	chmod 0600 $PEOPLE/$user/slitaz.conf
    1.46 +	chmod 0600 $PEOPLE/$user/account.conf
    1.47  }
    1.48  
    1.49  #
    1.50 @@ -477,7 +477,7 @@
    1.51  		header
    1.52  		html_header
    1.53  		user_box
    1.54 -		. $PEOPLE/"$(GET user)"/slitaz.conf
    1.55 +		. $PEOPLE/"$(GET user)"/account.conf
    1.56  		echo "<h2>$(get_gravatar $MAIL) $(GET user)</h2>"
    1.57  		if check_auth && [ "$(GET user)" == "$user" ]; then
    1.58  			auth_people
    1.59 @@ -549,8 +549,8 @@
    1.60  		id="$(GET bug)"
    1.61  		header "Content-type: text/plain;"
    1.62  		echo "Checking secure key..." 
    1.63 -		if fgrep -qH $key $PEOPLE/*/slitaz.conf; then
    1.64 -			conf=$(fgrep -H $key $PEOPLE/*/slitaz.conf | cut -d ":" -f 1)
    1.65 +		if fgrep -qH $key $PEOPLE/*/account.conf; then
    1.66 +			conf=$(fgrep -H $key $PEOPLE/*/account.conf | cut -d ":" -f 1)
    1.67  			. $conf
    1.68  			echo "Authentified: $NAME ($USER)"
    1.69  			case " $(GET) " in