Files
thinksaas_lmve/app/home/action/report.php
T
2023-06-22 13:33:25 +08:00

45 lines
857 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2017/12/3
* Time: 22:10
*/
defined('IN_TS') or die('Access Denied.');
switch ($ts){
case "":
$title = '举报中心';
include template('report');
break;
case "do":
$url = tsTrim($_POST['url']);
$content = t($_POST['content']);
if($url==''){
tsNotice('举报链接不能为空');
}
$arrUrl = explode('/',$url);
$mainUrl = $arrUrl['0'].'/';
if($mainUrl!=$GLOBALS['TS_SITE']['link_url']){
tsNotice('非法操作');
}
$new['home']->create('anti_report',array(
'url'=>$url,
'content'=>$content,
'addtime'=>date('Y-m-d H:i:s')
));
tsNotice('举报提交成功!','点击返回',$url);
break;
}