2 /* make sure that we are not called from outside the scripts,
3 * use a variable defined in config.php to check this
8 /* check if login information is present */
9 if(!myisset("email","password"))
11 echo "can't log you in... missing login information.";
15 $email = $_REQUEST["email"];
16 $password = $_REQUEST["password"];
18 /* verify password and email */
19 if(strlen($password)!=32)
20 $password = md5($password);
23 $myid = DB_get_userid('email-password',$email,$password);
29 /* user information is ok, set session variabel */
30 $myname = DB_get_name('email',$email);
31 $_SESSION["name"] = $myname;