-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivewpdl.php
More file actions
46 lines (37 loc) · 1.34 KB
/
livewpdl.php
File metadata and controls
46 lines (37 loc) · 1.34 KB
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
36
37
38
39
40
41
42
43
44
45
46
<?php
try{
require_once 'lib/WriteLog.lib.php';
require_once 'public/public.php';
require_once 'configs/config.php';
$id = isset($_GET['id'])?$_GET['id']:'';
if(empty($id)){
Log::write('wpbrowse:ID is empty', 'log');
exit;
}
$nChannel = (int)(isset($_GET['channel'])?$_GET['channel']:0);
require_once("tasks/CoolShow/CoolShowSearch.class.php");
$coolshow = new CoolShowSearch();
$url = $coolshow->getUrl(COOLXIU_TYPE_LIVE_WALLPAPER, $id, $nChannel);
if($url === false){
Log::write('CoolShowSearch::getBrowseUrl(COOLXIU_TYPE_WALLPAPER) id:'.$id, 'log');
exit;
}
url_skip_download($url);
// $vercode = (int)(isset($_GET['vercode'])?$_GET['vercode']:0);
// if($vercode >= 39){
// Log::write('wpdownload vercode = '.$vercode, 'log');
// exit;
// }
// require_once 'tasks/statis/ReqStatis.class.php';
// $reqStatis = new ReqStatis();
// $cpid = isset($_GET['cpid'])?$_GET['cpid']:'';
// $type = (int)(isset($_GET['type'])?$_GET['type']:0);
// $channel = (int)(isset($_GET['channel'])?$_GET['channel']:0);
// $reqStatis->recordDownloadRequest($id, COOLXIU_TYPE_LIVE_WALLPAPER, 0, 0, $cpid, $url, $type, $channel);
require_once 'tasks/Records/RecordTask.class.php';
$rt = new RecordTask();
$rt->saveDownload(COOLXIU_TYPE_WALLPAPER);
}catch(Exception $e){
Log::write('wpbrowse:: exception error:'.$e->getMessage(), 'log');
exit;
}