include/contents/user/confim.php
# confirm regist
case 1 :
if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$row['name']."'") ) {
db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm)
VALUES('".$row['name']."','".$row['pass']."',-1,'".time()."','".time()."','".$row['email']."',1,1,1)");
echo $lang['confirmregist'];
} else {
echo $lang['confirmregistfailed'];
}
break;
zu folgendem ändern und anpassen!
# confirm regist
case 1 :
if ( 0 == db_count_query("SELECT COUNT(*) FROM prefix_user WHERE name = BINARY '".$row['name']."'") ) {
db_query("INSERT INTO prefix_user (name,pass,recht,regist,llogin,email,status,opt_mail,opt_pm)
VALUES('".$row['name']."','".$row['pass']."',-1,'".time()."','".time()."','".$row['email']."',1,1,1)");
// Willkommens-Nachricht per PM
$uid = db_last_id(); // ID des neuen Users
$sid = 1; // ID des Absenders
$title = 'Willkommen';
$txt = 'Wir freuen uns Dich auf unserer Website begrüßen zu dürfen...blablabla';
sendpm($sid,$uid,$title,$txt,-1);
// Ende
echo $lang['confirmregist'];
} else {
echo $lang['confirmregistfailed'];
}
break;