]]jkjjgdjffksdkdxdsghfghdfghfgdfsdsdfsdfsfdsbcxvxcbccwewqeqwewqskfgj
במ12[cxvbcxvbxcvbcxvcxvbcvxcvbsdfsdfsdfsdfsdfsdfxcvbxcvxbbxqwqewqewv;'
/
home
/
u506006416
/
domains
/
crystalmiracle.co.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); include("include/config.php"); $user = new config(); //forgout passowrd if(isset($_POST['user_forgot_email']) and !empty($_POST['user_forgot_email'])){ $email = $_POST['user_forgot_email']; $check = $user->all_count_row('users',"uemail='$email'"); if($check>=1){ $temp_password = rand(); //password update $user->update('users',array('upass'=>md5($temp_password)),array("uemail"=>$email)); include_once('forgot-password-mail.php'); }else{ echo "<script>alert('Email id is Invalid.');window.location.href='index.php?show_forgot_form=1'</script>"; } } if (isset($_POST['submit'])) { $emailusername=$user->validation($_POST['emailusername']); $password=$user->validation($_POST['password']); $login = $user->check_login($emailusername, $password); if ($login==true) { // Registration Success header("location:dashboard.php"); } else { // Registration Failed ?> <script type="text/javascript"> alert("Wrong Username and Password"); </script> <?php } } ?> <script type="text/javascript" language="javascript"> function submitlogin() { var form = document.login; if(form.emailusername.value == ""){ alert( "Enter email or username." ); return false; } else if(form.password.value == ""){ alert( "Enter password." ); return false; } } </script> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Crystal Miracle | Log in</title> <!-- Tell the browser to be responsive to screen width --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- icheck bootstrap --> <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"> </head> <body class="hold-transition login-page"> <?php $show_message = @$_GET['show_message']; if(isset($show_message) and !empty($show_message)){ if($show_message==1){ ?> <div class="alert alert-success"> <strong> Forgot password is successfully Please check Your Mail</strong> </div> <?php }else{ ?> <div class="alert alert-danger"> <strong> SMTP mail error</strong> </div> <?php } }?> <div class="login-box"> <div class="login-logo"> <a href="#"><b>Welcome Admin</b> </div> <!-- /.login-logo --> <div class="card"> <div class="card-body login-card-body"> <?php if(isset($_GET['show_forgot_form']) and !empty($_GET['show_forgot_form'])){ $show_login_form = "none"; $show_forgot_form = "block"; }else{ $show_login_form = "block"; $show_forgot_form = "none"; }?> <form action="" method="post" name="login" style="display:<?php echo $show_login_form; ?>"> <!-- <p class="login-box-msg">Sign in to start your session</p> --> <div class="input-group mb-3"> <input type="email" name="emailusername" required="" class="form-control" placeholder="Email"> <div class="input-group-append"> <div class="input-group-text"> <span class="fas fa-envelope"></span> </div> </div> </div> <div class="input-group mb-3"> <input type="password" name="password" required="" class="form-control" placeholder="Password"> <div class="input-group-append"> <div class="input-group-text"> <span class="fas fa-lock"></span> </div> </div> </div> <div class="row"> <div class="col-4"> <button onclick="return(submitlogin());" type="submit" name="submit" class="btn btn-primary btn-block">Sign In</button> </div> <!-- /.col --> </div> <p class="mb-1"> <a href="index.php?show_forgot_form=1">I forgot my password</a> </p> </form> <form action="" method="post" style="display:<?php echo $show_forgot_form; ?>"> <p class="login-box-msg">Forgot Password</p> <div class="input-group mb-3"> <input type="email" name="user_forgot_email" required="" class="form-control" placeholder="Email"> <div class="input-group-append"> <div class="input-group-text"> <span class="fas fa-envelope"></span> </div> </div> </div> <div class="row"> <button type="submit" name="forgot_submit" class="btn btn-primary btn-block">Forgot Password</button> </div> <p class="mb-1"> <a href="index.php">Go to Login</a> </p> </form> </div> <!-- /.login-card-body --> </div> </div> <!-- /.login-box --> <!-- jQuery --> <script src="plugins/jquery/jquery.min.js"></script> <!-- Bootstrap 4 --> <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script> <!-- AdminLTE App --> <script src="dist/js/adminlte.min.js"></script> </body> </html>