Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.144.109.147
<?php
function error_logs($aobj_context,$univcode,$remark,$college_code,$enttype,$usr,$mob)
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))
{
$ip_address = $_SERVER['HTTP_CLIENT_IP'];
}
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
else
{
$ip_address = $_SERVER['REMOTE_ADDR'];
}
//var_dump($aobj_context);
$query = "INSERT INTO logisys3_logs.daylog (funivcode, fdate, fip, fremarks, fcollcode, fenttype, fuser, fmobileno)
VALUES ('{$univcode}', now(),'{$ip_address}', '{$remark}', '{$college_code}', '{$enttype}', '{$usr}', '{$mob}')";
$res = $aobj_context->mobj_db->Execute($query);
return $res;
}
?>
|