69 lines
1.8 KiB
PHP
69 lines
1.8 KiB
PHP
<?php
|
|
|
|
defined('IN_MET') or exit('No permission');
|
|
//用来处理定时执行排期处理
|
|
//访问入口固定为app/index.php?n=dzadsod
|
|
|
|
load::own_class('appweb');
|
|
|
|
class index extends appweb
|
|
{
|
|
|
|
# 过滤方法名
|
|
private $ado = ['doindex','dotable','dotableto','doajaxcl'];
|
|
|
|
private $urls;
|
|
|
|
//初始化
|
|
public function __construct()
|
|
{
|
|
global $_M, $_YW;
|
|
parent::__construct();
|
|
// 过滤
|
|
if (!in_array(M_ACTION, $this->ado,true)) {
|
|
//报错
|
|
exit(0);
|
|
}
|
|
$this->urls = $_M['url']['site'].'app/index.php?n=dzadsod';
|
|
$this->input['page_title'] = '广告位巡查';
|
|
}
|
|
|
|
//广告位排期中的巡查,验证码校验
|
|
public function doindex()
|
|
{
|
|
global $_M, $_YW;
|
|
//进入密码输入页面
|
|
$this->input['url'] = $this->urls.'&a=dotable';
|
|
$this->show('app/index', $this->input);
|
|
}
|
|
|
|
//数据列表
|
|
public function dotable()
|
|
{
|
|
global $_M, $_YW;
|
|
//校验验证码
|
|
$mdck = $this->tsql->table('keylist')
|
|
->where(['k_passkey' => md5($_M['form']['check']), 'k_state' => 1 ])
|
|
->one();
|
|
if($mdck == false) parent::scriptgo('密钥错误!');
|
|
okinfo($this->urls.'&a=dotableto');
|
|
}
|
|
|
|
//数据列表
|
|
public function dotableto()
|
|
{
|
|
global $_M, $_YW;
|
|
$this->input['url'] = $this->urls.'&c=table_ajax&a=doindex&tname=patrol';
|
|
$this->input['table'] = load::own_class('table_theme','new')->start('patrol')->send_all(1);
|
|
$this->show('app/table', $this->input);
|
|
}
|
|
|
|
//获取doajaxcl
|
|
public function doajaxcl() {
|
|
global $_M, $_YW;
|
|
parent::jsoncallback([]);
|
|
}
|
|
|
|
}
|
|
|
|
?>
|