File manager - Edit - /home/autoph/public_html/voc/home/index_BACKUP.php
Back
<?php ob_start(); include 'core/init.php'; logged_in_redirect(); //SELECT * FROM `db_vehicle_inventory` WHERE `cs_number`='FORD_080077' if(empty($_POST) === false) { $username = $_POST['MyUsername']; $password = $_POST['MyPassword']; //echo $username; //echo "<br>".$password; 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 `vts_users` WHERE `u_name` = '$username'"),0); echo "Error Count:".$errorCount; if($errorCount==='5'){ //header('Location: accountlockedout.php'); exit; } $errorCount=$errorCount+1; mysqli_query("UPDATE `vts_users` SET `u_locked_count` = '$errorCount' WHERE `u_name`='$username'"); } else { $_SESSION['u_id'] = $login; //echo "Username:".$username; //echo "<br>Password:".$password; //echo "<br>ID ".$_SESSION['u_id']; //log user mysql_query("UPDATE `vts_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','1')"; if(!mysql_query($logged)) { die('Error: ' . mysql_error()); } Header('Location:autohub.php?id=das&d=das'); exit(); } } }else { $errors = 'Please login to continue...'; } ?> <!-- END OF PHP CODE--> <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="css/style.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> body { background:white; } a:link { color: #3e423d ; } /* visited link */ a:visited { color: #3e423d; } /* mouse over link */ a:hover { color: black; } /* selected link */ a:active { color: #3e423d; } * { box-sizing: border-box; } .menu { float:left; width:18%; text-align:left; border:1px solid #fff; top-margin:2px; } .menu a { background-color:#fff; padding:1px; margin-top:1px; display:block; width:100%; color:black; } .main { float:left; width:64%; padding:0 0px; min-width:500px; } .right { background-color:#fff; float:left; width:18%; padding:0px; margin-top:1px; text-align:center; } .PaneA{ text-align:center; float:left; width:50%; border:0px solid red; margin-left:25%; min-height:80px } .paneAImage{ border:0px solid blue; margin-left:1%; margin-top:1%; width:50%; } .formPage{ border:0px solid green; margin-left:13%; width:75%; height:100%; } .botFootA{ width:100%;float:left;padding:20px;border-bottom:1px solid gray;padding-bottom:2px; } .botFoot{ width:100%;float:left;padding-left:40%;padding-right:40%;padding-top:20px; } @media only screen and (max-width:1000px) { /* For mobile phones: */ .menu, .main, .right { width:100%; } .PaneA{ text-align:center; float:left; width:90%; border:0px solid blue; margin-left:5%; } .paneAImage{ border:0px solid blue; margin-left:1%; margin-top:1%; width:45%; } .formPage{ border:0px solid blue; margin-left:20.6%; width:60%; } .botFootA{ width:100%;float:left;padding:20px;border-bottom:0px solid gray;padding-bottom:2px; } .botFoot{ width:100%;float:left;padding-left:45%;padding-right:45%;padding-top:20px; } @media only screen and (max-width:600px) { /* For mobile phones: */ .menu, .main, .right { width:100%; } .PaneA{ text-align:center; float:left; width:100%; border:0px solid blue; margin-left:0%; } .paneAImage{ border:0px solid blue; margin-left:1%; margin-top:1%; width:60%; } .formPage{ border:0px solid blue; margin-left:0%; width:100%; } } .botFootA{ width:100%;float:left;padding:20px;border-bottom:0px solid gray;padding-bottom:2px;text-align:center; } .botFoot{ width:100%;float:left;text-align:center;border-bottom:0px solid gray;padding-top:20px;font-family:Arial;font-size:10px;color:gray; } } </style> </head> <body style="font-family:Verdana;color:#fff;"> <div class="PaneA" style="border:0px solid red"> <img src='images/new_logo.png' class="paneAImage"></img> </div> <div class="PaneA"> <div class="loginForm" style="float:left;width:70%;height:300px;border:0px solid blue;margin-left:15%;"> <form action='' method='POST' class='formPage'> <p style='margin-bottom:5px;font-family:Verdana;font-size:14px;color:#3e3d39;text-align:left'>Username: </p> <input type='text' name='MyUsername' placeholder='USERNAME' class='loginPage' style="height:50px;font-family:Arial;font-size:16px;padding:10px"> <p style='margin-bottom:5px;font-family:Verdana;font-size:14px;color:#3e3d39;text-align:left'>Password: </p> <input type='password' name='MyPassword' placeholder='PASSWORD' class='loginPage' style="height:50px;font-family:Arial;font-size:16px;padding:10px"><br><br> <input type='submit' name='submit' value='✔ LOGIN' class='loginButton' style="width:100%;margin-left:0%"> </form> </div> <div style="width:100%;float:left;padding:50px"> <?php echo "<br> <p style='font-family:Verdana;font-size:14px;color:red;margin-top:5px;font-weight:normal;text-align:center;padding:20px'>".$errors."</p>";?> </div> </div> <div class="PanelA"> <div class="botFootA"> <p style='margin-bottom:5px;font-family:Verdana;font-size:12px;color:#3e3d39;f-top:20px;text-align:center'> <b class='subLink'><a href="#" style='text-decoration:none'>SUPPORT</a></b> <b class='subLink'><a href="#" style='text-decoration:none'><a href="#" style='text-decoration:none'>CONTACT US</b></a> <b class='subLink'><a href="#" style='text-decoration:none'><a href="#" style='text-decoration:none'>DOWNLOAD APP</a></b> <b class='subLink'><a href="#" style='text-decoration:none'><a href="#" style='text-decoration:none'>REPORT A BUG</a></b> </p> </div> <div style="width:100%;text-align:center;border:0px solid red;line-height:200%"><br><br><br> <br><br><center><p style="font-family:Arial;font-size:12px;color:gray;border:0px solid red;width:450px;padding:0px;margin:0px;text-align:center;margin-top:50px">Powered by: AUTOHUB Synergy | AlRights Reserved:<?php echo date('Y');?><br>E-MAIL SUPPORT: <a href='mailto:aendaya@autohubgroup.com'>aendaya@autohubgroup.com</a></p></center> </div> </div> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings