-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetails.php
35 lines (29 loc) · 1 KB
/
details.php
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
35
<?php
require_once 'lib/WriteLog.lib.php';
require_once 'configs/config.php';
require_once 'public/public.php';
try{
$nType = (int)(isset($_GET['type'])?$_GET['type']:0);
$id = isset($_GET['id'])?$_GET['id']:'';
$cpid = isset($_GET['cpid'])?$_GET['cpid']:'';
if(empty($id) && empty($cpid)){
Log::write('thbrowse:ID is empty', 'log');
exit;
}
$product = isset($_GET['product'])?$_GET['product']:'';
$chanel = (int)(isset($_GET['channel'])?$_GET['channel']:0);
$width = (int)(isset($_GET['width'])?$_GET['width']:0);
$heith = (int)(isset($_GET['height'])?$_GET['height']:0);
require_once 'configs/config.php';
require_once("tasks/CoolShow/CoolShowSearch.class.php");
$coolshow = new CoolShowSearch();
if ($chanel == REQUEST_CHANNEL_WEB){
$json_result = $coolshow->getCoolShowDetail($nType, $cpid);
}else{
$json_result = $coolshow->getCoolShowRelevant($nType, $id, $cpid);
}
echo $json_result;
}catch(Exception $e){
Log::write('thbrowse:: exception error:'.$e->getMessage(), 'log');
exit;
}