File manager - Edit - /home/autoph/public_html/portal/index2.php
Back
<?php include 'core/init.php'; logged_in_redirect(); ?> <html> <head> <title>UNIVERSAL STUDIO</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/screen_white.css"> </head> <!DOCTYPE html> <!--https://www.w3schools.com/bootstrap/bootstrap_forms_inputs.asp --> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/screen_white.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style> body { position: relative; } #section1 {padding-top:50px;height:500px;color: #fff; background-color: #1E88E5;} #section2 {padding-top:50px;height:500px;color: #fff; background-color: #673ab7;} #section3 {padding-top:50px;height:500px;color: #fff; background-color: #ff9800;} #section41 {padding-top:50px;height:500px;color: #fff; background-color: #00bcd4;} #section42 {padding-top:50px;height:500px;color: #fff; background-color: #009688;} </style> <style> * { box-sizing: border-box; } body{ margin:0px; } .menu { float:left; width:20%; } .menuitem { padding:8px; margin-top:7px; border-bottom:1px solid #f1f1f1; } .main { float:left; width:60%; padding:0 20px; } .right { background-color:lightblue; float:left; width:20%; padding:10px 15px; margin-top:7px; } @media only screen and (max-width:800px) { /* For tablets: */ .main { width:80%; } .right { width:100%; } } @media only screen and (max-width:500px) { /* For mobile phones: */ .menu, .main, .right { width:100%; } } </style> </head> <!-- <body style="font-family:Verdana;"> --> <body data-spy="scroll" data-target=".navbar" data-offset="50"> <center> <table style='height:100%;width:100%;border-collapse:collator_compare'> <tr class='lightGradient'> <td class='darkGradient' style='height:50px;border:1px solid lightgray'> <p style='font-family:Calibri Light;font-size:20px;font-weight:normal;color:#000;text-shadow:0px 0px 5px white'>Universal Studio</p> </td> </tr> <tr class='lightGradient'> <td align='center' class='lightGradient' style='height:100%;border:1px solid lightgray'> <div style='margin-left:50px;border-left:1px solid lightgray;width:500px;height:300px;background:transparent'> <div style='padding:10px;position:relative;top:40px;left:-290px;border:1px solid lightgray;width:80px;height:80px;background:transparent;border-right:1px solid #f4f4f4'> <img src='images/icon/key.png' width='50px'></img> </div> <div align='left' style='padding:10px;position:relative;top:-80px;left:00px;border:none;width:90%;height:100%;background:transparent;border-right:1px solid #f4f4f4'> <?php if(isset($_POST['LOGINMEIN'])){ mysql_query('SET NAMES utf8'); mysql_query("SET NAMES 'utf8'"); mysql_query("SET CHARACTER SET utf8"); if(empty($_POST) === false) { $username = $_POST['MYusername']; $password = $_POST['MYpassword']; if (empty($username) === true || empty($password) ===true){ $errors = 'You need to enter a valid username and password.'; } else if (user_exists($username) === false) { $errors = 'We can\'t find that username.'; } else if (user_active($username) === false) { $errors = 'You haven\'t activated your account!'; } else { $login = login($username, $password); if ($login === false) { $errors = 'Invalid username or password. '; $errorCount = mysql_result(mysql_query("SELECT `u_locked_count` FROM `c_users` WHERE `u_name` = '$username'"),0); if($errorCount==='5'){ header('Location: accountlockedout.php'); exit; } $errorCount=$errorCount+1; mysql_query("UPDATE `c_users` SET `u_locked_count` = '$errorCount' WHERE `u_name`='$username'"); } else { $_SESSION['u_id'] = $login; //log user mysql_query("UPDATE `c_users` SET `u_locked_count` = '0' WHERE `u_name`='$username'"); $logged="INSERT INTO `login_history` (`log_id`,`u_name`,`remarks`,`date`,`time`,`branch_code`) VALUES('','$username','IN','$toDate','$currentTime','$compCode')"; if(!mysql_query($logged)) { die('Error: ' . mysql_error()); } echo "<cetner> <div class='lightGradient'style='position:relative;width:350px;height:200px;left:10px;top:10px;border:0px solid gray;border-radius:5px;z-index:9999999;'>"; echo "<center><br><br><p style='font-family:Calibri Light;font-size:12px;color:black;padding:5px;'>WELCOME! ".$username."!<br><br> Your access has been verified.. Please click OK to continue...</p> <a href='main_new.php?view=&sview=&sid=db&tab=0#id-0'><br><br><input type='button' name='ok' value='OK' style='width:80px;border-radius:5px;height:30px;'></a> <a href='logout.php'><input type='button' name='exit' value='EXIT' style='width:80px;border-radius:5px;height:30px;'></a> </center>"; echo "</div> </center>"; //header('Location:main_new.php?view=&sview=&sid=db&tab=0#id-0'); exit(); } } }else { $errors = 'Please login to continue...'; } }else { ?> <p style='font-family:Verdana;font-size:14px;font-weight:bold;color:#2E2E2E'>Account</p><br> <p style='font-family:Verdana;font-size:11px;font-weight:normal;color:#2E2E2E'>I am staff. Use account to log in</p> <form action='' method='POST'><br> <table style='width:100%;border-collapse:collapse'> <tr style='border:0px solid lightgray;background:transparent'> <td colspan='2' style='border:0px solid lightgray'> <input type='text' name='MYusername' required class="form-control" id="usr" placeholder='Username' style='width:70%;height:30px;padding:5px;padding-left:10px;border:1px solid lightgray'> <br><br></td> </tr> <tr style='border:0px solid lightgray;background:transparent'> <td colspan='2' style='border:0px solid lightgray'> <input type='password' name='MYpassword' required class="form-control" id="usr" placeholder='Password' style='width:70%;height:30px;padding:5px;padding-left:10px;border:1px solid lightgray'> </td> </tr> </tr> <tr style='border:0px solid lightgray;background:transparent'> <td colspan='1' style='border:0px solid lightgray'><br> <label style='font-family:Verdana;font-size:11px;font-weight:normal;color:#2E2E2E'><input type="checkbox" name="remember"> Remember me</label> </td> <td colspan='1' style='border:0px solid lightgray;padding-right:30px'> <br> <a href='#'><p style='font-family:Verdana;font-size:11px;font-weight:normal;color:#08088A'>Forgot my password</p></a> </td> </tr> <tr style='border:0px solid lightgray;background:transparent'> <td colspan='2' style='border:0px solid lightgray'><br> <?php if(!empty($errors)){ echo "<p style='font-family:Verdana;font-size:11px;font-weight:normal;color:#08088A'>".$errors."</p>"; } echo "</p>";?> <button type="submit" name='LOGINMEIN' class="btn btn-default" style='width:20%;'>Login</button> <br><br></td> </tr> </table> </form> <?php }?> </div> </div> </td> </tr> </table> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings