From a41eca191e497f8821031e99920e0f053a090b1d Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Wed, 31 Oct 2007 21:18:18 +0100 Subject: CLEANUP: some small code cleanup moved some css from inline to the style sheet, some linebreaks, etc. --- index.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 7ca77d6..74b4fc1 100644 --- a/index.php +++ b/index.php @@ -214,7 +214,8 @@ else if(myisset("cancle","me")) if(time()-strtotime($r[0]) > 60*60*24*30) /* = 1 month */ { $message = "Hello, \n\n". - "Game ".DB_format_gameid($gameid)." has been cancled since nothing happend for a while and $myname requested it.\n"; + "Game ".DB_format_gameid($gameid). + " has been cancled since nothing happend for a while and $myname requested it.\n"; $userids = DB_get_all_userid_by_gameid($gameid); foreach($userids as $user) @@ -226,7 +227,8 @@ else if(myisset("cancle","me")) /* delete everything from the dB */ DB_cancel_game($me); - echo "

Game ".DB_format_gameid($gameid)." has been cancled.

"; + echo "

Game ".DB_format_gameid($gameid). + " has been cancled.

"; } else echo "

You need to wait longer before you can cancle a game...

\n"; @@ -277,7 +279,8 @@ else if(myisset("remind","me")) DB_set_reminder($r[1],$gameid); mymail($To,$EmailName."Reminder: game ".DB_format_gameid($gameid)." it's your turn",$message); - echo "

Game ".DB_format_gameid($gameid).": an email has been sent out.

"; + echo "

Game ".DB_format_gameid($gameid). + ": an email has been sent out.

"; } } else @@ -1117,7 +1120,8 @@ else if(myisset("me")) " Hand.position as position,". " Play.sequence as sequence, ". " Trick.id, ". - " GROUP_CONCAT(CONCAT('',User.fullname,': ',Comment.comment,'') SEPARATOR '\n' ), ". + " GROUP_CONCAT(CONCAT('',User.fullname,': ',Comment.comment,'')". + " SEPARATOR '\n' ), ". " Play.create_date, ". " Hand.user_id ". "FROM Trick ". @@ -1792,9 +1796,9 @@ else if( myisset("email","password") || isset($_SESSION["name"]) ) output_status($_SESSION["name"]); /* display links to settings */ - output_user_settings($email,$password); + output_user_settings(); - echo "
last login: ".date("r",$unixtime)."
"; + echo "
last login: ".date("r",$unixtime)."
"; DB_update_user_timestamp($myid); -- cgit v1.2.3-18-g5258