📄 temp_del.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 + -