[LinksOS CVS Commit]website/content person_edit.php,1.3,1.4 person_summary.php,1.4,1.5
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-05 19:50:15
|
Update of /cvsroot/linksos/website/content In directory router-internal.tossell.net:/tmp/cvs-serv25877/content Modified Files: person_edit.php person_summary.php Log Message: Title: Timezone Changes: Language-specified timezone; Added timezone display to user info page. Effects: Timezone is localized and is easy to find on a user's page. 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:50:11 -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>'; Index: person_summary.php =================================================================== RCS file: /cvsroot/linksos/website/content/person_summary.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** person_summary.php 30 Dec 2002 09:18:08 -0000 1.4 --- person_summary.php 5 Jan 2003 19:50:11 -0000 1.5 *************** *** 9,12 **** --- 9,13 ---- '<tr><td>' . $lang['real_name'] . ':</td><td><b>' . $person[2] . '</b></td></tr>' . '<tr><td>' . $lang['email'] . ':</td><td><a href="mailto:' . $person[1] . '@users.sourceforge.net">' . $person[1] . ' at users dot sourceforge dot net</a></td></tr>'; + echo '<tr><td>' . $lang['timezone'] . ':</td><td> ' . ($person[6] != 25 ? 'GMT ' . ( $person[6] > 0 ? '+ ' : ($person[6] == 0 ? '+- ' : '' )) . $person[6] : $lang['not_set']) . '</td></tr>'; $user_grouplist_res = mysql_query('SELECT gid,uid,status FROM linksos_members WHERE uid = ' . $person[0]); echo '<tr><td valign="top">' . $lang['teams'] . ':</td><td>'; |