0) && (in_array($_POST["im_type"], $im_types))) { $query.="im_type='".$_POST["im_type"]."', "; $query.="im_id='".mysql_real_escape_string($_POST["im_id"])."', "; } else { $query.="im_type=NULL, "; $query.="im_id=NULL, "; } if(strlen($_POST["ojuice"])!=0) { $query.="ojuice=".((int)$_POST["ojuice"]).", "; } if(strlen($_POST["slengpung"])!=0) { $query.="slengpung=".((int)$_POST["slengpung"]).", "; } if(strlen($_POST["csdb"])!=0) { $query.="csdb=".((int)$_POST["csdb"]).", "; } if(strlen($_POST["zxdemo"])!=0) { $query.="zxdemo=".((int)$_POST["zxdemo"]).", "; } if(file_exists("avatars/".$_POST["avatar"])) $query.="avatar='".$_POST["avatar"]."' "; else $query.="avatar='zorglub.gif'"; $query.="WHERE id=".$_SESSION["SCENEID_ID"]; if (!count($errormessage)) { $sql = ""; if ($_SESSION["SESSION_NICKNAME"] != $nick) { $sql = sprintf("insert into oldnicks (user,nick) values (%d,'%s')",$_SESSION["SCENEID_ID"],mysql_real_escape_string($_SESSION["SESSION_NICKNAME"])); } $_SESSION["SESSION_NICKNAME"]=$nick; $_SESSION["SESSION_AVATAR"]=$_POST["avatar"]; mysql_query($query); unset($user); if ($sql) mysql_query($sql); $query = "SELECT cdc, timelock FROM users_cdcs WHERE user='".$_SESSION["SCENEID_ID"]."'"; $result = mysql_query($query); while($tmp=mysql_fetch_array($result)){ $cdc[] = $tmp; } $query="delete from users_cdcs where user=".$_SESSION["SCENEID_ID"]; mysql_query($query); $uniquecdc = array(); for ($i=0; $i<10; $i++) { $k = "cdc".$i; //echo $_POST[$k]." - "; $uniquecdc[] = (int)$_POST[$k]; } $uniquecdc = array_unique($uniquecdc); foreach($uniquecdc as $v){ if ($v > 0) { $flag = -1; for ($i=0; $i < count($cdc); $i++) { if ($cdc[$i]["cdc"] == $v) $flag = $i; //echo "[".$cdc[$i]["cdc"].",".$v.",".$flag."]"; } if ($flag == -1) $query="insert into users_cdcs set cdc='".$v."', user='".$_SESSION["SCENEID_ID"]."', timelock=CURRENT_DATE"; else $query="insert into users_cdcs set cdc='".$v."', user='".$_SESSION["SCENEID_ID"]."', timelock='".$cdc[$flag]["timelock"]."'"; //echo $query."\n"; mysql_query($query); } } unset($cdc); if (!preg_match("/".$REGEXP_EMAIL."/",$_POST["email"])) $errormessage[] = "invalid email address"; $paramz = array( "userID" => $_SESSION["SCENEID_ID"], "firstname" => ($_POST["firstname"]), "lastname" => ($_POST["lastname"]), "nickname" => $nick, // question: do we need to set the sceneID nickname to the pouet one? "email" => $_POST["email"], "url" => $_POST["url"] ); if ($_POST["password"] != $_POST["password2"]) { $errormessage[] = "Passwords dont match!"; } else { if ($_POST["password"] && $_POST["password2"]) { $paramz["password"] = md5($_POST["password"]); $paramz["password2"] = md5($_POST["password2"]); } } if (!count($errormessage)) { $returnvalue = $xml->parseSceneIdData("setUserInfoMD5", $paramz); if($returnvalue["returnvalue"]!=50) { $errormessage[] = $returnvalue["message"]; } else $message = "modifications complete!"; } } } else if ($_POST["password"] && $_POST["password2"] && $_POST["login"]) { /////////////////////////////////////////////////////// // USER NOT REGISTERED, INSERT if (!preg_match("/".$REGEXP_EMAIL."/",$_POST["email"])) $errormessage[] = "invalid email address"; if (strlen($nick) < 2) $errormessage[] = "nick too short!"; if ($_POST["login"] == $_POST["firstname"] && ($_POST["firstname"] == $_POST["lastname"] || $_POST["firstname"] == substr($_POST["lastname"],0,-2))) $errormessage[] = "yeah right."; if (RECAPTCHA_PRIV_KEY !== "pouet") { $resp = recaptcha_check_answer (RECAPTCHA_PRIV_KEY, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) $errormessage[]="wrong funny letters, sorry!"; } if (!count($errormessage)) { // user is not registered if ($_SERVER["REMOTE_ADDR"]) { $query = "select id from users where level='banned' and lastip='".$_SERVER["REMOTE_ADDR"]."'"; $result = mysql_query($query); $out = mysql_fetch_object($result); if ($out) { $_SESSION = null; $errormessage[]="your current ip belongs to a banned user. no account for you. if it's a shared ip, well, tough luck."; } if (strpos($_SERVER["REMOTE_ADDR"],"120.152.")===0 || strpos($_SERVER["REMOTE_ADDR"],"123.208.")===0) { $_SESSION = null; $errormessage[]="long story."; } if (strstr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),"my-addr.com")!==false) { $_SESSION = null; $errormessage[]="long story."; } if (strstr(gethostbyaddr($_SERVER["REMOTE_ADDR"]),"go.vfserver.com")!==false) { $_SESSION = null; $errormessage[]="long story."; } } else { $_SESSION = null; $errormessage[]="you're wearing a proxy.. no account for you."; } if (!count($errormessage)) { $paramz = array( "login" => $_POST["login"], "firstname" => ($_POST["firstname"]), "lastname" => ($_POST["lastname"]), "nickname" => $nick, "email" => $_POST["email"], //"url" => $_POST["url"], "password" => md5($_POST["password"]), "password2" => md5($_POST["password2"]), "ip" => $_POST["REMOTE_ADDR"], ); $returnvalue = $xml->parseSceneIdData("registerUserMD5", $paramz); if($returnvalue["returnvalue"]!=20) { if (!empty($returnvalue["message"])) $errormessage[] = $returnvalue["message"]; else if (!empty($returnvalue["returnvalue"])) $errormessage[] = "SceneID error: ".$returnvalue["returnvalue"]; else $errormessage[] = "Unknown SceneID error"; } else if (!$returnvalue["user"]) { $errormessage[] = "WTF ERROR!"; } } } if(!$errormessage) { $query= "INSERT users SET "; $query.="id=".$returnvalue["userID"].", "; if(strlen($nick)==0) { $query.="nickname='".$login."', "; } else $query.="nickname='".$nick."', "; if((strlen($im_id) > 0) && (in_array($im_type, $im_types))) { $query.="im_type='".$im_type."', "; $query.="im_id='".$im_id."', "; } else { $query.="im_type=NULL, "; $query.="im_id=NULL, "; } $query.="level='user', "; $query.="udlogin='".$udlogin."', "; $query.="avatar='".$avatar."', "; $query.="lastip='".$_SERVER["REMOTE_ADDR"]."', "; $query.="lasthost='".gethostbyaddr($_SERVER["REMOTE_ADDR"])."', "; if(strlen($_POST["ojuice"])!=0) { $query.="ojuice=".((int)$_POST["ojuice"]).", "; } if(strlen($_POST["slengpung"])!=0) { $query.="slengpung=".((int)$_POST["slengpung"]).", "; } if(strlen($_POST["csdb"])!=0) { $query.="csdb=".((int)$_POST["csdb"]).", "; } if(strlen($_POST["zxdemo"])!=0) { $query.="zxdemo=".((int)$_POST["zxdemo"]).", "; } $query.="quand=NOW()"; mysql_query($query); $message = "registration complete! a confirmation mail will be sent to your address soon - you can't login until you confirmed your email address!"; } } else { if (!$_POST["login"]) $errormessage[] = "login is missing!"; if (!$_POST["password"]) $errormessage[] = "password is missing!"; //$errormessage[] = "some required parameters are missing!"; } } else if ($_POST) { if (!$_POST["email"]) $errormessage[] = "email address is missing!"; if (!$_POST["nickname"]) $errormessage[] = "nickname is missing!"; } ?>
$_SESSION["SCENEID_ID"]); $returnvalue = $xml->parseSceneIdData("getUserInfo", $userparams); if($returnvalue["returnvalue"]==10) $user = array_merge($user, $returnvalue["user"]); ?> e-e-e-edit your account
create your account
there are some errors:

\n"; ?>
please, correct them.
click here
have a nice stay!
=$minglop) { ?> " disabled>
">
login:

which word can you type very fast ?

which word can you type very fast ? [req]
password:

the most complicated one ? [req]
password again:

don't try to be original there [req]
firstname:

which name your mother gave you ?
lastname:

and your father ?
email:

to be subscribed to 16 spammed newsletters a week [req]
website:

want some hits ?
nickname:

how do you look on IRC ? [req]
instant messenger type:

the one you really use
instant messenger id:

buuuuuuuuuuuuuuuu .... hiho !
UD login:

your login on UD - explained here
avatar: [req
" name="avatr"> (select) (random)

you can also upload your personal avatar here ;)

coup de coeur
$lockdays){ ?>">
prod id ()
locked for the next days
ojuice:
">
your ojuice id, if you had one (we miss you OJ ;( *snif*)
slengpung:
">
your slengpung id, if you have one
csdb:
">
your csdb id, if you have one
zxdemo:
">
your zxdemo id, if you have one
captcha thing:
real sceners are proficient in the skill of reading letters