unitesort.php

来自「程序安装简便容易」· PHP 代码 · 共 23 行

PHP
23 行
字号
<?php
!$_SERVER['PHP_SELF'] && $_SERVER['PHP_SELF']=$_SERVER['SCRIPT_NAME'];
substr($_SERVER['PHP_SELF'],-9,-4)!=='admin' && exit('Forbidden');

require_once(R_P.'cache/sortcache.php');

if(!empty($_GET['do'])) {
	if($_GET['do']==='unite') {
		$sid=$_POST['sid'];
		$tosid=$_POST['tosid'];
		if($sid!='' && $tosid!='') {
			query("UPDATE duoxun_subject SET sid='$tosid' WHERE sid='$sid'");
			query("DELETE duoxun_sort WHERE sid='$sid'");
			header("Location: job.php?job=unitesort&unite=success");
		} else {
			header("Location: job.php?job=unitesort&unite=fail");
		}
	}
}

require_once template('unitesort','admin');

?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?