-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwidgetdl.php
More file actions
36 lines (30 loc) · 940 Bytes
/
widgetdl.php
File metadata and controls
36 lines (30 loc) · 940 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
35
36
<?php
session_start();
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;
}
require_once 'public/public.php';
require_once 'configs/config.php';
$url = stripslashes($url) ;
$url = stripslashes($url) ;
// $url = $g_arr_host['androidwp_host'].$id;
header('Location: '.$url);
// require_once 'tasks/statis/ReqStatis.class.php';
// $reqStatis = new ReqStatis();
$cpid = isset($_GET['cpid'])?$_GET['cpid']:'';
$type = (int)(isset($_GET['type'])?$_GET['type']:0);
// $reqStatis->recordDownloadRequest($id, COOLXIU_TYPE_WIDGET, $height, $width, $cpid, $url, $type);
}catch(Exception $e){
Log::write('wpbrowse:: exception error:'.$e->getMessage(), 'log');
exit;
}