⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 temp_del.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

function deldir( $dir )
{
	$dh = opendir( $dir );
	while ( $file = readdir( $dh ) )
	{
		if ( $file != "." && $file != ".." )
		{
			$fullpath = $dir."/".$file;
			if ( !is_dir( $fullpath ) )
			{
				unlink( $fullpath );
			}
			else
			{
				deldir( $fullpath );
			}
		}
	}
	closedir( $dh );
	if ( rmdir( $dir ) )
	{
		return true;
	}
	else
	{
		return false;
	}
}

include_once( "inc/auth.php" );
$tempid = $_GET['tempid'];
echo "<!--";
echo "<s";
echo "pan class=\"STYLE1\">您确定删除此对象码?</span>\r\n<form name=\"form1\" method=\"post\" action=\"del.php?div_id=";
echo $_GET['div_id'];
echo "\">\r\n  <input type=\"hidden\" name=\"check\" value=\"1\" id=\"check\" />\r\n \r\n  <input type=\"submit\" name=\"Submit\" value=\"确  定\"> \r\n  <input name=\"button\" type=\"button\" onClick=\"window.close()\" value=\"取 消\">\r\n</form>\r\n-->\r\n";
$http_url1 = $_SERVER['DOCUMENT_ROOT'];
$http_url = str_replace( "/", "\\", "{$http_url1}" );
$ab_url = $http_url."attachment\\index_img"."\\"."{$tempid}";
$sql1 = "DELETE  FROM `index_temp` WHERE  INDEX_TEMPID={$tempid};";
$sql = "DELETE  FROM `index_div` WHERE TEMPID={$tempid};";
if ( file_exists( $ab_url ) )
{
	deldir( $ab_url );
}
$result = exequery( $connection, $sql );
$result1 = exequery( $connection, $sql1 );
echo " \r\n";
echo "<s";
echo "cript>\r\nwindow.location.href=\"temp_chose.php\";\r\n</script>\r\n</body>\r\n";
?>

⌨️ 快捷键说明

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