شـريـط الاهـداءات | |
قسم المواضيع المكررة و المخالفة هنا يتم وضع المواضيع المخالفة والمواضيع المكررة |
|
أدوات الموضوع | تقييم الموضوع | انواع عرض الموضوع |
03-03-2018, 09:00 PM | #1 | ||||||||||||
|
السلام عليكم انا حملت موقع chilout والصراحة هو جميل بس فية مشكلة صغيرة فى التسجيل لما اجى اسجل بيطلعلى الايرور دة عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ] ملف الريجستير اهو ياريت حل يا جماعة كود PHP:
|
||||||||||||
|
03-03-2018, 09:17 PM | #2 | ||||||||||||
|
Something went wrong, contact web administrator! دة الايرور البيطلع فى اللوجن والتسجيل عفوا ,,, لايمكنك مشاهده الروابط لانك غير مسجل لدينا [ للتسجيل اضغط هنا ] |
||||||||||||
|
03-03-2018, 09:18 PM | #3 | ||||||||||||
|
دة اللوجن كود بلغة 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, 12:32 AM | #4 | ||||||||||||
|
upppppp
|
||||||||||||
|
04-03-2018, 01:52 AM | #5 | ||||||||||||
|
upppppp ولا حيات لمن تنادى
|
||||||||||||
|
الكلمات الدليلية |
بدون |
يتصفح الموضوع حالياً : 1 (0 عضو و 1 زائر) | |
|
|