File manager - Edit - /home/autoph/public_html/ahglegal/core/initweb.php
Back
<?php session_start(); error_reporting(0); date_default_timezone_set('Asia/Singapore'); require 'database/connectweb.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','if_doc_id','can_issue_medicine','u_password2','edit_patient_reocrd','add_payment','u_password','u_name','u_position','u_fname','u_lname','u_status','u_locked', 'u_locked_count','company_assignment','account_type','u_password','branch_dashboard','executive_dashboard','nurse_station','update_index','admin_clearance','nurse_access_only', 'guard_access_only','view_phic_alert','add_new_patient','add_new_user','add_new_doctor','add_new_hmo','add_new_package','add_new_medicine','add_new_payment','package_availment', 'check_in','check_out','create_new_session','close_avail_package','system_config','executive_report','start_session','cancel_session','deferred_session','lab_check_out', 'access_rights','rpt_patients_record','rpt_soa_list_sponsor','rpt_hmo_list_sponsor','received_new_payment','receive_new_delivery','view_unposted_delivery','view_posted_delivery', 'stk_transfer','view_posted_stk','view_unposted_stk','view_posted_dr','rpt_payment_summary','sales_journal','cash_receipt_journal','stock_card','cancel_payment','stock_adjustment','doctoc_access','executive_access','add_sponsor','search_patient','billing'); 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 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