Openid ok, but not registered with any account. If you have an account ". "on E-DoKo, please log in and add your openid in your preferences first.
\n"; /* or perhaps a new user...*/ $email = $data['email']; $name = $data['fullname']; echo "If you wan to register a new account with this OpenID, please follow this ". "link.
"; } else $ok=1; } if($ok) { /* user information is ok, set session variabel */ $email = DB_get_email('userid',$myid); $myname = DB_get_name('email',$email); $password = DB_get_passwd_by_userid($myid); $_SESSION['name'] = $myname; $_SESSION['id'] = $myid; $_SESSION['pass'] = $password; } } else if($OPENIDPATH && myisset('openid_url') && $_REQUEST['openid_url']!='') { OpenIDAskForVerification(OpenIDUrlEncode($_REQUEST['openid_url'])); } /* check if normal login information is present */ else if(myisset('email','password')) { $email = $_REQUEST['email']; $password = $_REQUEST['password']; /* verify password and email */ if(strlen($password)!=32) $password = md5($password); $ok = 1; $myid = DB_get_userid('email-password',$email,$password); if(!$myid) $ok = 0; if($ok) { /* user information is ok, set session variabel */ $myname = DB_get_name('email',$email); $_SESSION['name'] = $myname; $_SESSION['id'] = $myid; $_SESSION['pass'] = $password; } } else { echo "can't log you in... missing login information."; } ?>