summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-06-28 22:49:06 +0200
committerArun Persaud <arun@nubati.net>2007-06-28 22:49:06 +0200
commit14cdf8ad54e90d7b208b72cd0bfd568e9c22bc32 (patch)
tree5ce085c737e6202ebb02af7f561ec5004ccdf86a
parent906d4b7166440641b753148f9b9f158b2e1f2c0f (diff)
downloade-DoKo-14cdf8ad54e90d7b208b72cd0bfd568e9c22bc32.tar.gz
e-DoKo-14cdf8ad54e90d7b208b72cd0bfd568e9c22bc32.tar.bz2
e-DoKo-14cdf8ad54e90d7b208b72cd0bfd568e9c22bc32.zip
CLEANUP: make the code look a bit nicer
just a few small things
-rw-r--r--index.php20
-rw-r--r--output.php2
2 files changed, 11 insertions, 11 deletions
diff --git a/index.php b/index.php
index f5060a0..6eecd4b 100644
--- a/index.php
+++ b/index.php
@@ -289,9 +289,9 @@ else if(myisset("me"))
echo " Gametype: $GT <br />\n";
echo "Rules: <br />\n";
- echo "10ofhearts : ".$r[2]."<br />\n";
- echo "schweinchen: ".$r[3]."<br />\n";
- echo "call: ".$r[4]."<br />\n";
+ echo "10ofhearts : ".$RULES["dullen"] ."<br />\n";
+ echo "schweinchen: ".$RULES["schweinchen"] ."<br />\n";
+ echo "call: ".$RULES["call"] ."<br />\n";
echo "</div>\n";
/* output extra division in case this game is part of a session */
@@ -341,7 +341,7 @@ else if(myisset("me"))
case 'start':
if( !myisset("in") )
{
- check_want_to_play($me);
+ output_check_want_to_play($me);
break;
}
else
@@ -1796,11 +1796,11 @@ else if(myisset("me"))
}
else /* output default user page */
{
- $time = DB_get_user_timestamp($uid);
- $unixtime =strtotime($time);
+ $time = DB_get_user_timestamp($uid);
+ $unixtime = strtotime($time);
- $offset = DB_get_user_timezone($uid);
- $zone = return_timezone($offset);
+ $offset = DB_get_user_timezone($uid);
+ $zone = return_timezone($offset);
date_default_timezone_set($zone);
/* display links to settings */
@@ -1876,7 +1876,7 @@ else if(myisset("me"))
}
else
{
- echo "Sorry email and password don't match <br />";
+ echo "Sorry email and password don't match. Please <a href=\"$host\">try again</a>. <br />";
}
};
output_footer();
@@ -1912,7 +1912,7 @@ else if(myisset("me"))
if($r)
echo " added you to the database";
else
- echo " something went wrong";
+ echo " something went wrong, couldn't add you to the database, please contact $ADMIN_NAME at $ADMIN_EMAIL.";
}
}
/* default login page */
diff --git a/output.php b/output.php
index 59cfeea..262ecd3 100644
--- a/output.php
+++ b/output.php
@@ -256,7 +256,7 @@ function output_check_for_sickness($me,$mycards)
return;
}
-function check_want_to_play($me)
+function output_check_want_to_play($me)
{
?>
<form action="index.php" method="post">