-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebinterface.php
More file actions
34 lines (24 loc) · 996 Bytes
/
webinterface.php
File metadata and controls
34 lines (24 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$req_page = (int)(isset($_GET['page'])?$_GET['page']:0);
$req_num = (int)(isset($_GET['reqNum'])?$_GET['reqNum']:10);
$start = $req_num * $req_page;
require_once 'lib/WriteLog.lib.php';
require_once 'public/public.php';
if($req_num === null || $req_page === null){
$result = get_rsp_result(false, 'req_num or req_paga is null');
exit($result); //错误请求
}
if(!is_numeric($req_num) || !is_numeric($req_page)){
$result = get_rsp_result(false, 'req_num or req_paga is not num');
exit($result); //错误请求
}
$nCoolType = (int)(isset($_GET['cooltype']))?$_GET['cooltype']:0;
$nSortType = (int)(isset($_GET['sort']))?$_GET['sort']:0;
require_once 'configs/config.php';
require_once("tasks/CoolShow/CoolShowSearch.class.php");
$coolshow = new CoolShowSearch();
$json_result = $coolshow->searchWeb($nCoolType, $nSortType, $start, $req_num);
echo $json_result;
require_once 'tasks/Records/RecordTask.class.php';
$rt = new RecordTask();
$rt->saveWebRequest($nCoolType);