projects
/
e-DoKo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEW FEATURE: make it possible to view games where people played with the same hand
[e-DoKo.git]
/
include
/
login.php
diff --git
a/include/login.php
b/include/login.php
index ea8d8effac122ab63df92334ad1a08481c2b9439..c1a0e42029c6e1b5ffd2579524082a6a365c703d 100644
(file)
--- a/
include/login.php
+++ b/
include/login.php
@@
-6,14
+6,14
@@
if(!isset($HOST))
exit;
/* check if login information is present */
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
{
{
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)
/* 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);
{
/* 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
}
}
?>
\ No newline at end of file