Trying to access protected resource. Please log in.

[ home ]
"); if(isset($_FILES) && isset($_FILES["avatar_img"]) ){ //echo("upload exists
"); $extension = ""; $origName = $_FILES["avatar_img"]["name"]; $tempFileName = $_FILES["avatar_img"]["tmp_name"]; //echo("orig fileame[" . $origName . "]
"); //echo("tempFileName[" . $tempFileName . "]
"); if( strpos( strtoupper( $origName ), ".JPG" )!== false ){ $extension = ".jpg"; } else if( strpos( strtoupper( $origName ), ".JPEG" )!== false ){ $extension = ".jpg"; } else if( strpos( strtoupper( $origName ), ".GIF" )!== false ){ $extension = ".gif"; } else if( strpos( strtoupper( $origName ), ".PNG" )!== false ){ $extension = ".png"; } //echo("extension[" . $extension . "]
"); if($extension<>""){ $upload_dir = 'uploads/'; $filename = $upload_dir . $nick . "-avatar-icon" . $extension; //echo("filenameDest[" . $filename . "]
"); if (move_uploaded_file($tempFileName, $filename)) { $fileurl = "http://www.romaeuropa.org/conc/" . $filename; } else { // } } } // fine upload icona $login = $nick; $code = md5(uniqid(microtime()) . $_SERVER['REMOTE_ADDR'] . $_SERVER['HTTP_USER_AGENT']); // creare utente su DB $q1 = "insert into users(login,pwd,nick,email,nome,cognome,site,avatar_img_url,is_active,is_validated,code,id_category) values ('" . mysql_real_escape_string(htmlentities($login)) . "','" . mysql_real_escape_string(htmlentities($password)) . "','" . mysql_real_escape_string(htmlentities($nick)) . "','" . mysql_real_escape_string(htmlentities($email)) . "','" . mysql_real_escape_string(htmlentities($nome)) . "','" . mysql_real_escape_string(htmlentities($cognome)) . "','" . mysql_real_escape_string(htmlentities($site)) . "','" . mysql_real_escape_string(htmlentities($fileurl)) . "',0,0,'" . mysql_real_escape_string(htmlentities($code)) . "'," . $id_group_registered . ")"; $r1 = mysql_query($q1) or die('Query failed: ' . mysql_error()); $to = $email; $subject = "RomaEuropaFAKEFactory validation email"; $headers = "From: info@romaeuropa.org\r\n" . "X-Mailer: php"; $body = "Hello, this is the validation email for your account to http://www.romaeuropa.org.\n"; $body = $body . "Please point your browser to the link below to activate your account.\n\n"; $body = $body . "http://www.romaeuropa.org/conc/validate_account.php?code=" . $code . "&email=" . $email . "\n\n"; $body = $body . "Thank you for your collaboration.\n\nRomaEuropaFAKEFactory"; if (mail($to, $subject, $body,$headers)) { $message = "Account created, please check your email to follow the instructions contained in the validation message."; $is_registered = true; $hasRegistered = 1; } else { $message = "The account was created but there was a problem sending the validation mail. please contact the webmaster."; $is_registered = false; $hasRegistered = 1; } } } } ?>
 

Legal Disclaimer


By selecting this box and clicking "REGISTER" I declare that I have read and accepted the terms declared in the Legal Disclaimer