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

Размер файла: 32.68Kb
<?
if (eregi("oper.php",$PHP_SELF))
{
	//Header("Location: index.php");
	die();
}
$oper= trim(htmlspecialchars(stripslashes(@$_GET['oper'])));
$oper = @preg_replace("/[^0-9]/", "", $oper);

if($oper != "")
{
	if($oper < 0 or $oper>54)
	{		$oper = 0;	}

}else{
	$ip = @$_SERVER['REMOTE_ADDR'];
	$ips = split("\.", "$ip");
	@$ipnum = $ips[3] + $ips[2] * 256 + $ips[1] * 256 * 256 + $ips[0] * 256 * 256 * 256;
	$oper = 0;
	$IP101 = array(1402273792,3251233792,3582031776,1427812352,1402278912,1346621440,2130706433,1402273792,1402277888,1402279936,1402281984,1402284032,1402286080,1402287104,3251233792,3582031776,1402275840,1402278912,1402279936);
	$IP201 = array(1402290175,3251234815,3582031807,1427813375,1402279935,1346622463,2130706687,1402275839,1402278911,1402280959,1402283007,1402285055,1402287103,1402288127,3251234815,3582031807,1402276863,1402279935,1402280959);
	$IP102 = array(1433657344,3648405504,1433657344,3648405504,3648406528,3648408576,3648409600,3648410624,3648411648,3648412672);
	$IP202 = array(1433657599,3648413695,1433657599,3648406527,3648407551,3648409599,3648410623,3648411647,3648412671,3648413695);
	$IP103 = array(1047070464,1401450496,1401451520,1441366016,1494507776,3272364544,3564675072,3564676832,3571187712,3641816064,3641816576,1047070464,1401450496,1401451520,1406861312,1425989632,1441366016,3272364544,3564675072,3564676832,3571187712,3641816064,3641816576);
	$IP203 = array(1047072255,1401450751,1401451775,1441371903,1494508031,3272364799,3564675583,3564676863,3571191807,3641816319,3641816831,1047072255,1401450751,1401451775,1406869503,1425994239,1441371903,3272364799,3564683263,3564676863,3571253247,3641816319,3641816831);
	$IP104 = array(3588519936,1360162816,1347599104,3588519936);
	$IP204 = array(3588520063,1360166911,1347599359,3588520447);
	$IP105 = array(1042394624,1346950400,1347674112,1360933376,1372794624,1410457600,3258356736,3277188608,3276428288,3287259392,3559689216,3562834880,3578831872,3579248640,3641237504,3645018112,3645566976,3648478720,1535627776,1042394624,1346950400,1347674112,1360933376,1372794624,1410457600,3258356736,3277188608,3281465344,3287259392,3559689216,3562834880,3578831872,3579259392,3579267072,3579269120,3641237504,3641237504,3645018112,3645566976,3648478720);
	$IP205 = array(1042394879,1346950655,1347678207,1360933887,1372794879,1410459647,3258357759,3277188863,3276428543,3287259647,3559689471,3562834943,3578832127,3579314175,3641241599,3645019135,3645569023,3648479231,1535628031,1042394879,1346950655,1347678207,1360933887,1372794879,1410459647,3258357759,3277188863,3281465599,3287259647,3559689471,3562834943,3578832127,3579265535,3579267935,3579273215,3641241599,3641240575,3645019135,3645569023,3648479231);
	$IP106 = array(1404829696,1518927872,1404043264,2197028864);
	$IP206 = array(1404870655,1518944255,1405091839,2197094399);
	$IP107 = array(3650368512,3650367488);
	$IP207 = array(3650368767,3650371583);
	$IP108 = array(3278955480,3278956288,3278960128);
	$IP208 = array(3278955515,3278956543,3278960383);
	$IP109 = array(1389383040,1432330240,3282161664,3282171904,3585171456,1389383040,1432330240,3282161664,3282171904,3585171456);
	$IP209 = array(1389383167,1432334335,3282163711,3282173951,3585174271,1389383167,1432334335,3282163711,3282173951,3585174271);
	$IP110 = array(1346736128,3260286336,3645731072,1310210048,1536099328,1346736128,3260286336,3645731072);
	$IP210 = array(1346737151,3260286463,3645731079,1310211071,1536099839,1346737151,3260286463,3645731079);
	$IP111 = array(3648294912,1509527552);
	$IP211 = array(3648295935,1509528575);
	$IP112 = array(1481787392,3652001536,1506762752);
	$IP212 = array(1481787647,3652001599,1506764799);
	$IP113 = array(1052193280,1347125248,1347125248,1347126528);
	$IP213 = array(1052193535,1347129343,1347125759,1347127167);
	$IP114 = array(1358118912,1358119680);
	$IP214 = array(1358120703,1358123007);
	$IP115 = array(1406740480,1406741504,3564593152,3564595968,3564599808,3565248512,3565250048,3565250560,3578853376,3648215680);
	$IP215 = array(1406741503,1406743551,3564593407,3564596735,3564601343,3565256703,3565250559,3565254655,3578854079,3648215807);
	$IP116 = array(3651751936,3651752192,3651755008);
	$IP216 = array(3651752191,3651752447,3651756031);
	$IP117 = array(3287244288);
	$IP217 = array(3287244543);
	$IP118 = array(3645317120);
	$IP218 = array(3645318015);
	$IP119 = array(3268669440);
	$IP219 = array(3268673535);
	$IP120 = array(2197028864);
	$IP220 = array(2197094399);
	$IP121 = array(3588390912,1410269184);
	$IP221 = array(3588391935,1410334719);
	$IP122 = array(3266322432);
	$IP222 = array(3266322687);
	$IP123 = array(2197028864);
	$IP223 = array(2197094399);
	$IP124 = array(2197028864);
	$IP224 = array(2197094399);
	$IP125 = array(3562882304);
	$IP225 = array(3563086079);
	$IP300 = array(3240705024,1360465920,1360467968,1360465920);
    $IP301 = array(3240706047,1360467967,1360470015,1360467967);
    $IP302 = array(1358905344,1358905344,1358907392,1358907648,1358907904,1358908160,1358908416,1358908672,1358908928,1358909184,1490436096,1490444288);
    $IP303 = array(1358909439,1358905471,1358907647,1358907903,1358908159,1358908415,1358908671,1358908927,1358909183,1358909439,1490444287,1490452479);
    $IP304 = array(3560612352,3560612864,1333559296,1536278528,1536286720,3560615936);
    $IP305 = array(3560612863,3560613887,1333575679,1536286719,1536294911,3560620031);
    $IP306 = array(3253698560);
    $IP307 = array(3253699071);
    $IP308 = array(3274702592);
    $IP309 = array(3274702847);
    $IP310 = array(3557661440,3563233536,3583086592);
    $IP311 = array(3557661695,3563233791,3583087103);
    $IP312 = array(1410273024,3588391680,2197079040,3588406784,3588407040);
    $IP313 = array(1410273279,3588391935,2197079295,3588407039,3588407295);
    $IP314 = array(3283979776);
    $IP315 = array(3283980031);
    $IP316 = array(3557661440);
    $IP317 = array(3557661695);
    $IP318 = array(3590112000);
    $IP319 = array(3590112255);
    $IP320 = array(3245279744);
    $IP321 = array(3245280255);
    $IP322 = array(3563233280);
    $IP323 = array(3563241471);
    $IP324 = array(3585171456,3282171904,3282161664,1432330240);
    $IP325 = array(3585174271,3282173951,3282163711,1432334335);
    $IP326 = array(1346736128);
    $IP327 = array(1346737151);
    $IP328 = array(3587391488);
    $IP329 = array(3587407871);
    $IP330 = array(3583086592);
    $IP331 = array(3583087103);
    $IP332 = array(3266342656);
    $IP333 = array(3266342911);    
    $IP334 = array(1052193280,1347125248);
    $IP335 = array(1052193535,1347129343);
    $IP336 = array(3563233536);
    $IP337 = array(3563233791);
    $IP338 = array(3287244535,3287244440);
    $IP339 = array(3287244535,3287244455);
    $IP340 = array(3582431104);
    $IP341 = array(3582434943);
    $IP342 = array(3273026560,1385632000);
    $IP343 = array(3273027583,1385632255);
    $IP344 = array(1427948288);
    $IP345 = array(1427948543);
    $IP346 = array(1438682304);    
    $IP347 = array(1438682335);
    $IP348 = array(3266342656);
    $IP349 = array(3266342911);
    $IP350 = array(1441355008,1401450500,1506570240,3571187712,3564676832,1494507776,3641816064);
    $IP351 = array(1441371903,1401450755,1506574335,3571194367,3564676863,1494508031,3641816319);
    $IP352 = array(1402277632);
    $IP353 = array(1402277887);
    $IP354 = array(1402277376);
    $IP355 = array(1402277631);
    $IP356 = array(2887452253);
    $IP357 = array(2887452253);
	$IP358 = array(3289116416);
    $IP359 = array(3289118463);
	$IP360 = array(3290395648);
    $IP361 = array(3290395903);
	$IP362 = array(3301908480);
    $IP363 = array(3301912575);
	$IP364 = array(1365221376);
    $IP365 = array(1365225471);
	$IP366 = array(3561527296,1536655360);
    $IP367 = array(3561527423,1536659455);
	$IP368 = array(3228960768);
    $IP369 = array(3228961791);
    $IP370 = array(3566648512,1358598144);
    $IP371 = array(3566648575,1358602239);
	$IP372 = array(3253712384);
    $IP373 = array(3253712895);
    $IP374 = array(1336598528);
    $IP375 = array(1336600575);
	$IP376 = array(1358192640);
    $IP377 = array(1358196735);
    $IP378 = array(3252787200,1423966208);
    $IP379 = array(3252788223,1424097279);
    $IP380 = array(3560128512);
    $IP381 = array(3560144895);
	$IP382 = array(1054457856,3253183488);
    $IP383 = array(1054474239,3253184511);
	$IP384 = array(1359798464);
    $IP385 = array(1359798479);
	$IP386 = array(3395101696);
    $IP387 = array(3395102207);
    $IP388 = array(3716464640,3389248768);
    $IP389 = array(3716481023,3389251071);
    $IP390 = array(3399020544);
    $IP391 = array(3399020799);
    $IP392 = array(3254522368,3268334592);
    $IP393 = array(3254534143,3268334599);
    $IP394 = array(1350410240);
    $IP395 = array(1350418431);
    $IP396 = array(1053392896);
    $IP397 = array(1053401087);
	$IP398 = array(3587031040,3240329216,1505755136);//Orange (Великобритания)
    $IP399 = array(3587047423,3240333311,1505886207);//Orange (Великобритания)
    $IP400 = array(1384415744,3245459200);//O2 (Великобритания)
    $IP401 = array(1384418047,3245459711);//O2 (Великобритания)
    $IP402 = array(2516451328);//T-Mobile (Великобритания)
    $IP403 = array(2516516863);//T-Mobile (Великобритания)
    $IP404 = array(1383104512,3557359616);//Jersey Telecom (Великобритания)
    $IP405 = array(1383112703,3557367807);//Jersey Telecom (Великобритания)
    $IP406 = array(3568795648);//Vodafone (Великобритания)
    $IP407 = array(3568803839);//Vodafone (Великобритания)
	$IP408 = array(1532887040,3648282624,3255426816,1465909248);//PTK Centertel (Польша)
    $IP409 = array(1532952575,3648286719,3255427071,1465942015);//PTK Centertel (Польша)
    $IP410 = array(3583950848);//Eranet (Польша)
    $IP411 = array(3583959039);//Eranet (Польша)
    $IP412 = array(3556925440,1299185664);//PlusGSM (Польша)
    $IP413 = array(3556933631,1299316735);//PlusGSM (Польша)
    $IP414 = array(1449546576,1449550096);
    $IP415 = array(1449546591,1449550143);
	$IP416 = array(1969225728);//Airtel (Индия)
    $IP417 = array(1969487871);//Airtel (Индия)
    $IP418 = array(1407188992);//Vodafone (Италия)
    $IP419 = array(1407320063);//Vodafone (Италия)
    $IP420 = array(3588653056);//Telecom Italia Mobile (Италия)
    $IP421 = array(3588661247);//Telecom Italia Mobile (Италия)
    $IP422 = array(1113456640,3634077696);//T-Mobile (US)
    $IP423 = array(1113464831,3634081791);//T-Mobile (US)
    $IP424 = array(1120993280,1114021888,3518439424);//Cingular Wireless (US)
    $IP425 = array(1121001471,1114030079,3518447615);//Cingular Wireless (US)
    $IP426 = array(1502658560,3257957376);//Mobilkom (Австрия)
    $IP427 = array(1502674943,3257961471);//Mobilkom (Австрия)
    $IP428 = array(3651710976);//Azercell Telecom (AZ)
    $IP429 = array(3651715071);//Azercell Telecom (AZ)
    $IP430 = array(3584835584);//Bakcell (AZ)
    $IP431 = array(3584843775);//Bakcell (AZ)
    $IP432 = array(1307865088);//Azerfon (AZ)
    $IP433 = array(1307869183);//Azerfon (AZ)
    $IP434 = array(3583492096,1317879808);//Orange (Словакия)
    $IP435 = array(3583508479,1317896191);//Orange (Словакия)
    $IP436 = array(3264929792,3277520896);//EuroTel Bratislava (Словакия)
    $IP437 = array(3264937983,3277553663);//EuroTel Bratislava (Словакия)
	$IP438 = array(3358127616);//Ancel (Уругвай)
    $IP439 = array(3358127679);//Ancel (Уругвай)
	$IP440 = array(3588849664);//Vodafone (Ирландия)
    $IP441 = array(3588857855);//Vodafone (Ирландия)
    $IP442 = array(3562758144);//Vipnet (Хорватия)
    $IP443 = array(3562766335);//Vipnet (Хорватия)
    $IP444 = array(1406795264);//Vivacell (Армения)
    $IP445 = array(1406795647);//Vivacell (Армения)
	$IP446 = array(3654287360,3225916416,2205351936,3288080384,3275996160,3568631808,3577741312);
    $IP447 = array(3654811647,3225916671,2205483007,3288088575,3276013567,3568697343,3578003455);
	$IP448 = array(1041521424,1041526784,1041558016);
    $IP449 = array(1041521431,1041527807,1041558527);
    $IP450 = array(1374486528,3222313216,3223640576,3224087040,3231070976);
    $IP451 = array(1374488575,3222313471,3223640831,3224087551,3231071231);
	$IP452 = array(3240913152,3240943104,3240944896);
    $IP453 = array(3240914943,3240943359,3240945151);
	$IP454 = array(1048899008,1045902336);
    $IP455 = array(1045899263,1045903359);
    $IP456 = array(1045909504,1045914624);
    $IP457 = array(1045910527,1045914879);
    $IP458 = array(3567684864,3567688256);
    $IP459 = array(3567685119,3567688359);
    $IP460 = array(3567689216);
    $IP461 = array(3567689471);
    $IP462 = array(3567690752,3567693312,3567703040);
    $IP463 = array(3567690879,3567693567,3567703295);
	$IP464 = array(3567708160);
    $IP465 = array(3567709183);
    $IP466 = array(3645361920);
    $IP467 = array(3645362175);
    $IP468 = array(1048838144,1048920064);
    $IP469 = array(1048903679,1048936447);
    $IP470 = array(1297561600);
    $IP471 = array(1297563647);
    $IP472 = array(3249279392,3249287760,3249296384);
    $IP473 = array(3249279407,3249287770,3249296639);
	$IP474 = array(3249307088);
    $IP475 = array(3249307103);
    $IP476 = array(3249317120,3249317888);
    $IP477 = array(3249317375,3249318399);
    $IP478 = array(3264703616);
    $IP479 = array(3264703679);
    $IP480 = array(1494745600,1494747648);
    $IP481 = array(1494745855,1494747903);
    $IP482 = array(1494751232);
    $IP483 = array(1494751487);
	$IP484 = array(3645745408);
    $IP485 = array(3645745599);
	
	
	
	
		for ($ix=0; $ix<count($IP101); $ix++)
	{
		if ($ipnum>=$IP101[$ix] && $ipnum<=$IP201[$ix]) $oper = "1";
	}
	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";
	}
	for ($ix=0; $ix<count($IP104); $ix++)
	{
		if ($ipnum>=$IP104[$ix] && $ipnum<=$IP204[$ix]) $oper = "4";
	}
	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";
	}
	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";
	}
	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";
	}
	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";
	}
	for ($ix=0; $ix<count($IP119); $ix++)
	{
		if ($ipnum>=$IP119[$ix] && $ipnum<=$IP219[$ix]) $oper = "19";
	}
	for ($ix=0; $ix<count($IP120); $ix++)
	{
		if ($ipnum>=$IP120[$ix] && $ipnum<=$IP220[$ix]) $oper = "20";
	}
	for ($ix=0; $ix<count($IP121); $ix++)
	{
		if ($ipnum>=$IP121[$ix] && $ipnum<=$IP221[$ix]) $oper = "21";
	}
	for ($ix=0; $ix<count($IP122); $ix++)
	{
		if ($ipnum>=$IP122[$ix] && $ipnum<=$IP222[$ix]) $oper = "22";
	}
	for ($ix=0; $ix<count($IP123); $ix++)
	{
		if ($ipnum>=$IP123[$ix] && $ipnum<=$IP223[$ix]) $oper = "23";
	}
	for ($ix=0; $ix<count($IP124); $ix++)
	{
		if ($ipnum>=$IP124[$ix] && $ipnum<=$IP224[$ix]) $oper = "24";
	}
	for ($ix=0; $ix<count($IP125); $ix++)
	{
		if ($ipnum>=$IP125[$ix] && $ipnum<=$IP225[$ix]) $oper = "25";
	}
	for ($ix=0; $ix<count($IP300); $ix++)
	{
    if ($ipnum>=$IP300[$ix] && $ipnum<=$IP301[$ix]) $oper = "26";
    }
    for ($ix=0; $ix<count($IP302); $ix++)
	{
    if ($ipnum>=$IP302[$ix] && $ipnum<=$IP303[$ix]) $oper = "27";
    }
    for ($ix=0; $ix<count($IP304); $ix++)
	{
    if ($ipnum>=$IP304[$ix] && $ipnum<=$IP305[$ix]) $oper = "28";
    }
    for ($ix=0; $ix<count($IP306); $ix++)
	{
    if ($ipnum>=$IP306[$ix] && $ipnum<=$IP307[$ix]) $oper = "29";
    }
    for ($ix=0; $ix<count($IP308); $ix++)
	{
    if ($ipnum>=$IP308[$ix] && $ipnum<=$IP309[$ix]) $oper = "30";
    }
    for ($ix=0; $ix<count($IP310); $ix++)
	{
    if ($ipnum>=$IP310[$ix] && $ipnum<=$IP311[$ix]) $oper = "30";
    }
    for ($ix=0; $ix<count($IP312); $ix++)
	{
    if ($ipnum>=$IP312[$ix] && $ipnum<=$IP313[$ix]) $oper = "31";
    }
    for ($ix=0; $ix<count($IP314); $ix++)
	{
    if ($ipnum>=$IP314[$ix] && $ipnum<=$IP315[$ix]) $oper = "32";
    }
    for ($ix=0; $ix<count($IP316); $ix++)
	{
    if ($ipnum>=$IP316[$ix] && $ipnum<=$IP317[$ix]) $oper = "33";
    }
    for ($ix=0; $ix<count($IP318); $ix++)
	{
	if ($ipnum>=$IP318[$ix] && $ipnum<=$IP319[$ix]) $oper = "34";
	}
	for ($ix=0; $ix<count($IP320); $ix++)
	{
	if ($ipnum>=$IP320[$ix] && $ipnum<=$IP321[$ix]) $oper = "35";
	}
	for ($ix=0; $ix<count($IP322); $ix++)
	{
	if ($ipnum>=$IP322[$ix] && $ipnum<=$IP323[$ix]) $oper = "36";
	}
	for ($ix=0; $ix<count($IP324); $ix++)
	{
	if ($ipnum>=$IP324[$ix] && $ipnum<=$IP325[$ix]) $oper = "37";
	}
	for ($ix=0; $ix<count($IP326); $ix++)
	{
	if ($ipnum>=$IP326[$ix] && $ipnum<=$IP327[$ix]) $oper = "38";
	}
	for ($ix=0; $ix<count($IP328); $ix++)
	{
	if ($ipnum>=$IP328[$ix] && $ipnum<=$IP329[$ix]) $oper = "39";
	}
	for ($ix=0; $ix<count($IP330); $ix++)
	{
	if ($ipnum>=$IP330[$ix] && $ipnum<=$IP331[$ix]) $oper = "40";
	}
	for ($ix=0; $ix<count($IP332); $ix++)
	{
	if ($ipnum>=$IP332[$ix] && $ipnum<=$IP333[$ix]) $oper = "41";
	}
	for ($ix=0; $ix<count($IP334); $ix++)
	{
	if ($ipnum>=$IP334[$ix] && $ipnum<=$IP335[$ix]) $oper = "42";
	}
	for ($ix=0; $ix<count($IP336); $ix++)
	{
	if ($ipnum>=$IP336[$ix] && $ipnum<=$IP337[$ix]) $oper = "43";
	}
	for ($ix=0; $ix<count($IP338); $ix++)
	{
	if ($ipnum>=$IP338[$ix] && $ipnum<=$IP339[$ix]) $oper = "44";
	}
	for ($ix=0; $ix<count($IP340); $ix++)
	{
	if ($ipnum>=$IP340[$ix] && $ipnum<=$IP341[$ix]) $oper = "45";
	}
	for ($ix=0; $ix<count($IP342); $ix++)
	{
	if ($ipnum>=$IP342[$ix] && $ipnum<=$IP343[$ix]) $oper = "46";
	}
	for ($ix=0; $ix<count($IP344); $ix++)
	{
	if ($ipnum>=$IP344[$ix] && $ipnum<=$IP345[$ix]) $oper = "47";
	}
	for ($ix=0; $ix<count($IP346); $ix++)
	{
	if ($ipnum>=$IP346[$ix] && $ipnum<=$IP347[$ix]) $oper = "48";
	}
	for ($ix=0; $ix<count($IP348); $ix++)
	{
	if ($ipnum>=$IP348[$ix] && $ipnum<=$IP349[$ix]) $oper = "49";
	}
	for ($ix=0; $ix<count($IP350); $ix++)
	{
	if ($ipnum>=$IP350[$ix] && $ipnum<=$IP351[$ix]) $oper = "50";
	}
	for ($ix=0; $ix<count($IP352); $ix++)
	{
	if ($ipnum>=$IP352[$ix] && $ipnum<=$IP353[$ix]) $oper = "51";
	}
	for ($ix=0; $ix<count($IP354); $ix++)
	{
	if ($ipnum>=$IP354[$ix] && $ipnum<=$IP355[$ix]) $oper = "52";
	}
	for ($ix=0; $ix<count($IP356); $ix++)
	{
	if ($ipnum>=$IP356[$ix] && $ipnum<=$IP357[$ix]) $oper = "53";
	}
	for ($ix=0; $ix<count($IP358); $ix++)
	{
	if ($ipnum>=$IP358[$ix] && $ipnum<=$IP359[$ix]) $oper = "54";
	}
	for ($ix=0; $ix<count($IP360); $ix++)
	{
	if ($ipnum>=$IP360[$ix] && $ipnum<=$IP361[$ix]) $oper = "55";
	}
	for ($ix=0; $ix<count($IP362); $ix++)
	{
	if ($ipnum>=$IP362[$ix] && $ipnum<=$IP363[$ix]) $oper = "56";
	}
	for ($ix=0; $ix<count($IP364); $ix++)
	{
	if ($ipnum>=$IP364[$ix] && $ipnum<=$IP365[$ix]) $oper = "57";
	}
	for ($ix=0; $ix<count($IP366); $ix++)
	{
	if ($ipnum>=$IP366[$ix] && $ipnum<=$IP367[$ix]) $oper = "58";
	}
	for ($ix=0; $ix<count($IP368); $ix++)
	{
	if ($ipnum>=$IP368[$ix] && $ipnum<=$IP369[$ix]) $oper = "59";
	}
	for ($ix=0; $ix<count($IP370); $ix++)
	{
	if ($ipnum>=$IP370[$ix] && $ipnum<=$IP371[$ix]) $oper = "60";
	}
	for ($ix=0; $ix<count($IP372); $ix++)
	{
	if ($ipnum>=$IP372[$ix] && $ipnum<=$IP373[$ix]) $oper = "61";
	}
	for ($ix=0; $ix<count($IP374); $ix++)
	{
	if ($ipnum>=$IP374[$ix] && $ipnum<=$IP375[$ix]) $oper = "62";
	}
	for ($ix=0; $ix<count($IP376); $ix++)
	{
	if ($ipnum>=$IP376[$ix] && $ipnum<=$IP377[$ix]) $oper = "63";
	}
	for ($ix=0; $ix<count($IP378); $ix++)
	{
	if ($ipnum>=$IP378[$ix] && $ipnum<=$IP379[$ix]) $oper = "64";
	}
	for ($ix=0; $ix<count($IP380); $ix++)
	{
	if ($ipnum>=$IP380[$ix] && $ipnum<=$IP381[$ix]) $oper = "65";
	}
	for ($ix=0; $ix<count($IP382); $ix++)
	{
	if ($ipnum>=$IP382[$ix] && $ipnum<=$IP383[$ix]) $oper = "66";
	}
	for ($ix=0; $ix<count($IP384); $ix++)
	{
	if ($ipnum>=$IP384[$ix] && $ipnum<=$IP385[$ix]) $oper = "67";
	}
	for ($ix=0; $ix<count($IP386); $ix++)
	{
	if ($ipnum>=$IP386[$ix] && $ipnum<=$IP387[$ix]) $oper = "68";
	}
	for ($ix=0; $ix<count($IP388); $ix++)
	{
	if ($ipnum>=$IP388[$ix] && $ipnum<=$IP389[$ix]) $oper = "69";
	}
	for ($ix=0; $ix<count($IP390); $ix++)
	{
	if ($ipnum>=$IP390[$ix] && $ipnum<=$IP391[$ix]) $oper = "70";
	}
	for ($ix=0; $ix<count($IP392); $ix++)
	{
	if ($ipnum>=$IP392[$ix] && $ipnum<=$IP393[$ix]) $oper = "71";
	}
	for ($ix=0; $ix<count($IP394); $ix++)
	{
	if ($ipnum>=$IP394[$ix] && $ipnum<=$IP395[$ix]) $oper = "72";
	}
	for ($ix=0; $ix<count($IP396); $ix++)
	{
	if ($ipnum>=$IP396[$ix] && $ipnum<=$IP397[$ix]) $oper = "73";
	}
	for ($ix=0; $ix<count($IP398); $ix++)
	{
	if ($ipnum>=$IP398[$ix] && $ipnum<=$IP399[$ix]) $oper = "74";
	}
	for ($ix=0; $ix<count($IP400); $ix++)
	{
	if ($ipnum>=$IP400[$ix] && $ipnum<=$IP401[$ix]) $oper = "75";
	}
	for ($ix=0; $ix<count($IP402); $ix++)
	{
	if ($ipnum>=$IP402[$ix] && $ipnum<=$IP403[$ix]) $oper = "76";
	}
	for ($ix=0; $ix<count($IP404); $ix++)
	{
	if ($ipnum>=$IP404[$ix] && $ipnum<=$IP405[$ix]) $oper = "77";
	}
	for ($ix=0; $ix<count($IP406); $ix++)
	{
	if ($ipnum>=$IP406[$ix] && $ipnum<=$IP407[$ix]) $oper = "78";
	}
	for ($ix=0; $ix<count($IP408); $ix++)
	{
	if ($ipnum>=$IP408[$ix] && $ipnum<=$IP409[$ix]) $oper = "79";
	}
	for ($ix=0; $ix<count($IP410); $ix++)
	{
	if ($ipnum>=$IP410[$ix] && $ipnum<=$IP411[$ix]) $oper = "80";
	}
	for ($ix=0; $ix<count($IP412); $ix++)
	{
	if ($ipnum>=$IP412[$ix] && $ipnum<=$IP413[$ix]) $oper = "81";
	}
	for ($ix=0; $ix<count($IP414); $ix++)
	{
	if ($ipnum>=$IP414[$ix] && $ipnum<=$IP415[$ix]) $oper = "82";
	}
	for ($ix=0; $ix<count($IP416); $ix++)
	{
	if ($ipnum>=$IP416[$ix] && $ipnum<=$IP417[$ix]) $oper = "83";
	}
	for ($ix=0; $ix<count($IP418); $ix++)
	{
	if ($ipnum>=$IP418[$ix] && $ipnum<=$IP419[$ix]) $oper = "84";
	}
	for ($ix=0; $ix<count($IP420); $ix++)
	{
	if ($ipnum>=$IP420[$ix] && $ipnum<=$IP421[$ix]) $oper = "85";
	}
	for ($ix=0; $ix<count($IP422); $ix++)
	{
	if ($ipnum>=$IP422[$ix] && $ipnum<=$IP423[$ix]) $oper = "86";
	}
	for ($ix=0; $ix<count($IP424); $ix++)
	{
	if ($ipnum>=$IP424[$ix] && $ipnum<=$IP425[$ix]) $oper = "87";
	}
	for ($ix=0; $ix<count($IP426); $ix++)
	{
	if ($ipnum>=$IP426[$ix] && $ipnum<=$IP427[$ix]) $oper = "88";
	}
	for ($ix=0; $ix<count($IP428); $ix++)
	{
	if ($ipnum>=$IP428[$ix] && $ipnum<=$IP429[$ix]) $oper = "89";
	}
	for ($ix=0; $ix<count($IP430); $ix++)
	{
	if ($ipnum>=$IP430[$ix] && $ipnum<=$IP431[$ix]) $oper = "90";
	}
	for ($ix=0; $ix<count($IP432); $ix++)
	{
	if ($ipnum>=$IP432[$ix] && $ipnum<=$IP433[$ix]) $oper = "91";
	}
	for ($ix=0; $ix<count($IP434); $ix++)
	{
	if ($ipnum>=$IP434[$ix] && $ipnum<=$IP435[$ix]) $oper = "92";
	}
	for ($ix=0; $ix<count($IP436); $ix++)
	{
	if ($ipnum>=$IP436[$ix] && $ipnum<=$IP437[$ix]) $oper = "93";
	}
	for ($ix=0; $ix<count($IP438); $ix++)
	{
	if ($ipnum>=$IP438[$ix] && $ipnum<=$IP439[$ix]) $oper = "94";
	}
	for ($ix=0; $ix<count($IP440); $ix++)
	{
	if ($ipnum>=$IP440[$ix] && $ipnum<=$IP441[$ix]) $oper = "95";
	}
	for ($ix=0; $ix<count($IP442); $ix++)
	{
	if ($ipnum>=$IP442[$ix] && $ipnum<=$IP443[$ix]) $oper = "96";
	}
	for ($ix=0; $ix<count($IP444); $ix++)
	{
	if ($ipnum>=$IP444[$ix] && $ipnum<=$IP445[$ix]) $oper = "97";
	}
	for ($ix=0; $ix<count($IP446); $ix++)
	{
	if ($ipnum>=$IP446[$ix] && $ipnum<=$IP447[$ix]) $oper = "98";
	}
	for ($ix=0; $ix<count($IP448); $ix++)
	{
	if ($ipnum>=$IP448[$ix] && $ipnum<=$IP449[$ix]) $oper = "99";
	}
	for ($ix=0; $ix<count($IP450); $ix++)
	{
	if ($ipnum>=$IP450[$ix] && $ipnum<=$IP451[$ix]) $oper = "100";
	}
	for ($ix=0; $ix<count($IP452); $ix++)
	{
	if ($ipnum>=$IP452[$ix] && $ipnum<=$IP453[$ix]) $oper = "101";
	}
	for ($ix=0; $ix<count($IP454); $ix++)
	{
	if ($ipnum>=$IP454[$ix] && $ipnum<=$IP455[$ix]) $oper = "102";
	}
	for ($ix=0; $ix<count($IP456); $ix++)
	{
	if ($ipnum>=$IP456[$ix] && $ipnum<=$IP457[$ix]) $oper = "103";
	}
	for ($ix=0; $ix<count($IP458); $ix++)
	{
	if ($ipnum>=$IP458[$ix] && $ipnum<=$IP459[$ix]) $oper = "104";
	}
	for ($ix=0; $ix<count($IP460); $ix++)
	{
	if ($ipnum>=$IP460[$ix] && $ipnum<=$IP461[$ix]) $oper = "105";
	}
	for ($ix=0; $ix<count($IP462); $ix++)
	{
	if ($ipnum>=$IP462[$ix] && $ipnum<=$IP463[$ix]) $oper = "106";
	}
	for ($ix=0; $ix<count($IP464); $ix++)
	{
	if ($ipnum>=$IP464[$ix] && $ipnum<=$IP465[$ix]) $oper = "107";
	}
	for ($ix=0; $ix<count($IP466); $ix++)
	{
	if ($ipnum>=$IP466[$ix] && $ipnum<=$IP467[$ix]) $oper = "108";
	}
	for ($ix=0; $ix<count($IP468); $ix++)
	{
	if ($ipnum>=$IP468[$ix] && $ipnum<=$IP469[$ix]) $oper = "109";
	}
	for ($ix=0; $ix<count($IP470); $ix++)
	{
	if ($ipnum>=$IP470[$ix] && $ipnum<=$IP471[$ix]) $oper = "110";
	}
	for ($ix=0; $ix<count($IP472); $ix++)
	{
	if ($ipnum>=$IP472[$ix] && $ipnum<=$IP473[$ix]) $oper = "111";
	}
	for ($ix=0; $ix<count($IP474); $ix++)
	{
	if ($ipnum>=$IP474[$ix] && $ipnum<=$IP475[$ix]) $oper = "112";
	}
	for ($ix=0; $ix<count($IP476); $ix++)
	{
	if ($ipnum>=$IP476[$ix] && $ipnum<=$IP477[$ix]) $oper = "113";
	}
	for ($ix=0; $ix<count($IP478); $ix++)
	{
	if ($ipnum>=$IP478[$ix] && $ipnum<=$IP479[$ix]) $oper = "114";
	}
	for ($ix=0; $ix<count($IP480); $ix++)
	{
	if ($ipnum>=$IP480[$ix] && $ipnum<=$IP481[$ix]) $oper = "115";
	}
	for ($ix=0; $ix<count($IP482); $ix++)
	{
	if ($ipnum>=$IP482[$ix] && $ipnum<=$IP483[$ix]) $oper = "116";
	}
	for ($ix=0; $ix<count($IP484); $ix++)
	{
	if ($ipnum>=$IP484[$ix] && $ipnum<=$IP485[$ix]) $oper = "117";
	}
}

