| Server IP : 172.64.80.1 / Your IP : 172.70.50.62 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 : |
<?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;
$kk=$kk1=$kk2=$kk3=0;
$material_olevelPix=$_FILES['olevelPix']['name'];
$material_namePix2=$_FILES['olevelPix2']['name'];
$material_NDPix1=$_FILES['NDPix1']['name'];
// if((!$material_olevelPix)and ($formNo<>'')) {
if(($material_olevelPix)and ($formNo<>'')) {
// die("am here");
$material_typePix = $_FILES['olevelPix']['type'];
$material_tmpPix = $_FILES['olevelPix']['tmp_name'];
$material_sizePix = $_FILES['olevelPix']['size'];
$oldPix = $_FILES['olevelPix']['tmp_name'];
$newPix = "../olevelScanned/" . $formNo . "_1.jpg";
move_uploaded_file($oldPix, $newPix);
$kk1=10;
// die("am here");
}
if(($material_namePix2)and ($formNo<>'')) {
$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);
$kk2=30;
// die("am here2");
}
if(($material_NDPix1)and ($formNo<>'')) {
$material_typeNDPix1 = $_FILES['NDPix1']['type'];
$material_tmpNDPix1 = $_FILES['NDPix1']['tmp_name'];
$material_sizeNDPix1 = $_FILES['NDPix1']['size'];
$oldNDPix1 = $_FILES['NDPix1']['tmp_name'];
$newNDPix1 = "../olevelScanned/" . $formNo . "_3.jpg";
move_uploaded_file($oldNDPix1, $newNDPix1);
$kk3=50;
// die("am here3");
}
echo $kk=$kk1+$kk2+$kk3;
//die();
if ($kk==50) {
$r = 1;
}elseif ($kk==30){
$r=2;
}elseif($kk==10){
$r=3;
}elseif($kk==40){
$r=4;
}elseif($kk==60){
$r=5;
}elseif($kk==80) {
$r = 6;
}elseif($kk==90){
$r=6;
}
//echo $r;
//die($r);
header('location:'.'upload_document.php?id='.$r);
ob_end_flush();
?>