Jump to content
Forumu Destekleyenlere Katılın ×
Paticik Forumları
2000 lerden beri faal olan, çok şukela bir paylaşım platformuyuz. Hoşgeldiniz.

otomatik acc sistemi


linlont

Öne çıkan mesajlar

1- server makinesine ftp server kur ve bir account aç ftp için. sphere/accounts klasorune tam yetkisi olsun
2- phpnuke youraccount klasorunu ac index.php yi asadaki kodlarla degistir.
[spo1=index.php]
[code=php]
if (!defined('MODULE_FILE')) {

die ("You can't access this file directly...");

}



require_once("mainfile.php");

$module_name = basename(dirname(__FILE__));

get_lang($module_name);

$userpage = 1;



include("modules/$module_name/navbar.php");



function userCheck($username, $user_email) {

global $stop, $user_prefix, $db;

if ((!$user_email) || ($user_email=="") || (!eregi("^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,6}$",$user_email))) $stop = "
"._ERRORINVEMAIL."

";

if (strrpos($user_email,' ') > 0) $stop = "
"._ERROREMAILSPACES."
";

if ((!$username) || ($username=="") || (ereg("[^a-zA-Z0-9_-]",$username))) $stop = "
"._ERRORINVNICK."

";

if (strlen($username) > 25) $stop = "
"._NICK2LONG."
";

if (eregi("^((root)|(adm)|(linux)|(webmaster)|(admin)|(god)|(administrator)|(administrador)|(nobody)|(anonymous)|(anonimo)|(anónimo)|(operator))$",$username)) $stop = "
"._NAMERESERVED."
";

if (strrpos($username,' ') > 0) $stop = "
"._NICKNOSPACES."
";

if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

";

if ($db->sql_numrows($db->sql_query("SELECT username FROM ".$user_prefix."_users_temp WHERE username='$username'")) > 0) $stop = "
"._NICKTAKEN."

";

if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

";

if ($db->sql_numrows($db->sql_query("SELECT user_email FROM ".$user_prefix."_users_temp WHERE user_email='$user_email'")) > 0) $stop = "
"._EMAILREGISTERED."

";

return($stop);

}



function makePass() {

$cons = "bcdfghjklmnpqrstvwxyz";

$vocs = "aeiou";

for ($x=0; $x < 6; $x++) {

mt_srand ((double) microtime() * 1000000);

$con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);

$voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);

}

mt_srand((double)microtime()*1000000);

$num1 = mt_rand(0, 9);

$num2 = mt_rand(0, 9);

$makepass = $con[0] . $voc[0] .$con[2] . $num1 . $num2 . $con[3] . $voc[3] . $con[4];

return($makepass);

}



function confirmNewUser($username, $user_email, $user_password, $user_password2, $random_num, $gfx_check) {

global $stop, $EditedMessage, $sitename, $module_name, $minpass;

include("header.php");

include("config.php");

filter_text($username);

$username = $EditedMessage;

$user_viewemail = "0";

userCheck($username, $user_email);

if (!$stop) {

$datekey = date("F j");

$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $_POST[random_num] . $datekey));

$code = substr($rcode, 2, 6);

if (extension_loaded("gd") AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) {

title(""._NEWUSERERROR."");

OpenTable();

echo "
"._SECCODEINCOR."

"

.""._GOBACK."
";

CloseTable();

include("footer.php");

die();

}

if ($user_password == "" AND $user_password2 == "") {

$user_password = makepass();

} elseif ($user_password != $user_password2) {

title(""._NEWUSERERROR."");

OpenTable();

echo "
"._PASSDIFFERENT."

"._GOBACK."
";

CloseTable();

include("footer.php");

die();

} elseif ($user_password == $user_password2 AND strlen($user_password) < $minpass) {

title(""._NEWUSERERROR."");

OpenTable();

echo "
"._YOUPASSMUSTBE." $minpass "._CHARLONG."

"._GOBACK."
";

CloseTable();

include("footer.php");

die();

}

title("$sitename: "._USERREGLOGIN."");

OpenTable();

echo "
"._USERFINALSTEP."

$username, "._USERCHECKDATA."


"

.""

.""

."
"._UUSERNAME.": $username
"._EMAIL.": $user_email


"

."
"._NOTE." "._YOUWILLRECEIVE."";

echo ""

.""

.""

.""

.""

.""

."

"

."
Link to comment
Sosyal ağlarda paylaş

×
×
  • Yeni Oluştur...