Просмотр файла func/oper.php

Размер файла: 14.16Kb
<?
###########################
##    Автор: Haruka      ##
##     ---------         ##
##   ICQ:444-977-782     ##
##                       ##
##  Доработка: *CRIME*   ##
##    -------------      ##
##     ICQ:699-322       ##
##        Посети         ##
##   http://skywap.su    ##
###########################

############################################################
##                                                        ##
## Скрипт преднозначен для бесплатного распространения    ##
##                                                        ##
############################################################

/// ПОСЛЕДНЕЕ ОБНОВЛЕНИЕ БАЗЫ IP ОПЕРАТОРОВ - 22.07.08 ///
$ip = @$_SERVER['REMOTE_ADDR'];
@$ipnum = ip2long($ip);
$oper = 0;



// МЕГАФОН
$IP101 = array(1402273792,1402277888,1402279936,1402281984,1402284032,1402286080,1402287104,-1043733504,-712935520,1427812352,1402278912,1346621440,1402275840);
$IP201 = array(1402275839,1402278911,1402280959,1402283007,1402285055,1402287103,1402288127,-1043732481,-712935489,1427813375,1402279935,1346622463,1402276863);
// Билайн
$IP102 = array(1433657344,-646561792,-646560768,-646558720,-646557696,-646556672,-646555648,-646554624);
$IP202 = array(1433657599,-646560769,-646559745,-646557697,-646556673,-646555649,-646554625,-646553601);
// Utel
$IP103 = array(1047070464,1401450496,1401451520,1425981440,1441366016,1494507776,-1022602752,-730292224,-730290464,-723779584,-653151232,-653150720,1519779840);
$IP203 = array(1047072255,1401450751,1401451775,1425997823,1441371903,1494508031,-1022602497,-730291713,-730290433,-723775489,-653150977,-653150465,1519910911);
// BWC
$IP104 = array(1347599104,-706447360,1360163840,1360162816,-1020368128);
$IP204 = array(1347599359,-706447233,1360164351,1360166911,-1020367873);
// МТС
$IP105 = array(1476194816,1042394624,1346950400,1347674112,1360933376,1372794624,1410457600,-1036610560,-1017778688,-1018539008,-1013514240,-1007707904,-735278080,-732132608,-732132416,-716135424,-715707904,-715700224,-715698176,-653729792,-649949184,-649400320,-646488576,1535627776);
$IP205 = array(1476195071,1042394879,1346950655,1347678207,1360933887,1372794879,1410459647,-1036609537,-1017778433,-1018538753,-1013448705,-1007707649,-735277825,-732132417,-732132353,-716135169,-715701761,-715699361,-715694081,-653725697,-649948161,-649398273,-646488065,1535628031);
// TELE2
$IP106 = array(1404190720,1404862464,1404846080,1404854272,1404837888,1404829696,1518927872,1518993408,-2097938432);
$IP206 = array(1404198911,1404870655,1404854271,1404862463,1404846079,1404837887,1518944255,1519058943,-2097872897);
// МОТИВ
$IP107 = array(-644598784,-644599808);
$IP207 = array(-644598529,-644598785);
// Енисейтелеком
$IP108 = array(-1016011816,-1016011008,-1016007168);
$IP208 = array(-1016011781,-1016010753,-1016006913);
// НСС
$IP109 = array(1389383040,1432330240,-1012805632,-1012795392,-709795840,-1027958784,-1016974848,1441609984);
$IP209 = array(1389383167,1432334335,-1012803585,-1012793345,-709793025,-1027958529,-1016974337,1441610239);
// СМАРТС
$IP110 = array(1346736128,-1034680960,-649236224,1310210048,1536099328,-707747840);
$IP210 = array(1346737151,-1034680833,-649236217,1310211071,1536099839,-707747585);
// СТЕК GSM
$IP111 = array(-646672384);
$IP211 = array(-646671361);
// Татинком-Т
$IP112 = array(1481787392,-642965760,1506762752);
$IP212 = array(1481787647,-642965697,1506764799);
// Ульяновск GSM
$IP113 = array(1566410752);
$IP213 = array(1566411775);
// НТК
$IP114 = array(1358118912,1358119424);
$IP214 = array(1358119423,1358120703);
// СКАЙЛИНК
$IP115 = array(1406740480,-730374144,-730371328,-730367488,-729718784,-729717248,-729716736,-716113920,-646754304);
$IP215 = array(1406746623,-730373377,-730370561,-730365953,-729717249,-729716737,-729712641,-716113217,-646750209);
// Цифровая экспансия
$IP116 = array(-643215360,-643215104,-643212288);
$IP216 = array(-643215105,-643214849,-643211265);
// ИНДИГО
$IP117 = array(-1007723008,-1021940736);
$IP217 = array(-1007722753,-1021939713);
// Emt (Эстония)
$IP118 = array(-649650176);
$IP218 = array(-649649281);
// Elisa (Эстония)
$IP119 = array(-1026297856);
$IP219 = array(-1026293761);
// Tele-2 (Эстония)
$IP120 = array(-2097938432);
$IP220 = array(-2097872897);
// Bite (Литва)
$IP121 = array(-706576384);
$IP221 = array(-706575361);
// Omnitel (Литва)
$IP122 = array(-1028644864);
$IP222 = array(-1028644609);
// Tele-2 (Литва)
$IP123 = array(-2097938432);
$IP223 = array(-2097872897);
 // Tele-2 (Латвия)
