2 /* make sure that we are not called from outside the scripts,
3 * use a variable defined in config.php to check this
8 if(!myisset("email","password"))
14 $email = $_REQUEST["email"];
15 $password = $_REQUEST["password"];
17 /* verify password and email */
18 if(strlen($password)!=32)
19 $password = md5($password);
22 $myid = DB_get_userid('email-password',$email,$password);
28 /* user information is ok */
29 $myname = DB_get_name('email',$email);
30 $_SESSION["name"] = $myname;