if($oper == 1)$oper_name = "Мегафон (Россия)";
if($oper == 2)$oper_name = "Билайн (Россия)";
if($oper == 3)$oper_name = "Utel (Россия)";
if($oper == 4)$oper_name = "БайкалВестКом (Россия)";
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 = "Прибалтийские операторы";
if($oper == 32)$oper_name = "Opera Mini";
if($oper == 33)$oper_name = "KARTEL (Казахстан)";
if($oper == 34)$oper_name = "Экстел GSM ";
if($oper == 35)$oper_name = "Babilon GSM (Таджикистан)";
if($oper == 36)$oper_name = "БеСТ (Беларусь)";
if($oper == 37)$oper_name = "VolgaTelecom (Россия)";
if($oper == 38)$oper_name = "Volgograd-GSM (Россия)";
if($oper == 39)$oper_name = "Nursat (Киргизия)";
if($oper == 40)$oper_name = "Kyrgyztelecom (Киргизия)";
if($oper == 41)$oper_name = "BiTel (Киргизия)";
if($oper == 42)$oper_name = "Мобайл GSM (Россия)";
if($oper == 43)$oper_name = "VELCOM (Белорусь)";
if($oper == 44)$oper_name = "Парма-Мобайл (Россия)";
if($oper == 45)$oper_name = "Тамбов GSM (Россия)";
if($oper == 46)$oper_name = "БашСел (Россия)";
if($oper == 47)$oper_name = "ДальСвязь (Россия)";
if($oper == 48)$oper_name = "Оренбург GSM (Россия)";
if($oper == 49)$oper_name = "Скай Мобайл (Россия)";
if($oper == 50)$oper_name = "УралСвязьИнформ (Россия)";
if($oper == 51)$oper_name = "MLT (Tаджикистан)";
if($oper == 52)$oper_name = "BiMoCom";
if($oper == 53)$oper_name = "K-Mobile";
if($oper == 54)$oper_name = "MTN (ЮАР)";
if($oper == 55)$oper_name = "Cell (ЮАР)";
if($oper == 56)$oper_name = "Vodacom (ЮАР)";
if($oper == 57)$oper_name = "Magticom (Грузия)";
if($oper == 58)$oper_name = "Geocell (Грузия)";
if($oper == 59)$oper_name = "Orange (Израиль)";
if($oper == 60)$oper_name = "Cellcom (Израиль)";
if($oper == 61)$oper_name = "Voxtel GSM (Молдова)";
if($oper == 62)$oper_name = "Moldcell (Молдова)";
if($oper == 63)$oper_name = "Vodafone (Венгрия)";
if($oper == 64)$oper_name = "Pannon GSM (Венгрия)";
if($oper == 65)$oper_name = "T-Mobile (Венгрия)";
if($oper == 66)$oper_name = "Orange (Румыния)";
if($oper == 67)$oper_name = "Vodafone (Румыния)";
if($oper == 68)$oper_name = "Indosat (Индонезия)";
if($oper == 69)$oper_name = "Telkomsel (Индонезия)";
if($oper == 70)$oper_name = "XLGPRS (Индонезия)";
if($oper == 71)$oper_name = "Orange (Франция)";
if($oper == 72)$oper_name = "SFR (Франция)";
if($oper == 73)$oper_name = "Bouygues Telecom (Франция)";
if($oper == 74)$oper_name = "Orange (Великобритания)";
if($oper == 75)$oper_name = "O2 (Великобритания)";
if($oper == 76)$oper_name = "T-Mobile (Великобритания)";
if($oper == 77)$oper_name = "Jersey Telecom (Великобритания)";
if($oper == 78)$oper_name = "Vodafone (Великобритания)";
if($oper == 79)$oper_name = "PTK Centertel (Польша)";
if($oper == 80)$oper_name = "Eranet (Польша)";
if($oper == 81)$oper_name = "PlusGSM (Польша)";
if($oper == 82)$oper_name = "АКОС (Россия)";
if($oper == 83)$oper_name = "Airtel (Индия)";
if($oper == 84)$oper_name = "Vodafone (Италия)";
if($oper == 85)$oper_name = "Telecom Italia Mobile (Италия)";
if($oper == 86)$oper_name = "T-Mobile (США)";
if($oper == 87)$oper_name = "Cingular Wireless (США)";
if($oper == 88)$oper_name = "Mobilkom (Австрия)";
if($oper == 89)$oper_name = "Azercell Telecom (Aзербайджан)";
if($oper == 90)$oper_name = "Bakcell (Aзербайджан)";
if($oper == 91)$oper_name = "Azerphon (Aзебайджан)";
if($oper == 92)$oper_name = "Orange (Словакия)";
if($oper == 93)$oper_name = "EuroTel Bratislava (Словакия)";
if($oper == 94)$oper_name = "Ancel (Уругвай)";
if($oper == 95)$oper_name = "Vodafone (Ирландия)";
if($oper == 96)$oper_name = "Vipnet (Хорватия)";
if($oper == 97)$oper_name = "Vivacell (Армения)";
if($oper == 98)$oper_name = "Telia (Швеция)";
if($oper == 99)$oper_name = "Telenor (Швеция)";
if($oper == 100)$oper_name = "Tele2 (Швеция)";
if($oper == 101)$oper_name = "Tre (Швеция)";
if($oper == 102)$oper_name = "Movistar (Испания)";
if($oper == 103)$oper_name = "Yoigo (Испания)";
if($oper == 104)$oper_name = "Vodafone (Испания)";
if($oper == 105)$oper_name = "Orange (Испания)";
if($oper == 106)$oper_name = "Euskaltel (Испания)";
if($oper == 107)$oper_name = "R (Испания)";
if($oper == 108)$oper_name = "Telecable (Испания)";
if($oper == 109)$oper_name = "KPN (Голландия)";
if($oper == 110)$oper_name = "T-Mobile (Голландия)";
if($oper == 111)$oper_name = "Vodafone (Голландия)";
if($oper == 112)$oper_name = "Orange (Голландия)";
if($oper == 113)$oper_name = "Telfort (Голландия)";
if($oper == 114)$oper_name = "Tele2 (Голландия)";
if($oper == 115)$oper_name = "O2 (Чехия)";
if($oper == 116)$oper_name = "T-Mobile (Чехия)";
if($oper == 117)$oper_name = "Vodafone (Чехия)";
?>