$IP124 = array(-2097938432);
$IP224 = array(-2097872897);
 // Lmt (Латвия)
$IP125 = array(-732077824);
$IP225 = array(-732077569);
 // Киевстар
$IP126 = array(-1054262272,-734354944,-734354432,1360467968,1360465920,1486487552);
$IP226 = array(-1054261249,-734354433,-734353409,1360470015,1360467967,1486553087);
 // UMC
$IP127 = array(1295253504,1358905344,1358907392,1358907648,1358907904,1358908160,1358908416,1358908672,1358908928,1358909184,1490436096,1490444288);
$IP227 = array(1295319039,1358905471,1358907647,1358907903,1358908031,1358908415,1358908671,1358908927,1358909183,1358909439,1490444287,1490452479);
// life:)
$IP128 = array(1536286720,1536278528,1333559296,-734351360,-734355456,-734353408);
$IP228 = array(1536294911,1536286719,1333592063,-734347265,-734355201,-734351361);
// WellCOM (Билайн)
$IP129 = array(-1041268736);
$IP229 = array(-1041268225);
// KCELL
$IP130 = array(-1020264704);
$IP230 = array(-1020264449);
// KARTEL
$IP131 = array(-737305856,-731733760,-711880704);
$IP231 = array(-737305601,-731733505,-711880193);
// АКОС
$IP133 = array(1386348544);
$IP233 = array(1386414079);
// Bashcell
$IP134 = array(-1021940736);
$IP234 = array(-1021939713);
// T-Mobile
$IP135 = array(-650002432,-710786560,-1778515968);
$IP235 = array(-650001817,-710786305,-1778450433);
// AzerCellTelecom
$IP136 = array(-643256320);
$IP236 = array(-643252225);
// Ge-Magticom
$IP137 = array(1365222400);
$IP237 = array(1365223423);
// Vodafone
$IP138 = array(1407188992,-726171648,-649223168,1358192896,1507835904,1507819520,1507827712);
$IP238 = array(1407210495,-726167297,-649222657,1358193151,1507852287,1507827711,1507835903);
// Geocell
$IP139 = array(1536655360);
$IP239 = array(1536659455);
// Voxtel
$IP140 = array(-1041254912);
$IP240 = array(-1041254401);
// MobTel
$IP141 = array(-734822912);
$IP241 = array(-734822657);
// Orange
$IP142 = array(-711470976,1054471936);
$IP242 = array(-711470849,1054472191);
// TME
$IP143 = array(-1019793664);
$IP243 = array(-1019793601);
// Unitel
$IP144 = array(1407033600);
$IP244 = array(1407033855);
// MTT
$IP145 = array(1052193280,1347125248,1347126528);
$IP245 = array(1052193535,1347125759,1347127167);



