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.145.88.241


Current Path : /var/www/html/admission/
Upload File :
Current File : /var/www/html/admission/leadLogs.php

<?php

function leadLog($aobj_context,$fappno,$univcode,$date,$faction,$oldRemarks,$remarks,$collcode,$fmobile,$flink)
{
    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'];
    }
    
    $query = "INSERT INTO adm_leadlog (fappno,funivcode,fupdatedate,factiontype,foldremarks,
    fremark,fcollcode,fcreateuser,flink,fip)
    values ('$fappno','$univcode','{$date}','{$faction}','{$oldRemarks}','{$remarks}','{$collcode}','{$fmobile}',
    '{$flink}','{$ip_address}')";

    $res = $aobj_context->pobj_db->Execute($query);
    return $res;

}
?>