Şuanki Dizin: /home/wwwdreamtechnolo/www/sharemarkettraders.com/software/admin/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/sharemarkettraders.com/software/admin/index.php |
<?php require_once("../lib/function.php"); $db = new login_function(); $mobile_no_error = ""; $mobile_no = ""; $password_error = ""; $flag = 0; if(isset($_GET['logout'])) { unset($_SESSION['current_login_admin']); } if(isset($_SESSION['current_login_admin'])) { header("Location:dashboard.php"); } if(isset($_POST['log_btn'])) { $mobile_no = $_POST['mobile_no']; $password = $_POST['password']; if($mobile_no=="") { $mobile_no_error = "Please enter user name"; $flag = 1; } if($password=="") { $password_error = "Please enter password"; $flag = 1; } if($flag==0) { $result_password = $db->get_password_from_user_name($mobile_no); if($result_password=="") { $mobile_no_error = "This admin is not registered or not verified."; } else { if($password==$result_password) { unset($_SESSION['current_login_user']); $_SESSION['current_login_admin'] = $mobile_no; header("Location:dashboard.php"); $success_flag = "Login Successfully"; } else { $password_error = "Incorrect password"; } } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width initial-scale=1.0"> <title>Login Page</title> <!-- GLOBAL MAINLY STYLES--> <link href="css/bootstrap.min.css" rel="stylesheet" /> <link href="css/font-awesome.min.css" rel="stylesheet" /> <link href="css/line-awesome.min.css" rel="stylesheet" /> <link href="css/themify-icons.css" rel="stylesheet" /> <link href="css/animate.min.css" rel="stylesheet" /> <link href="css/toastr.min.css" rel="stylesheet" /> <link href="css/bootstrap-select.min.css" rel="stylesheet" /> <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css"> <!-- PLUGINS STYLES--> <!-- THEME STYLES--> <link href="css/main.min.css" rel="stylesheet" /> <!-- PAGE LEVEL STYLES--> <style> body { background-image:url('../images/backalgotrader.jpg'); background-size:cover; background-repeat:no-repeat; } .col-md-6 { margin:auto; margin-top:100px; } @media only screen and (max-width: 500px) { .col-md-6 { } } </style> <script> function validateForm() { var x = document.forms["myForm"]["mobile_no"].value; var y = document.forms["myForm"]["password"].value; if (x == "") { alert("Enter Username"); return false; } if (y == "") { alert("Enter Password"); return false; } } </script> </head> <body class="fixed-navbar"> <div class="col-md-6" style="width:100%; margin:auto; text-align:center;"> </div> <div class="row"> <div class="col-md-4 col-sm-6" style="margin-top:0px; margin:auto; margin-top:100px;"> <div class="ibox" style="opacity:; background-color:rgba(255, 255, 255, .70);"> <form class="form-pink" method="POST" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off"> <center><img src="../images/share-market-traders.png" width="250" height="250"></center> <?php if($password_error ==1) { ?> <div class="alert alert-danger"> <span class="alert-link">Please!</span> Enter Correct Password. </div> <?php } ?> <div class="ibox-head" style="text-align:center; padding:7px !important; min-height:0px;"> <div class="ibox-title" style="text-align:center; width:100%;">ADMIN LOGIN</div> </div> <div class="ibox-body"> <div class="form-group mb-4"> <div class="input-group-icon input-group-icon-left"> <span class="input-icon input-icon-left"><i class="fas fa-user"></i></span> <input class="form-control form-control-air" type="text" name="mobile_no" placeholder="Enter mobile_no ID" value="<?php echo $mobile_no; ?>" > <p style="color:red;"><?php echo $mobile_no_error; ?></p> </div> </div> <div class="form-group mb-4"> <div class="input-group-icon input-group-icon-left"> <span class="input-icon input-icon-left"><i class="fas fa-lock"></i></span> <input class="form-control form-control-air" type="password" name="password" placeholder="Enter Password"> <p style="color:red;"><?php echo $password_error; ?></p> </div> </div> <!-- <div class="form-group mb-0"> <label class="checkbox checkbox-pink"> <input type="checkbox"> <span class="input-span"></span>Remember me</label> <a href="registration_new.php" class="input-span" style="float:right;text-decoration:underline;">Creat Account ?</a> </div> <br/> <a href="user_login.php" class="input-span" style="float:right;text-decoration:underline;">User Login</a> <br /> <a href="officer-login.php" class="input-span" style="float:right;text-decoration:underline;">Officer Login</a> </div> --> <div class="ibox-footer"> <button class="btn btn-pink btn-air mr-2" type="submit" name="log_btn">Login</button> <button class="btn btn-secondary" type="reset">Cancel</button> </div> </div> </form> </div> </div> </div> <script src="js/jquery.min.js"></script> <script src="js/popper.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/metisMenu.min.js"></script> <script src="js/jquery.slimscroll.min.js"></script> <script src="js/idle-timer.min.js"></script> <script src="js/toastr.min.js"></script> <script src="js/jquery.validate.min.js"></script> <script src="js/bootstrap-select.min.js"></script> <!-- PAGE LEVEL PLUGINS--> <!-- CORE SCRIPTS--> <script src="js/app.min.js"></script> <!-- PAGE LEVEL SCRIPTS--> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4