|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
قسم المواضيع المكررة و المخالفة هنا يتم وضع المواضيع المخالفة والمواضيع المكررة |
|
03-03-2018, 09:00 PM
|
#1
|
|
• الانـتـسـاب » Oct 2012
|
• رقـم العـضـويـة » 106331
|
• المشـــاركـات » 957
|
• الـدولـة » GIZZA
|
• الـهـوايـة » Babel.SRO only
|
• اسـم الـسـيـرفـر » Lepus
|
• الـجـنـس » Male
|
• نقـاط التقييم » 13
|
|
|
مشكلة فى تسجيل من الموقع
السلام عليكم انا حملت موقع chilout والصراحة هو جميل بس فية مشكلة صغيرة فى التسجيل لما اجى اسجل بيطلعلى الايرور دة عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
ملف الريجستير اهو ياريت حل يا جماعة
كود PHP:
<!--- Support shits --->
<?php include_once "./pages/_support.php"; ?>
<!--- Support shits ending -->
<!--- Where am I senpai? --->
<ul class="breadcrumb" itemprop="breadcrumb">
<li><a href="index.php" itemprop="url">Index</a></li>
<li>Register</li>
</ul>
<!--- Ending --->
<section class="suppLandingSection">
<h2><span>You must fill all the fields in order to successfully</span>Register</h2>
</section>
<section class="suppLandingSection secondSuppLandingSection">
<div class="supportAbstractContainer">
<?php
$date = date('m/d/Y h:i:s a', time());
# Make sure that they logged out
if(empty($_SESSION['username'])) {
# Check post
if(isset($_POST['register_now'])) {
# Check capthca code
if(isset($_POST['verif_code']) AND !Empty($_POST['verif_code'])) {
if($_POST['verif_code'] != $_SESSION['aleat_nbr'])
# Wrong captch acode
$error[] = "Wrong captcha code";
} else {
# Captcha code empty
$error[] ="Please fill captcha input.";
}
# Clean Username
$user_id = $sec->secure($_POST['user_id']);
# Clean Mail
$mail = $sec->secure($_POST['user_mail']);
# Clean password(s)
$cleanpw = $sec->secure($_POST['user_pw']);
$cleanpw_2 = $sec->secure($_POST['confirm_pw']);
# Clean secret code(s)
$secs = $sec->secure($_POST['secret']);
$secs_2 = $sec->secure($_POST['secret2']);
# Verification code
$code = rand(1,255);
$code .= rand(24,243);
$code .= rand(49,325);
$code .= rand(100,999);
$code .= rand(242,429);
$code .= rand(1337,34532);
$code .= rand(3000,9000);
# Controll username
if(empty($user_id)) {
$error[] = "Username cannot be left behind!";
} else {
if(strlen($user_id) < 4) $error[] = "Username too short.";
if(strlen($user_id) > 16) $error[] = "Username too long.";
if(!ctype_alnum($user_id)) $error[] = "Username should be Characters and Numbers only.";
}
# Closed register
if($register_open == 0) {
$error[] = "You may not register yet.";
}
# Mail security
if(empty($mail)) {
$error[] = "Mail cannot be left behind!";
} else {
if(!filter_var($mail, FILTER_VALIDATE_EMAIL)) $error[] = "Mail is not valid";
}
# Password security
if(empty($cleanpw)) {
$error[] = "Password cannot be left behind!";
} else {
if(strlen($cleanpw) < 4) $error[] = "Password too short.";
if(strlen($cleanpw) > 32) $error[] = "Password too long.";
}
# Confirm password security
if(empty($cleanpw_2)) {
$error[] = "Confirm password cannot be left behind!";
} else {
if(strlen($cleanpw_2) < 4) $error[] = "Confirm password too short.";
if(strlen($cleanpw_2) > 32) $error[] = "Confirm password too long.";
}
# Check if passwords match
if(md5($cleanpw) != md5($cleanpw_2)) {
$error[] = "Password(s) doesn't match.";
}
# Secret code security
if(empty($secs)) {
$error[] = "Secret code cannot be left behind!";
} else {
if(strlen($secs) < 4) $error[] = "Security code too short.";
if(strlen($secs) > 32) $error[] = "Security code too long.";
}
# Confirm secret code security
if(empty($secs_2)) {
$error[] = "Confirm secret code cannot be left behind!";
} else {
if(strlen($secs_2) < 4) $error[] = "Confirm secret code too short.";
if(strlen($secs_2) > 32) $error[] = "Confirm secret code too long.";
}
# Check if secret code match
if(md5($secs) != md5($secs_2)) {
$error[] = "Secret code(s) doesn't match.";
}
# Count errors
if (@count($error) > 0) {
for($e=0;$e<count($error);$e++) {
echo '<div class="errorMessage">
'.$error[$e].'
</div>';
}
# No errors found, continue...
} else {
# Check if account exist already
$check = mssql_query("use SRO_VT_ACCOUNT SELECT JID from TB_User where StrUserID = '".($user_id)."'") or die("Something went wrong, contact web administrator!");
if(mssql_num_rows($check) > 0) {
echo '<div class="warningMessage">The account does already exist or the username is blacklisted!</div>';
# Error, username taken.
# No error, continue.
} else {
# Insert into DB
mssql_query("use SRO_VT_ACCOUNT INSERT INTO tb_user (StrUserID, is_activated, password, password_d, secret, secret_d, reg_ip, reg_date, activation_code, need_update,Email)
VALUES('".($user_id)."','1',
'".md5($cleanpw_2)."', '".($cleanpw_2)."', '".md5($secs_2)."',
'".($secs_2)."', '".($_SERVER['REMOTE_ADDR'])."', '$date', 'done', 0 ,'$mail')")
OR DIE("Something went wrong, contact web administrator!");
# Send mail.
$subject = "Thank you for joining us | Account activation";
",
Please press/copy the URL(in ur browser) in order to activate your account below this text:
# Activation url
http://?page=verify&code=".$code."
Sincerely,
PachaSro - Support team
--- Request sent by ---
".$_SERVER['REMOTE_ADDR'];
# Send the mail
echo " <div class='successMessage' > Your account is Register completed !!!=".$code."\"><font color='#FFFF00'><b><h1>Register completed</h1></b></font></a></div>";
}
}
} #END POST
?>
<div class="supportAbstract">
<div>
<form method="POST">
<div class="middlePart">
<div class="LoginForm" autocomplete="off">
<div class="login">
<input type="text" id="user_id" placeholder="Username" class="Username placeholder NoPlaceholder text" title="Username" name="user_id" maxlength="16" />
<input type="text" id="user_mail" placeholder="Mail" class="Username placeholder NoPlaceholder text" title="Mail" name="user_mail" />
<input type="password" id="user_pw" placeholder="Password" class="Password placeholder NoPlaceholder password" name="user_pw" title="Password" maxlength="32" />
<input type="password" id="confirm_pw" placeholder="Retype password" class="Password placeholder NoPlaceholder password" name="confirm_pw" title="Password" maxlength="32" />
</div>
</div>
</div>
<!--- Register button --->
<div class="btnWrap " id="globalLoginFormLogIn">
<div class="btn">
<div class="btnRight">
<input type="submit" style="text-align:center;" value="> REGISTER <" id="register_now" name="register_now" />
</div>
</div>
</div>
<!--- Register button ending --->
</div>
<div id="resultado"></div>
</div>
<div class="supportAbstract">
<div>
<!--- Captcha code --->
<div class="middlePart">
<div class="LoginForm">
<div class="login">
<input type="text" id="secret" placeholder="Secret code" class="Username placeholder NoPlaceholder text" title="Secret code" name="secret" maxlength="32" />
<input type="text" id="secret2" placeholder="Retype secret code" class="Username placeholder NoPlaceholder text" title="Retype secret code" name="secret2" maxlength="32" />
<input type="text" id="verif_code" placeholder="Enter captcha code" class="Username placeholder NoPlaceholder text" title="Enter captcha code" name="verif_code" autocomplete="off"/>
</div>
<div id="reCAPTCHA">
<br>
<img src="item/verif_code_gen.php" alt="Captcha verification code" />
</div>
</div>
</div>
<!--- Captcha code ending --->
</div>
</form>
</div>
</div>
</section>
<section class="suppLandingSection">
<h2 class="serviceStatusTitle"><font color="red">Attention!</font></h2>
<ul>
<li><span>Remember to save your registered accounts "<strong>SECRET CODE</strong>" and too never share the "<strong>SECRET CODE</strong>" with anyone.</span></li>
<li><span>Remember to save your registered accounts "<strong>Email</strong>" and too never share the "<strong>Email</strong>" with anyone.</span></li>
</ul>
</section>
<?php
# Tell them to logout.
} else {
echo '<br><br><h4 class="serviceStatusTitle"><font color="red">You must be logged out in order to create an account!</font></h2><br><br>';
}
?>
</div>
</div>
</div>
<!--- Footer --->
<?php include_once "./pages/_footer.php"; ?>
<!--- Footer end --->
|
|
|
إعلانات google |
|
03-03-2018, 09:17 PM
|
#2
|
|
• الانـتـسـاب » Oct 2012
|
• رقـم العـضـويـة » 106331
|
• المشـــاركـات » 957
|
• الـدولـة » GIZZA
|
• الـهـوايـة » Babel.SRO only
|
• اسـم الـسـيـرفـر » Lepus
|
• الـجـنـس » Male
|
• نقـاط التقييم » 13
|
|
|
رد: مشكلة فى تسجيل من الموقع
Something went wrong, contact web administrator! دة الايرور البيطلع فى اللوجن والتسجيل
عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ]
|
|
|
03-03-2018, 09:18 PM
|
#3
|
|
• الانـتـسـاب » Oct 2012
|
• رقـم العـضـويـة » 106331
|
• المشـــاركـات » 957
|
• الـدولـة » GIZZA
|
• الـهـوايـة » Babel.SRO only
|
• اسـم الـسـيـرفـر » Lepus
|
• الـجـنـس » Male
|
• نقـاط التقييم » 13
|
|
|
رد: مشكلة فى تسجيل من الموقع
دة اللوجن
كود بلغة HTML:
<!--- Support shits --->
<?php include_once "./pages/_support.php"; ?>
<!--- Support shits ending -->
<!--- Where am I senpai? --->
<ul class="breadcrumb" itemprop="breadcrumb">
<li><a href="index.php" itemprop="url">Index</a></li>
<li>Login</li>
</ul>
<!--- Ending --->
<section class="suppLandingSection secondSuppLandingSection">
<div class="supportAbstractContainer">
<?php
# Make sure that they logged out
if(empty($_SESSION['username'])) {
# Cemo is noob
$count = mssql_query("use SRO_VT_ACCOUNT SELECT COUNT(id) FROM _login_error where user_ip ='0'") or die("Doge");
$p_count = mssql_fetch_array($count);
# Check post
if(isset($_POST['login_now'])) {
# Check if user need to enter captcha.
if($p_count[0] >= 3) {
# Check capthca code
if(isset($_POST['verif_code']) AND !Empty($_POST['verif_code'])) {
if($_POST['verif_code'] != $_SESSION['aleat_nbr'])
# Wrong captch acode
$error[] = "Wrong captcha code";
} else {
# Captcha code empty
$error[] ="Please fill captcha input.";
}
}
# Clean Username
$user_id = $sec->secure($_POST['user_id']);
# Clean password
$user_pw = md5($_POST['user_pw']);
# Password security
if(empty($_POST['user_pw'])) {
$error[] = "Password cannot be left behind!";
} else {
if(strlen($_POST['user_pw']) < 2) $error[] = "Password too short.";
if(strlen($_POST['user_pw']) > 50) $error[] = "Password too long.";
}
# Controll username
if(empty($user_id)) {
$error[] = "Username cannot be left behind!";
} else {
if(strlen($user_id) < 2) $error[] = "Username too short.";
if(strlen($user_id) > 50) $error[] = "Username too long.";
if(!ctype_alnum($user_id)) $error[] = "Username should be Characters and Numbers only.";
}
# Count errors
if (@count($error) > 0) {
for($e=0;$e<count($error);$e++) {
echo '<div class="errorMessage">
'.$error[$e].'
</div>';
}
# No errors found, continue...
} else {
# Check if account exist already
$check = mssql_query("use SRO_VT_ACCOUNT SELECT StrUserID, mail, is_activated, rank, JID from tb_user where StrUserID = '".($user_id)."' and password = '".($user_pw)."'") or die("Something went wrong, contact web administrator!");
if(mssql_num_rows($check) != 1) {
echo '<div class="warningMessage">The account doesn\'t exist or the password is wrong.</div>';
# Fak you bitch.
mssql_query("use SRO_VT_ACCOUNT INSERT INTO _login_error (user_id, user_ip, last_login) VALUES('".($user_id)."', '".($_SERVER['REMOTE_ADDR'])."', 'now' )") or die("Doge");
# Error, username taken.
# No error, continue.
} else {
# GET INFORMATION
$p_check = mssql_fetch_array($check);
# Account not activated.
if($p_check['is_activated'] == 0) {
echo '<div class="warningMessage">The account is not activated.</div>';
# Account banned
} elseif($p_check['is_activated'] == 2) {
echo '<div class="warningMessage">The account is banned.</div>';
} elseif($p_check['JID'] == 0) {
echo '<div class="warningMessage">Your account is not registered in our game database yet.</div>';
# No errors proceed.
} else {
# Account logged in, store stuff
$_SESSION['username'] = $p_check['StrUserID'];
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
$_SESSION['mail'] = $p_check['mail'];
$_SESSION['rank'] = $p_check['rank'];
$_SESSION['JID'] = $p_check['JID'];
# Success message
echo '<div class="successMessage">Welcome back, '.($_SESSION['username']).'</div>';
# Refresh site
echo '<meta http-equiv="refresh" content="3;url=index.php">';
}
}
}
}
?>
<!--- Full client --->
<div class="supportAbstract">
<div>
<form method="POST">
<div class="middlePart">
<div class="LoginForm" autocomplete="off">
<div class="login">
<input type="text" id="user_id" placeholder="Username" class="Username placeholder NoPlaceholder text" title="Username" name="user_id" maxlength="16" />
<input type="password" id="user_pw" placeholder="Password" class="Password placeholder NoPlaceholder password" name="user_pw" title="Password" maxlength="32" />
</div>
</div>
</div>
<!--- Register button --->
<div class="btnWrap " id="globalLoginFormLogIn">
<div class="btn">
<div class="btnRight">
<input type="submit" style="text-align:center;" value="LOGIN NOW" id="login_now" name="login_now" />
</div>
</div>
</div>
<!--- Register button ending --->
</div>
</div>
<div class="supportAbstract">
<div>
<!--- Captcha code --->
<div class="middlePart">
<div class="LoginForm">
<?php
#Check if user need to enter captcha.
if($p_count[0] >= 3) {
?>
<div class="login">
<input type="text" id="verif_code" placeholder="Enter captcha code" class="Username placeholder NoPlaceholder text" title="Enter captcha code" name="verif_code" autocomplete="off" />
</div>
<div id="reCAPTCHA">
<br>
<img src="item/verif_code_gen.php" alt="Captcha verification code" />
</div>
<?php
}
?>
</div>
</div>
<!--- Captcha code ending --->
</div>
</form>
</div></div>
</section>
<section class="suppLandingSection">
<h2 class="serviceStatusTitle">Attention!</h2>
<ul>
<li><span>If you forgot your password please <a href="?page=forgot">click here</a></span></li>
</ul>
</section>
<?php
# Tell them to logout.
} else {
echo '<br><br><h4 class="serviceStatusTitle"><font color="red">You are already logged in, logout <a href="?page=logout">here</a></font></h2><br><br>';
}
?>
</div>
</div>
</div>
<!--- Footer --->
<?php include_once "./pages/_footer.php"; ?>
<!--- Footer end --->
|
|
|
04-03-2018, 01:52 AM
|
#5
|
|
• الانـتـسـاب » Oct 2012
|
• رقـم العـضـويـة » 106331
|
• المشـــاركـات » 957
|
• الـدولـة » GIZZA
|
• الـهـوايـة » Babel.SRO only
|
• اسـم الـسـيـرفـر » Lepus
|
• الـجـنـس » Male
|
• نقـاط التقييم » 13
|
|
|
رد: مشكلة فى تسجيل من الموقع
upppppp ولا حيات لمن تنادى
|
|
|
يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر)
|
|
ضوابط المشاركة
|
تستطيع إضافة مواضيع جديدة
تستطيع الرد على المواضيع
تستطيع إرفاق ملفات
تستطيع تعديل مشاركاتك
كود HTML معطلة
|
|
|
المواضيع المتشابهه
|
الموضوع |
كاتب الموضوع |
المنتدى |
الردود |
آخر مشاركة |
مشكلة فى تسجيل من الموقع
|
stafherp |
قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة |
3 |
05-03-2018 11:10 AM |
تسجيل اكونت على الموقع بسلك
|
waledmeda1 |
قسم الاسئلة و الاستفسارات لعمل السيرفرات الخاصة |
3 |
22-12-2017 05:43 PM |
الساعة الآن 09:45 PM.
|