projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
906d4b7
)
CLEANUP: make the code look a bit nicer
author
Arun Persaud
<arun@nubati.net>
Thu, 28 Jun 2007 20:49:06 +0000
(22:49 +0200)
committer
Arun Persaud
<arun@nubati.net>
Thu, 28 Jun 2007 20:49:06 +0000
(22:49 +0200)
just a few small things
index.php
patch
|
blob
|
history
output.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index f5060a077601ea63c1253d5798a04de4b39d3031..6eecd4bae8343fbe3b515cee2ee6c88a21206724 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-289,9
+289,9
@@
else if(myisset("me"))
echo " Gametype: $GT <br />\n";
echo "Rules: <br />\n";
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 */
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") )
{
case 'start':
if( !myisset("in") )
{
- check_want_to_play($me);
+
output_
check_want_to_play($me);
break;
}
else
break;
}
else
@@
-1796,11
+1796,11
@@
else if(myisset("me"))
}
else /* output default user page */
{
}
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 */
date_default_timezone_set($zone);
/* display links to settings */
@@
-1876,7
+1876,7
@@
else if(myisset("me"))
}
else
{
}
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();
}
};
output_footer();
@@
-1912,7
+1912,7
@@
else if(myisset("me"))
if($r)
echo " added you to the database";
else
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 */
}
}
/* default login page */
diff --git
a/output.php
b/output.php
index 59cfeea0543d019d9fcf0c6966537fc46759d98c..262ecd3ef52d59c28043255c181fbe524332ff09 100644
(file)
--- a/
output.php
+++ b/
output.php
@@
-256,7
+256,7
@@
function output_check_for_sickness($me,$mycards)
return;
}
return;
}
-function check_want_to_play($me)
+function
output_
check_want_to_play($me)
{
?>
<form action="index.php" method="post">
{
?>
<form action="index.php" method="post">