-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp.php~
More file actions
34 lines (33 loc) · 1.1 KB
/
app.php~
File metadata and controls
34 lines (33 loc) · 1.1 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
<?php
/**
*
*/
include ('app/click.php');
$proxys = file('config/proxys.txt');
$refers = file('config/refers.txt');
/*print_r($fp);
function click($url,$proxy,$refer = 'google.com/'){
$log_download =& LoggerManager::getLogger('Download');
$ch = curl_init($url);
$log_download->info(_('start the conector.'));
$fp = fopen('downloads/' . time() . "_ip.html", "w");
$log_download->info(_('open the file.') . time());
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
$log_download->info(_('set the values.'));
curl_exec($ch);
$log_download->info(_('exec query.'));
curl_close($ch);
$log_download->info(_('close the conector.'));
fclose($fp);
$log_download->info(_('close the file.'));
}*/
foreach($proxys as $proxy){
#$click = new clickThread(time() . microtime());
#$click->run('http://www.andy21.com/ip/',$proxy);
#$click = new clickThread(time() . microtime(),'http://www.andy21.com/ip/',$proxy,$refer,$user,$lang);
$click = new clickThread(time() . microtime(),'http://localhost/~compermisos/info.php',$proxy,);
$click->start();
}
?>