also ich hab auf meiner page son modul installiert... User Control Panel ... Danach kannst du in der Konfig im Admin Bereich einstellen mit was man sich anmelden muss..
lg
zuba
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
function user_login_check () { if ( isset ($_POST['user_login_sub']) AND isset ($_POST['email']) AND isset ($_POST['pass']) ) { debug ('posts vorhanden'); $email = escape_for_email($_POST['email']); if ($email != $_POST['email'] OR strlen($_POST['email']) > 50) { return false; } $erg = db_query("SELECT email,vorname,name,id,recht,pass,llogin FROM prefix_user WHERE email = BINARY '".$email."'"); if ( db_num_rows($erg) == 1 ) { debug ('user gefunden'); $row = db_fetch_assoc($erg); if (user_pw_check($_POST['pass'], $row['pass'], $row['id']) ) { debug ('passwort stimmt ... '.$row['email']); $_SESSION['authname'] = $row['vorname']; $_SESSION['authid'] = $row['id']; $_SESSION['authright'] = $row['recht']; $_SESSION['lastlogin'] = $row['llogin']; $_SESSION['authsess'] = session_und_cookie_name(); db_query("UPDATE prefix_online SET uid = ".$_SESSION['authid']." WHERE sid = '".session_id()."'"); user_set_cookie($row['id'], $row['pass']); user_set_grps_and_modules(); return (true); } } global $menu; $menu->set_url (0, 'email'); $menu->set_url (1, 'login'); } return ( false ); }
function escape_for_email ($t, $leerzeichen = false) { if ($leerzeichen === true) { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076/", "", $t); } else { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076|\040/", "", $t); } return ($t); }
function escape_for_email ($t, $leerzeichen = false) { if ($leerzeichen === true) { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076/", "", $t); } else { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076|\040/", "", $t); } return (strtolower($t)); }
function escape_for_email_login ($t, $leerzeichen = false) { if ($leerzeichen === true) { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076/", "", $t); } else { $t = preg_replace ("/\015\012|\015|\012|\072|\074|\076|\040/", "", $t); } return (strtolower($t)); }
Geschlossen | ||
Zurück zu Kritik und Verbesserungen |