From 880dfb2e715a3770de56fb525f5c90d28a6ccb4c Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 10 May 2008 12:15:35 -0700 Subject: NEW FEATURE: new settings page, user can now change timezone rewrote the settings page, timezone can now be changed, the user menu shows up on the left on the pref page. Added a link to the pref-page in the left menu. Signed-off-by: Arun Persaud --- include/output.php | 47 ++++++++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 25 deletions(-) (limited to 'include/output.php') diff --git a/include/output.php b/include/output.php index 38356dd..397ed64 100644 --- a/include/output.php +++ b/include/output.php @@ -7,31 +7,6 @@ if(!isset($HOST)) /* functions which only ouput html */ -function output_user_settings() -{ - global $PREF; - - echo "
\n"; - echo "

Settings

\n"; - echo "Change password
"; - - echo "
Card set
\n"; - if( $PREF["cardset"] == "english" ) - echo "Change to German cards
"; - else - echo "Change to English cards
"; - - echo "
Email
\n"; - if( $PREF["email"] == "emailaddict" ) - echo "Change to non-addicted mode (emails for each move)
"; - else - echo "Change to addicted mode (minimal amount of emails)
"; - - echo "
\n"; - - return; -} - function output_ask_for_new_game($playerA,$playerB,$playerC,$playerD,$oldgameid) { global $RULES; @@ -342,6 +317,28 @@ function output_status() return; } +function output_select_timezone($name,$timezone="") +{ + $Tzone = array ( "Europe/London" => "London", + "Europe/Berlin" => "Berlin", + "America/Vancouver" => "Berkeley", + "Pacific/Auckland" => "Wellington" ); + + echo " \n"; + + return; +} + + function output_password_recovery($email,$password) { -- cgit v1.2.3-18-g5258