📄 do.php
字号:
<?php
include_once( "inc/auth.php" );
$connection = openconnection( );
if ( $_REQUEST['cur_page'] == "" )
{
$cur_page = 1;
}
else
{
$cur_page = $_REQUEST['cur_page'];
}
switch ( $_REQUEST['f'] )
{
case "delete" :
if ( $_REQUEST['RegID'] )
{
$sql = "DELETE FROM sms_tb_msg WHERE RegID=".$_REQUEST['RegID'];
exequery( $connection, $sql );
$sql = "DELETE FROM sms_msg_log WHERE REGID=".$_REQUEST['RegID'];
exequery( $connection, $sql );
if ( $_REQUEST['option'] == "search" )
{
header( "location:".$_SERVER['HTTP_REFERER'] );
exit( );
}
}
if ( !$_REQUEST['id_str'] )
{
break;
}
$id_term = substr( $_REQUEST['id_str'], 0, -1 );
$sql = "\r\n\t\t\t\t DELETE FROM sms_tb_msg\r\n\t\t\t\t\t WHERE RegID IN (".$id_term.") \r\n\t\t\t\t ";
exequery( $connection, $sql );
$sql = "\r\n\t\t\t\t DELETE FROM sms_msg_log\r\n\t\t\t\t\t WHERE REGID IN (".$id_term.") \r\n\t\t\t\t ";
exequery( $connection, $sql );
$backurl = "search.php?FROM_ID=".$_REQUEST['FROM_ID']."&TO_ID=".$_REQUEST['TO_ID']."&FROM_NO=".$_REQUEST['FROM_NO']."&TO_NO=".$_REQUEST['TO_NO']."&Msg_Status=".$_REQUEST['Msg_Status']."&BEGIN_DATE=".$_REQUEST['BEGIN_DATE']."&END_DATE=".$_REQUEST['END_DATE']."&CONTENT=".$_REQUEST['CONTENT']."&cur_page=".$_REQUEST['cur_page']."&sens=".$_REQUEST['sens']."&order=".$_REQUEST['order'];
if ( !( $_REQUEST['option'] == "search" ) )
{
break;
}
header( "location:".$backurl );
exit( );
}
header( "location:list.php?&order=".$_REQUEST['order']."&sens=".$_REQUEST['sens']."&cur_page=".$cur_page );
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -