📄 delete.php
字号:
<?php
include_once( "inc/auth.php" );
if ( $LOGIN_USER_PRIV == "1" )
{
$query = "SELECT * from NEWS where NEWS_ID='".$NEWS_ID."'";
}
else
{
$query = "SELECT * from NEWS where NEWS_ID='".$NEWS_ID."' and PROVIDER='{$LOGIN_USER_ID}'";
}
$cursor = exequery( $connection, $query );
if ( $ROW = mysql_fetch_array( $cursor ) )
{
$query = "delete from NEWS_COMMENT where NEWS_ID='".$NEWS_ID."' and PARENT_ID='{$COMMENT_ID}'";
exequery( $connection, $query );
$query = "delete from NEWS_COMMENT where NEWS_ID='".$NEWS_ID."' and COMMENT_ID='{$COMMENT_ID}'";
exequery( $connection, $query );
}
header( "location: re_news.php?NEWS_ID=".$NEWS_ID."&start={$start}&MANAGE=1" );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -