File manager - Edit - /home/autoph/public_html/portal/core/init.php
Back
<?php session_start(); error_reporting(0); echo "<link rel='icon' type='image/png' href='images/ahg.png'>"; echo "<link rel='icon' href='images/ahg.png' type='image/ico'/>"; 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','emp_id','comp_code','deal_code','dept_code','email','comp_id','deal_id','dept_id','u_password2','u_password','u_name', 'u_fname','u_lname','status','account_type','pod_module','pms_module','hrd_module'); //if(user_active($user_data['u_name']) == false) // { // session_destroy(); // Header('Location: logout.php'); // } } $support = mysql_result(mysql_query("SELECT `date_renewed` FROM `settings` WHERE 1"),0); //if (user_active($username) $errors = array(); $err_count; function secalert_new(){ echo " <center><div style='top:150px;left:-5;position:absolute;width:100%;height:200px;border:1px solid red;border-radius:0px;background:#F79F81;font-size:14px'><br> <b style='font-size:34px;color:red;z-index:9999;font-weight:normal'>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><br><a href='main_new.php?menu&view=100&sid=M1&sview=100&tab=1#id-0'> <input type='button' name='close' value='Close' style='width:80px;border:1px solid gray;border-radius:3px;height:30px'></a></center></div>"; } //FUNCTION TO CAPTURE LOGIN HISTORY..... $checkRights = mysql_result(mysql_query("SELECT COUNT(`id`) FROM `talents_profile` WHERE 1"),0); if($checkRights > 50){echo "Trial Period Expired. Please contact programmer.... "; $stat='Contact Support';exit();}else{$stat='';}; 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