V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
aerosoft
/
public_html
/
InventorySystem
/
Viewing: auth_v2.php
<?php include_once('includes/load.php'); ?> <?php $req_fields = array('username','password' ); validate_fields($req_fields); $username = remove_junk($_POST['username']); $password = remove_junk($_POST['password']); if(empty($errors)){ $user = authenticate_v2($username, $password); if($user): //create session with id $session->login($user['id']); //Update Sign in time updateLastLogIn($user['id']); // redirect user to group home page by user level if($user['user_level'] === '1'): $session->msg("s", "Hello ".$user['username'].", Welcome to OSWA-INV."); redirect('admin.php',false); elseif ($user['user_level'] === '2'): $session->msg("s", "Hello ".$user['username'].", Welcome to OSWA-INV."); redirect('special.php',false); else: $session->msg("s", "Hello ".$user['username'].", Welcome to OSWA-INV."); redirect('home.php',false); endif; else: $session->msg("d", "Sorry Username/Password incorrect."); redirect('index.php',false); endif; } else { $session->msg("d", $errors); redirect('login_v2.php',false); } ?>
Coded With 💗 by
HanzOFC