for ($ix=0; $ix<count($IP101); $ix++){if ($ipnum>=$IP101[$ix] && $ipnum<=$IP201[$ix]) $oper = "1";} // MEGAFON
for ($ix=0; $ix<count($IP102); $ix++){if ($ipnum>=$IP102[$ix] && $ipnum<=$IP202[$ix]) $oper = "2";} // Билайн
for ($ix=0; $ix<count($IP103); $ix++){if ($ipnum>=$IP103[$ix] && $ipnum<=$IP203[$ix]) $oper = "3";} // Utel
for ($ix=0; $ix<count($IP104); $ix++){if ($ipnum>=$IP104[$ix] && $ipnum<=$IP204[$ix]) $oper = "4";} // BWC
for ($ix=0; $ix<count($IP105); $ix++){if ($ipnum>=$IP105[$ix] && $ipnum<=$IP205[$ix]) $oper = "5";} // МТС
for ($ix=0; $ix<count($IP106); $ix++){if ($ipnum>=$IP106[$ix] && $ipnum<=$IP206[$ix]) $oper = "6";} // TELE2
for ($ix=0; $ix<count($IP107); $ix++){if ($ipnum>=$IP107[$ix] && $ipnum<=$IP207[$ix]) $oper = "7";} // МОТИВ
for ($ix=0; $ix<count($IP108); $ix++){if ($ipnum>=$IP108[$ix] && $ipnum<=$IP208[$ix]) $oper = "8";} // Енисейтелеком
for ($ix=0; $ix<count($IP109); $ix++){if ($ipnum>=$IP109[$ix] && $ipnum<=$IP209[$ix]) $oper = "9";} // НСС
for ($ix=0; $ix<count($IP110); $ix++){if ($ipnum>=$IP110[$ix] && $ipnum<=$IP210[$ix]) $oper = "10";} // СМАРТС
for ($ix=0; $ix<count($IP111); $ix++){if ($ipnum>=$IP111[$ix] && $ipnum<=$IP211[$ix]) $oper = "11";} // СТЕК GSM
for ($ix=0; $ix<count($IP112); $ix++){if ($ipnum>=$IP112[$ix] && $ipnum<=$IP212[$ix]) $oper = "12";} // Татинком-Т
for ($ix=0; $ix<count($IP113); $ix++){if ($ipnum>=$IP113[$ix] && $ipnum<=$IP213[$ix]) $oper = "13";} // Ульяновск GSM
for ($ix=0; $ix<count($IP114); $ix++){if ($ipnum>=$IP114[$ix] && $ipnum<=$IP214[$ix]) $oper = "14";} // НТК
for ($ix=0; $ix<count($IP115); $ix++){if ($ipnum>=$IP115[$ix] && $ipnum<=$IP215[$ix]) $oper = "15";} // СКАЙЛИНК
for ($ix=0; $ix<count($IP116); $ix++){if ($ipnum>=$IP116[$ix] && $ipnum<=$IP216[$ix]) $oper = "16";} // Цифровая экспансия
for ($ix=0; $ix<count($IP117); $ix++){if ($ipnum>=$IP117[$ix] && $ipnum<=$IP217[$ix]) $oper = "17";} // ИНДИГО
for ($ix=0; $ix<count($IP118); $ix++){if ($ipnum>=$IP118[$ix] && $ipnum<=$IP218[$ix]) $oper = "18";} // Emt (Эстония)
for ($ix=0; $ix<count($IP119); $ix++){if ($ipnum>=$IP119[$ix] && $ipnum<=$IP219[$ix]) $oper = "19";} // Elisa (Эстония)
for ($ix=0; $ix<count($IP120); $ix++){if ($ipnum>=$IP120[$ix] && $ipnum<=$IP220[$ix]) $oper = "20";} // Tele-2 (Эстония)
for ($ix=0; $ix<count($IP121); $ix++){if ($ipnum>=$IP121[$ix] && $ipnum<=$IP221[$ix]) $oper = "21";} // Bite (Литва)
for ($ix=0; $ix<count($IP122); $ix++){if ($ipnum>=$IP122[$ix] && $ipnum<=$IP222[$ix]) $oper = "22";} // Omnitel (Литва)
for ($ix=0; $ix<count($IP123); $ix++){if ($ipnum>=$IP123[$ix] && $ipnum<=$IP223[$ix]) $oper = "23";} // Tele-2 (Литва)
for ($ix=0; $ix<count($IP124); $ix++){if ($ipnum>=$IP124[$ix] && $ipnum<=$IP224[$ix]) $oper = "24";} // Tele-2 (Латвия)
for ($ix=0; $ix<count($IP125); $ix++){if ($ipnum>=$IP125[$ix] && $ipnum<=$IP225[$ix]) $oper = "25";} // Lmt (Латвия)
for ($ix=0; $ix<count($IP126); $ix++){if ($ipnum>=$IP126[$ix] && $ipnum<=$IP226[$ix]) $oper = "26";} // Киевстар
for ($ix=0; $ix<count($IP127); $ix++){if ($ipnum>=$IP127[$ix] && $ipnum<=$IP227[$ix]) $oper = "27";} // UMC
for ($ix=0; $ix<count($IP128); $ix++){if ($ipnum>=$IP128[$ix] && $ipnum<=$IP228[$ix]) $oper = "28";} // life:)
for ($ix=0; $ix<count($IP129); $ix++){if ($ipnum>=$IP129[$ix] && $ipnum<=$IP229[$ix]) $oper = "29";} // WellCOM (Билайн)
for ($ix=0; $ix<count($IP130); $ix++){if ($ipnum>=$IP130[$ix] && $ipnum<=$IP230[$ix]) $oper = "30";} // KCELL
for ($ix=0; $ix<count($IP131); $ix++){if ($ipnum>=$IP131[$ix] && $ipnum<=$IP231[$ix]) $oper = "31";} // KARTEL
if (ereg('Opera Mini', $HTTP_USER_AGENT)){$oper = "32";} // OPERA MINI
for ($ix=0; $ix<count($IP133); $ix++){if ($ipnum>=$IP133[$ix] && $ipnum<=$IP233[$ix]) $oper = "33";} // АКОС
for ($ix=0; $ix<count($IP134); $ix++){if ($ipnum>=$IP134[$ix] && $ipnum<=$IP234[$ix]) $oper = "34";} // Bashcell
for ($ix=0; $ix<count($IP135); $ix++){if ($ipnum>=$IP135[$ix] && $ipnum<=$IP235[$ix]) $oper = "35";} // T-Mobile
for ($ix=0; $ix<count($IP136); $ix++){if ($ipnum>=$IP136[$ix] && $ipnum<=$IP236[$ix]) $oper = "36";} // AzerCellTelecom
for ($ix=0; $ix<count($IP137); $ix++){if ($ipnum>=$IP137[$ix] && $ipnum<=$IP237[$ix]) $oper = "37";} // Ge-Magticom
for ($ix=0; $ix<count($IP138); $ix++){if ($ipnum>=$IP138[$ix] && $ipnum<=$IP238[$ix]) $oper = "38";} // Vodafone
for ($ix=0; $ix<count($IP139); $ix++){if ($ipnum>=$IP139[$ix] && $ipnum<=$IP239[$ix]) $oper = "39";} // Geocell
for ($ix=0; $ix<count($IP140); $ix++){if ($ipnum>=$IP140[$ix] && $ipnum<=$IP240[$ix]) $oper = "40";} // Voxtel
for ($ix=0; $ix<count($IP141); $ix++){if ($ipnum>=$IP141[$ix] && $ipnum<=$IP241[$ix]) $oper = "41";} // MobTel
for ($ix=0; $ix<count($IP142); $ix++){if ($ipnum>=$IP142[$ix] && $ipnum<=$IP242[$ix]) $oper = "42";} // Orange
for ($ix=0; $ix<count($IP143); $ix++){if ($ipnum>=$IP143[$ix] && $ipnum<=$IP243[$ix]) $oper = "43";} // TME
for ($ix=0; $ix<count($IP144); $ix++){if ($ipnum>=$IP144[$ix] && $ipnum<=$IP244[$ix]) $oper = "44";} // Unitel
for ($ix=0; $ix<count($IP145); $ix++){if ($ipnum>=$IP145[$ix] && $ipnum<=$IP245[$ix]) $oper = "45";} // MTT
if (ereg('Mozilla', $HTTP_USER_AGENT)){$oper = "46";} // Компьютеры



