File manager - Edit - /home/autoph/public_html/ahglegal/core/init2.php
Back
<?php error_reporting(0); require 'database/connect.php'; require 'functions/general.php'; require 'functions/users.php'; $toDate =date_create() ->format("Y-m-d"); $toTime =Explode(":", date('H:i:s')); $tDate = explode("-",$toDate); $mycDay=$tDate[2]; $mycMonth=$tDate[1]; $mycYear=$tDate[0]; $myTime = $toTime[0]; $myMinute = $toTime[1]; $mySecond = $toTime[2]; $currentTime = $myTime . ':' . $myMinute . ':' . $mySecond; ///*onfocus="this.value=''"> */ //error if other account is not activated all accounts cannot log in if (logged_in() === true){ $session_user_id = $_SESSION['user_id']; $user_data = user_data($session_user_id,'user_password1', 'inquiry','reports_access','billing_access','level','mt','edit','qa','isLocked','report_list','profile_access','user_id', 'user_name','first_name','middle_name','email','contact_info','last_name','delete','voice_upload','voice_download','report_upload','mtfile_access','active','doctors_data','mt_charging'); if(user_active($user_data['user_name']) == false) { session_destroy(); Header('Location: logout.php'); } } //if (user_active($username) $errors = array(); $err_count; function secalert(){ echo "<br><br><center><div style='width:500px;height:150px;border:2px solid none;border-radius:5px;background:none;position:relative;font-size:14px'><br><b style='font-size:18px;color:red'>Security Alert!</b><br><br>Sorry, You are not allowed to access this page. Please contact your System Administrator for assistance. Thank you! <br><br><a href='mtsadminpage.php?link='><input type='button' name='close' value='Close' style='width:80px;border:1px solid gray;border-radius:3px;height:20px'></a></center></div>"; exit; } function login_update(){ $user=$user_data['user_name']; $login="INSERT INTO `log_history` (`log_id`,`username`,`type`,`date`,`time`) VALUES('','$user','IN','$toDate','$currentTime')"; if(!mysql_query($login)) { die('Error: ' . mysql_error()); } } function logout_update(){ $user=$user_data['user_name']; $login="INSERT INTO `log_history` (`log_id`,`username`,`type`,`date`,`time`) VALUES('','$user','OUT','$toDate','$currentTime')"; if(!mysql_query($login)) { die('Error: ' . mysql_error()); } } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings