gibt es eine Option wo der admin ein email bekommt bei neu registierung
verwendete ilch Version: 1.1 P
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
function user_regist ($name, $mail, $pass) { global $allgAr, $lang; $erg = db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$name."'"); if (db_num_rows($erg) > 0) { return (false); } if ( $allgAr['forum_regist_user_pass'] == 0 ) { $new_pass = genkey(8); } else { $new_pass = $pass; } $passwordHash = user_pw_crypt($new_pass); $confirmlinktext = ''; # confirm insert in confirm tb not confirm insert in user tb if ( $allgAr['forum_regist_confirm_link'] == 1 ) { # confirm link + text ... bit of shit put it in languages file $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"]; $id = md5 (uniqid (rand())); $confirmlinktext = "\n".$lang['registconfirm']."\n\n".sprintf($lang['registconfirmlink'], $page, $id ); db_query("INSERT INTO prefix_usercheck (`check`,name,email,pass,datime,ak) VALUES ('".$id."','".$name."','".$mail."','".$passwordHash."',NOW(),1)"); } else { db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm) VALUES('".$name."','".$passwordHash."',-1,'".time()."','".time()."','".$mail."',1,1,1)"); $userid = db_last_id(); } $regmail = sprintf($lang['registemail'],$name, $confirmlinktext, $name, $new_pass); icmail($mail,'Anmeldung',$regmail); # email an user return (true); }
function user_regist ($name, $mail, $pass) { global $allgAr, $lang; $erg = db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$name."'"); if (db_num_rows($erg) > 0) { return (false); } if ( $allgAr['forum_regist_user_pass'] == 0 ) { $new_pass = genkey(8); } else { $new_pass = $pass; } $passwordHash = user_pw_crypt($new_pass); $confirmlinktext = ''; # confirm insert in confirm tb not confirm insert in user tb if ( $allgAr['forum_regist_confirm_link'] == 1 ) { # confirm link + text ... bit of shit put it in languages file $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"]; $id = md5 (uniqid (rand())); $confirmlinktext = "\n".$lang['registconfirm']."\n\n".sprintf($lang['registconfirmlink'], $page, $id ); db_query("INSERT INTO prefix_usercheck (`check`,name,email,pass,datime,ak) VALUES ('".$id."','".$name."','".$mail."','".$passwordHash."',NOW(),1)"); } else { db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm) VALUES('".$name."','".$passwordHash."',-1,'".time()."','".time()."','".$mail."',1,1,1)"); $userid = db_last_id(); } $regmail = sprintf($lang['registemail'],$name, $confirmlinktext, $name, $new_pass); icmail($mail,'Anmeldung',$regmail); # email an user icmail($admin,'Anmeldung',$regmail); # email an useradmin return (true);
$admin = db_query("SELECT mail FROM prefix_user WHERE id = 1");
function user_regist ($name, $mail, $pass) { global $allgAr, $lang; $erg = db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$name."'"); if (db_num_rows($erg) > 0) { return (false); } if ( $allgAr['forum_regist_user_pass'] == 0 ) { $new_pass = genkey(8); } else { $new_pass = $pass; } $passwordHash = user_pw_crypt($new_pass); $confirmlinktext = ''; # confirm insert in confirm tb not confirm insert in user tb if ( $allgAr['forum_regist_confirm_link'] == 1 ) { # confirm link + text ... bit of shit put it in languages file $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"]; $id = md5 (uniqid (rand())); $confirmlinktext = "\n".$lang['registconfirm']."\n\n".sprintf($lang['registconfirmlink'], $page, $id ); db_query("INSERT INTO prefix_usercheck (`check`,name,email,pass,datime,ak) VALUES ('".$id."','".$name."','".$mail."','".$passwordHash."',NOW(),1)"); } else { db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm) VALUES('".$name."','".$passwordHash."',-1,'".time()."','".time()."','".$mail."',1,1,1)"); $userid = db_last_id(); } $regmail = sprintf($lang['registemail'],$name, $confirmlinktext, $name, $new_pass); icmail($mail,'Anmeldung',$regmail); # email an user $admin = db_query("SELECT mail FROM prefix_user WHERE id = 1"); icmail($admin,'Anmeldung',$regmail); # email an useradmin return (true);
function user_regist ($name, $firstname, $familyname, $mail, $pass) { global $allgAr, $lang; $erg = db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$name."'"); if (db_num_rows($erg) > 0) { return (false); } if ( $allgAr['forum_regist_user_pass'] == 0 ) { $new_pass = genkey(8); } else { $new_pass = $pass; } $passwordHash = user_pw_crypt($new_pass); $confirmlinktext = ''; # confirm insert in confirm tb not confirm insert in user tb if ( $allgAr['forum_regist_confirm_link'] == 1 ) { # confirm link + text ... bit of shit put it in languages file $page = $_SERVER["HTTP_HOST"].$_SERVER["SCRIPT_NAME"]; $id = md5 (uniqid (rand())); $confirmlinktext = "\n".$lang['registconfirm']."\n\n".sprintf($lang['registconfirmlink'], $page, $id ); db_query("INSERT INTO prefix_usercheck (`check`,name,firstname,familyname,email,pass,datime,ak) VALUES ('".$id."','".$name."','".$firstname."','".$familyname."','".$mail."','".$passwordHash."',NOW(),1)"); } else { db_query("INSERT INTO prefix_user (name,firstname,familyname,pass,recht,regist,llogin,email,status,opt_mail,opt_pm) VALUES('".$name."','".$firstname."','".$familyname."','".$passwordHash."',-1,'".time()."','".time()."','".$mail."',1,1,1)"); $userid = db_last_id(); } $regmail = sprintf($lang['registemail'],$name, $confirmlinktext, $name, $new_pass); $admin = db_query("SELECT mail FROM prefix_user WHERE id = 1"); icmail($mail,'Anmeldung',$regmail); # email an user icmail($admin,'Anmeldung',$regmail); # email an admin return (true); }
$admin = db_result(db_query("SELECT email FROM prefix_user WHERE id = 1"));
$regmail = sprintf($lang['registemail'],$name, $confirmlinktext, $name, $new_pass); $regmailadmin = sprintf($lang['registemailadmin'],$name, $name); $admin = db_result(db_query("SELECT email FROM prefix_user WHERE id = 1")); icmail($mail,'Anmeldung',$regmail); # email an user icmail($admin,'Anmeldung',$regmailadmin); # email an admin
Geschlossen | ||
Zurück zu Module und Modifikationen |