HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /var/www/selfanalyse/accounts-admin/index.php
<?php
include_once('../wp-config.php');
global $wpdb;
session_start();

// error_reporting(E_ALL);
// ini_set('display_errors', 'ON');

$redirect_to=get_site_url().'/accounts-admin/dashboard';
$PSY_ADMIN_LOGIN = $wpdb->prefix . PSY_ADMIN_LOGIN;
//die();
////9891531192 / 300a917c
unset($_SESSION["errMsg"]);
if(isset($_POST['submit'])) 
{
	unset($_SESSION["errMsg"]);
	$login=filter_var($_REQUEST['user_name'], FILTER_SANITIZE_STRING);
	$password=$_REQUEST['password'];
  
	$checkExist = $wpdb->get_row("SELECT id,user_login,user_password from $PSY_ADMIN_LOGIN where user_login='$login' and user_password='$password' limit 1");
	if($login=='' || $password==''){
		$_SESSION["errMsg"] = "Username/Password can not empty";
	} else if($checkExist->user_login==''){
		$_SESSION["errMsg"] = "Wrong username or password";
	} else {
		$_SESSION['A-ID'] = $checkExist->id;
		$_SESSION['A-UNAME'] = $checkExist->user_login;
		wp_redirect($redirect_to);
		exit();
	}
	
}
if(isset($_SESSION['A-ID'])){
    wp_redirect($redirect_to);
}
?>

<!DOCTYPE html>
<html>
    <head>
        
        <!-- Title -->
        <title>Selfanalyse Counselor | Admin Login</title>
        
        <meta content="width=device-width, initial-scale=1" name="viewport"/>
        <meta charset="UTF-8">
        <meta name="description" content="Admin Dashboard Template" />
        <meta name="keywords" content="admin,dashboard" />
        <meta name="author" content="Steelcoders" />
        <link rel="icon" type="image/png" sizes="32x32" href="/wp-content/themes/psychometrics/images/favicon.png"/>
        <!-- Styles -->
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600' rel='stylesheet' type='text/css'>
        <link href="/counselor/assets/plugins/pace-master/themes/blue/pace-theme-flash.css" rel="stylesheet"/>
        <link href="/counselor/assets/plugins/uniform/css/uniform.default.min.css" rel="stylesheet"/>
        <link href="/counselor/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
        <link href="/counselor/assets/plugins/fontawesome/css/font-awesome.css" rel="stylesheet" type="text/css"/>
        <link href="/counselor/assets/plugins/line-icons/simple-line-icons.css" rel="stylesheet" type="text/css"/>	
        <link href="/counselor/assets/plugins/offcanvasmenueffects/css/menu_cornerbox.css" rel="stylesheet" type="text/css"/>	
        <link href="/counselor/assets/plugins/waves/waves.min.css" rel="stylesheet" type="text/css"/>	
        <link href="/counselor/assets/plugins/switchery/switchery.min.css" rel="stylesheet" type="text/css"/>
        <link href="/counselor/assets/plugins/3d-bold-navigation/css/style.css" rel="stylesheet" type="text/css"/>	
        
        <!-- Theme Styles -->
        <link href="/counselor/assets/css/modern.min.css" rel="stylesheet" type="text/css"/>
        <link href="/counselor/assets/css/themes/white.css" class="theme-color" rel="stylesheet" type="text/css"/>
        <link href="/counselor/assets/css/custom.css" rel="stylesheet" type="text/css"/>
        
        <script src="/counselor/assets/plugins/3d-bold-navigation/js/modernizr.js"></script>
        <script src="/counselor/assets/plugins/offcanvasmenueffects/js/snap.svg-min.js"></script>
        <script>
            localStorage.removeItem("acA_liid");
        </script>

    </head>
    <body class="page-login">
        <main class="page-content">
            <div class="page-inner">
                <div id="main-wrapper">
                    <div class="row">
                        <div class="col-md-3 center">
                            <div class="login-box">
                                <a href="#" class="logo-name text-lg text-center">
									<!--<img src="/counselor/assets/images/college_nxt_now_logo.png" class="img-responsive" alt="" style="margin: 0 auto;">-->
									Selfanalyse Accounts Admin
								</a>
                               <p class="text-center m-t-md"><?php if(isset($_SESSION["errMsg"])) echo $_SESSION["errMsg"]; ?></p>
                                <form class="m-t-md" method="post" action="">
                                    <div class="form-group">
                                        <input type="text" name="user_name" class="form-control" placeholder="Username" required>
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" class="form-control" placeholder="Password" required>
                                    </div>
                                    <button type="submit" name="submit" class="btn btn-success btn-block">Login</button>
  
                                </form>
                                
                            </div>
                        </div>
                    </div><!-- Row -->
                </div><!-- Main Wrapper -->
            </div><!-- Page Inner -->
        </main><!-- Page Content -->
	
    </body>
</html>