From 924f395a39eeccbcd54d540613e440cbedd6ba3d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 26 Apr 2008 13:01:41 -0700 Subject: CLEANUP: cleaned up index.php a bit more by introducing an 'action' variable no more if, but one nice switch statement in index.php Signed-off-by: Arun Persaud --- include/user.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/user.php') diff --git a/include/user.php b/include/user.php index 0f67a68..8feac01 100644 --- a/include/user.php +++ b/include/user.php @@ -212,14 +212,14 @@ if(myisset("forgot")) } if($r[4]=='pre') { - echo "\n p "; + echo "\n p "; } else if ($r[4]=='gameover') - echo "\n F "; + echo "\n F "; else { - echo "\n P "; + echo "\n P "; } if($r[4] != 'gameover') { @@ -233,12 +233,12 @@ if(myisset("forgot")) if(DB_get_reminder($r[3],$gameid)==0) if(time()-strtotime($r[2]) > 60*60*24*7) echo "". - "Send a reminder."; + "Send a reminder."; echo "(it's $name's turn)\n"; }; if(time()-strtotime($r[2]) > 60*60*24*30) echo "". - "Cancel?". + "Cancel?". " (clicking here is final and can't be restored)"; } -- cgit v1.2.3-18-g5258