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


Current Path : /var/www/html/collportal/custom_src/
Upload File :
Current File : //var/www/html/collportal/custom_src/qplog.php

<?php
    include("error_log.php");

    function saveQuestionPaperLog($aobj_context){
        $univcode = $aobj_context->mobj_data['univcode'];
        $usr = $aobj_context->mobj_data['userid'];
        $mob = $aobj_context->mobj_data['usermob'];
        $enttype = $aobj_context->mobj_data['enttype'];
        $data = json_decode($aobj_context->mobj_data['data'], true);

        $qpcode = $data['fqpcode'];
        $set = $data['fset'];
        
        
        $remark = "$enttype: $usr is downloaded the qpcode $qpcode and set $set";
       
        $res = error_logs($aobj_context, $univcode, $remark, '', $enttype, $usr, $mob);

        if($res){
            $data = "inserted";
            echo $aobj_context->mobj_output->ToJSONEnvelope($data, 0, "success"); 
        }else{
            $data = "failure";
            echo $aobj_context->mobj_output->ToJSONEnvelope($data, -1, "failure");
            return; 
        }
    }
?>