summaryrefslogtreecommitdiffstats
path: root/include/login.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-10-18 11:33:36 -0700
committerArun Persaud <arun@nubati.net>2008-10-18 11:54:53 -0700
commiteb20bf1a0cae1192eb50c19220e72df8d971d8e7 (patch)
treeb056fd4e9933c733195ebf40ebbb8d5c957df5b3 /include/login.php
parent9cbbe2da9cde298ec2fbacc5029388b2a33db9f8 (diff)
downloade-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/login.php')
-rw-r--r--include/login.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/login.php b/include/login.php
index ea8d8ef..c1a0e42 100644
--- a/include/login.php
+++ b/include/login.php
@@ -6,14 +6,14 @@ if(!isset($HOST))
exit;
/* check if login information is present */
-if(!myisset("email","password"))
+if(!myisset('email','password'))
{
echo "can't log you in... missing login information.";
}
else
{
- $email = $_REQUEST["email"];
- $password = $_REQUEST["password"];
+ $email = $_REQUEST['email'];
+ $password = $_REQUEST['password'];
/* verify password and email */
if(strlen($password)!=32)
@@ -28,7 +28,9 @@ else
{
/* user information is ok, set session variabel */
$myname = DB_get_name('email',$email);
- $_SESSION["name"] = $myname;
+ $_SESSION['name'] = $myname;
+ $_SESSION['id'] = $myid;
+ $_SESSION['pass'] = $password;
}
}
?> \ No newline at end of file