$sql = " select * from ".tname('app_info_reply')." where id = ".$info_id." ";
$query = $_SGLOBAL['db']->query( $sql );
$info = $_SGLOBAL['db']->fetch_array( $query );
if (empty($info))
{
showmessage("信息不存在或者已经被删除", 'info.php?do=info');
}
if ( $_SGLOBAL['supe_uid'] != $info['uid'] && $_SGLOBAL['supe_uid'] != ADMIN_ID ) {
showmessage("您没有删除此信息的权限", 'info.php?do=info');
}
//$sql = "DELETE FROM ".tname('app_info_reply')." WHERE id = {$id} ";
$sql = "DELETE FROM ".tname('app_info_reply')." WHERE id = {$info_id} ";
$query = $_SGLOBAL['db']->query($sql);
showmessage("删除成功!", "info.php?do=info&ac=view&id={$id}"); ////////////////提示“删除成功”,但是不能跳转到指定url.