[LinksOS CVS Commit]website/content person_edit.php,1.3,1.4
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-05 19:41:36
|
Update of /cvsroot/linksos/website/content In directory router-internal.tossell.net:/tmp/cvs-serv25714/content Modified Files: person_edit.php Log Message: Title: Languages in person_edit Changes: Language-specified timezone in person_edit. Effects: Timezone will appear in other languages. a=kennyt Index: person_edit.php =================================================================== RCS file: /cvsroot/linksos/website/content/person_edit.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** person_edit.php 2 Jan 2003 01:26:16 -0000 1.3 --- person_edit.php 5 Jan 2003 19:41:29 -0000 1.4 *************** *** 13,18 **** // if ( $REQUEST["newtimezone"] ) { if ( $_REQUEST["newtimezone"] != $_SESSION["user"][6] ) { ! mysql_query('UPDATE linksos_people SET gmt = \'' . $_REQUEST["newtimezone"] . '\' WHERE uid = ' . $_SESSION["user"][0]) or die('Could not update timezone.<br>'); ! echo 'Timezone updated.<br>'; } // } --- 13,18 ---- // if ( $REQUEST["newtimezone"] ) { if ( $_REQUEST["newtimezone"] != $_SESSION["user"][6] ) { ! mysql_query('UPDATE linksos_people SET gmt = \'' . $_REQUEST["newtimezone"] . '\' WHERE uid = ' . $_SESSION["user"][0]) or die($lang['err_timezone_nup'] . '<br>'); ! echo $lang['timezone_updated'] . '.<br>'; } // } *************** *** 23,27 **** $lang['password'] . ': <input type="password" name="newpassword"><br>' . $lang['confirm'] . ': <input type="password" name="newpasswordconfirm"><br>' . ! 'Timezone: <select name="newtimezone">'; for ( $t = -12; $t < 13; $t++ ) { echo '<option value="' . $t . '"' . ( $t == $_SESSION["user"][6] ? ' selected' : '' ) . '>GMT ' . ($t > 0 ? '+' : ($t == 0 ? '+-' : '-') ) . abs($t) . '</option>'; --- 23,27 ---- $lang['password'] . ': <input type="password" name="newpassword"><br>' . $lang['confirm'] . ': <input type="password" name="newpasswordconfirm"><br>' . ! $lang['timezone'] . ': <select name="newtimezone">'; for ( $t = -12; $t < 13; $t++ ) { echo '<option value="' . $t . '"' . ( $t == $_SESSION["user"][6] ? ' selected' : '' ) . '>GMT ' . ($t > 0 ? '+' : ($t == 0 ? '+-' : '-') ) . abs($t) . '</option>'; |