File manager - Edit - /home/autoph/public_html/ahglegal/core/init.php
Back
<?php session_start(); error_reporting(0); date_default_timezone_set('Asia/Singapore'); require 'database/connect.php'; require 'functions/general.php'; require 'functions/users.php'; include 'includes/dragmesrc.php'; $toDate = date_create() ->format("m/d/Y"); $toTime =Explode(":", date('H:i:s')); $tDate = explode("/",$toDate); $mycDay=$tDate[1]; $mycMonth=$tDate[0]; $mycYear=$tDate[2]; $myTime = $toTime[0]; $myMinute = $toTime[1]; $mySecond = $toTime[2]; $currentTime = $myTime . ':' . $myMinute . ':' . $mySecond; $date = new DateTime($toDate); $week = $date->format("W"); //echo $week; ///*onfocus="this.value=''"> */ //error if other account is not activated all accounts cannot log in if (logged_in() === true){ $session_user_id = $_SESSION['u_id']; $user_data = user_data($session_user_id,'u_id','u_password2','u_password','u_name','u_position','u_fname','u_lname','u_status','u_locked', 'u_locked_count','account_type','u_password'); if(user_active($user_data['u_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:200px;border:1px solid red;border-radius:5px;background:#fff;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='mainindex.php?view=menu'><input type='button' name='close' value='Close' style='width:80px;border:1px solid gray;border-radius:3px;height:20px'></a></center></div>"; } function secalert_new(){ echo "<br><br><center><div style='top:250px;left:500px;position:absolute;width:500px;height:200px;border:1px solid red;border-radius:5px;background:#fff;font-size:14px'><br> <b style='font-size:18px;color:red;z-index:9999'>Security Alert!</b><br><br>Sorry, You are not allowed to access this page. Please contact your System Administrator for assistance. <br><br>Thank you! <br><br><a href='main_new.php?view=&sview=&tab=0#id-0'> <input type='button' name='close' value='Close' style='width:80px;border:1px solid gray;border-radius:3px;height:20px'></a></center></div>"; } function labalert(){ echo "<br><br><center><div style='width:500px;height:200px;border:1px solid red;border-radius:5px;background:#fff;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='laboratory_index.php?search=".$_GET['search']."&view=plist&id=".$_GET['id']."&subView='><input type='button' name='close' value='Close' style='width:80px;border:1px solid gray;border-radius:3px;height:20px'></a></center></div>"; } function login_update(){ $user=$user_data['u_name']; $logged="INSERT INTO `login_history` (`log_id`,`u_name`,`remarks`,`date`,`time`) VALUES('','$username','IN','$toDate','$currentTime')"; if(!mysql_query($logged)) { die('Error: ' . mysql_error()); } } function logout_update(){ $user=$user_data['user_name']; $logged="INSERT INTO `login_history` (`log_id`,`u_name`,`remarks`,`date`,`time`) VALUES('','$user','OUT','$toDate','$currentTime')"; if(!mysql_query($logged)) { die('Error: ' . mysql_error()); } } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings