diff options
author | Arun Persaud <arun@nubati.net> | 2008-10-18 11:33:36 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2008-10-18 11:54:53 -0700 |
commit | eb20bf1a0cae1192eb50c19220e72df8d971d8e7 (patch) | |
tree | b056fd4e9933c733195ebf40ebbb8d5c957df5b3 /include/output.php | |
parent | 9cbbe2da9cde298ec2fbacc5029388b2a33db9f8 (diff) | |
download | e-DoKo-eb20bf1a0cae1192eb50c19220e72df8d971d8e7.tar.gz e-DoKo-eb20bf1a0cae1192eb50c19220e72df8d971d8e7.tar.bz2 e-DoKo-eb20bf1a0cae1192eb50c19220e72df8d971d8e7.zip |
NEW FEATURE: make it possible to view games where people played with the same hand
had to change a few things and check more often if people are logge in, so that for example
personal notes only show up when you are logged in and not when someone else is looking at your cards
Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/output.php')
-rw-r--r-- | include/output.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/output.php b/include/output.php index dd2e535..1531c77 100644 --- a/include/output.php +++ b/include/output.php @@ -270,7 +270,7 @@ function output_header() <title>e-Doko</title> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" /> <link rel="shortcut icon" type="image/x-icon" href="pics/edoko-favicon.png" /> - <link rel="stylesheet" type="text/css" href="css/standard013.css" /> + <link rel="stylesheet" type="text/css" href="css/standard014.css" /> <script type="text/javascript"> var current=0; function hl(num) { @@ -437,6 +437,9 @@ function output_password_recovery($email,$password) function output_user_notes($userid,$gameid,$userstatus) { + /* make sure to only show these if the person is logged in */ + if(!isset($_SESSION['id']) || $userid != $_SESSION['id']) return; + echo "<div class=\"notes\"> Personal notes: <br />\n"; $notes = DB_get_notes_by_userid_and_gameid($userid,$gameid); foreach($notes as $note) @@ -447,5 +450,5 @@ function output_user_notes($userid,$gameid,$userstatus) return; } - + ?>
\ No newline at end of file |