Wörk Wörk Wörk
This commit is contained in:
parent
faad932a90
commit
fd22e35e04
7 changed files with 41 additions and 9985 deletions
|
@ -74,10 +74,16 @@ class plugins_mybb {
|
|||
}else{
|
||||
$saltetpass=md5(md5($sdata["salt"]).$sdata["pwd_md5"]);
|
||||
}
|
||||
$gender="Sonstiges";
|
||||
if($sdata["gender"]=="f"){
|
||||
$gender="Frau";
|
||||
}elseif($sdata["gender"]=="m"){
|
||||
$gender="Mann";
|
||||
}
|
||||
$db->query("INSERT INTO `" . $this->mybb_conf["prefix"] . "users` (`username`,`salt`,`password`,`loginkey`,`email`,`usergroup`,`birthday`,`regdate`,`regip`,`showsigs`,`showavatars`,`showquickreply`,`showredirect`,`style`,`receivepms`,`allownotices`,`pmnotice`,`pmnotify`,`birthdayprivacy`,`signature`,`buddylist`,`ignorelist`,`pmfolders`,`notepad`,`usernotes`) VALUES ('".$sdata["username"]."','".$salt."','".$saltetpass."','".$session->generate_Key(50)."','".$sdata["email"]."','2','".date('j-n-Y',$sdata['birthday'])."','".time()."',".$db->escape_binary($functions->my_inet_pton($session->ip)).",'1','1','1','1','3','1','1','1','1','none','','','','0**$%%$1**$%%$2**$%%$3**$%%$4**','','')");
|
||||
$lid=$db->last_id();
|
||||
$db->query("UPDATE `" . $config["prefix"] . "users` SET `fuid`='".$lid."' WHERE `uid`='".$sdata["uid"]."'");
|
||||
$db->query("INSERT INTO `" . $this->mybb_conf["prefix"] . "userfields` (`ufid`, `fid1`,`fid2`, `fid3`) VALUES ('".$lid."','".$sdata["from"]."','', '".$sdata["gender"]."')");
|
||||
$db->query("INSERT INTO `" . $this->mybb_conf["prefix"] . "userfields` (`ufid`, `fid1`,`fid2`, `fid3`) VALUES ('".$lid."','".$gender."','', '".$sdata["gender"]."')");
|
||||
}
|
||||
|
||||
function add($rdata){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue