'2008')); $idndomain = $IDN->encode($pars20_1Domain); //$idndomain = htmlentities($idndomain, null, 'UTF-8'); if ($idndomain <> $blog) { if (validomain_PARS20($pars20_1Domain) AND $idndomain) { $blog = $idndomain; } // valid } // fa! } // en\fa $quloga = mysqli_query($con,"select * from users where blog='$blog' AND usern='$user' AND passw='$pass'"); @$qulogb = mysqli_fetch_array($quloga); if (@$qulogb['id']) { $thisuserbloga = mysqli_fetch_array(mysqli_query($con,"select * from blogs where usern='$blog'")); if (@$thisuserbloga['status'] == '1') { $cookievalue = base64_encode(rand(100, 999) . md5($blog) . rand(100, 999) . "|" . rand(100, 999) . md5($user) . rand(100, 999) . "|" . rand(100, 999) . $pass . rand(100, 999)); setcookie("4blogerguserlog6v5p4j9m8i7j3b2d1s4a0", $cookievalue); $lastlog = mysqli_fetch_array(mysqli_query($con,"select id from uinfo where user='$blog'")); if ($lastlog['id']) { $ip = $_SERVER['REMOTE_ADDR']; $ti = time(); mysqli_query($con,"update uinfo set lip='$ip',lastlog='$ti' where user='$blog'"); } else { $ip = $_SERVER['REMOTE_ADDR']; //$ti=date('Y/m/d'); $ti = time(); mysqli_query($con,"insert into uinfo (user,regip,lip,regdate,lastlog) VALUES ('$blog','$ip','$ip','$ti','$ti')"); } header("location: management.php"); exit; } else { $uspserr = 2; } } else { $uspserr = 1; } } else { if ($glogin == "yes") { $pass = $_POST['passw']; }else { $pass = md5($_POST['passw']); } $indomain = ''; if (preg_match("/^(.*)[a-zA-Z](.*)/", $user) == 1) { } else { /*****FARSI *****/ $pars20_1Domain = stripslashes($user); require_once('classes/idna_convert.class.php'); $IDN = new idna_convert(array('idn_version' => '2008')); $idndomain = $IDN->encode($pars20_1Domain); //$idndomain = htmlentities($idndomain, null, 'UTF-8'); if ($idndomain <> $user) { if (validomain_PARS20($pars20_1Domain) AND $idndomain) { $user = $idndomain; } // valid } // fa! } // en\fa $quloga = mysqli_query($con,"select * from blogs where usern='$user' AND passw='$pass'"); @$qulogb = mysqli_fetch_assoc($quloga); //print_r($qulogb); if (@$qulogb['id']) { if (@$qulogb['status'] == '1') { $cookievalue = base64_encode(rand(100, 999) . md5($user) . rand(100, 999) . "|" . rand(100, 999) . $pass . rand(100, 999)); //echo rand(100,999).md5($user).rand(100,999)."|".rand(100,999).$pass.rand(100,999); //exit; setcookie("4blogeruserlog6v5p4j9m8i7j3b2d1s4a0", $cookievalue); $lastlog = mysqli_fetch_array(mysqli_query($con,"select id from uinfo where user='$user'")); if ($lastlog['id']) { $ip = $_SERVER['REMOTE_ADDR']; $ti = time(); mysqli_query($con,"update uinfo set lip='$ip',lastlog='$ti' where user='$user'"); } else { $ip = $_SERVER['REMOTE_ADDR']; $ti = time(); mysqli_query($con,"insert into uinfo (user,regip,lip,regdate,lastlog) VALUES ('$user','$ip','$ip','$ti','$ti')"); } //echo $user; header("location: management.php"); exit; } else { $uspserr = 2; } } else { $uspserr = 1; } } } else { $uspserr = 3; } } //echo $user; ?> ورود به مدیریت سایت یا وبلاگ رایگان