if($oper == 1)$oper_name = "Мегафон";
if($oper == 2)$oper_name = "Билайн";
if($oper == 3)$oper_name = "Utel";
if($oper == 4)$oper_name = "BWC";
if($oper == 5)$oper_name = "МТС";
if($oper == 6)$oper_name = "TELE2";
if($oper == 7)$oper_name = "МОТИВ";
if($oper == 8)$oper_name = "Енисейтелеком";
if($oper == 9)$oper_name = "НСС";
if($oper == 10)$oper_name = "СМАРТС";
if($oper == 11)$oper_name = "СТЕК GSM";
if($oper == 12)$oper_name = "Татинком-Т";
if($oper == 13)$oper_name = "Ульяновск GSM";
if($oper == 14)$oper_name = "НТК";
if($oper == 15)$oper_name = "СКАЙЛИНК";
if($oper == 16)$oper_name = "Цифровая экспансия";
if($oper == 17)$oper_name = "ИНДИГО";
if($oper == 18)$oper_name = "Emt (Эстония)";
if($oper == 19)$oper_name = "Elisa (Эстония)";
if($oper == 20)$oper_name = "Tele-2 (Эстония)";
if($oper == 21)$oper_name = "Bite (Литва)";
if($oper == 22)$oper_name = "Omnitel (Литва)";
if($oper == 23)$oper_name = "Tele-2 (Литва)";
if($oper == 24)$oper_name = "Tele-2 (Латвия)";
if($oper == 25)$oper_name = "Lmt (Латвия)";
if($oper == 26)$oper_name = "Киевстар";
if($oper == 27)$oper_name = "UMC";
if($oper == 28)$oper_name = "life:)";
if($oper == 29)$oper_name = "WellCOM (Билайн)";
if($oper == 30)$oper_name = "KCELL";
if($oper == 31)$oper_name = "KARTEL";
if($oper == 32)$oper_name = "Opera Mini";
if($oper == 33)$oper_name = "АКОС";
if($oper == 34)$oper_name = "Bashcell";
if($oper == 35)$oper_name = "T-Mobile";
if($oper == 36)$oper_name = "AzerCellTelecom";
if($oper == 37)$oper_name = "Ge-Magticom";
if($oper == 38)$oper_name = "Vodafone";
if($oper == 39)$oper_name = "Geocell";
if($oper == 40)$oper_name = "Voxtel";
if($oper == 41)$oper_name = "MobTel";
if($oper == 42)$oper_name = "Orange";
if($oper == 43)$oper_name = "TME";
if($oper == 44)$oper_name = "Unitel";
if($oper == 45)$oper_name = "MTT";
if($oper == 46)$oper_name = "Компьютеры";
?>