-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadwpdownload.php
44 lines (37 loc) · 1.21 KB
/
adwpdownload.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
36
37
38
39
40
41
42
43
44
<?php
require_once 'lib/WriteLog.lib.php';
require_once 'public/public.php';
try{
$id = isset($_GET['id'])?$_GET['id']:'';
if(empty($id)){
Log::write('adwpdownload:ID is empty', 'log');
exit;
}
$url = isset($_GET['url'])?$_GET['url']:'';
if(empty($url)){
Log::write('adwpdownload:url is empty', 'log');
exit;
}
$url = stripslashes($url) ;
$url = stripslashes($url) ;
header('Location: '.$url);
// $vercode = (int)(isset($_GET['vercode'])?$_GET['vercode']:0);
// if($vercode >= 39){
// Log::write('adwpdownload 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);
// $height = 0;
// $width = 0;
// $reqStatis->recordDownloadRequest($id, COOLXIU_TYPE_ANDROIDESK_WALLPAPER, $height, $width, $cpid, $url, $type, $channel);
require_once 'tasks/Records/RecordTask.class.php';
$rt = new RecordTask();
$rt->saveDownload(COOLXIU_TYPE_ANDROIDESK_WALLPAPER);
}catch(Exception $e){
Log::write('wpbrowse:: exception error:'.$e->getMessage(), 'log');
exit;
}