0xV3NOMx
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.149.244.92


Current Path : /proc/thread-self/root/var/www/html/stph/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/stph/src/error_log.php

<?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;

}
?>