Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- print_r($_REQUEST);
- ini_set('display_errors', 1);
- error_reporting(E_ALL);
- function verifyInternalIP($ip) {
- if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) && !filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE)) {
- return true;
- }
- else {
- return false;
- }
- }
- $server = $_REQUEST['server'];
- $external = $_REQUEST['ext'];
- $domain = $_REQUEST['domain'];
- $ips = explode(',', $server);
- $int_ip = $ips[0];
- $ext_ip = $ips[1];
- $iv6_ip = $ips[2];
- if($int_ip == 'none' || $int_ip == '')){
- $les = false;
- }
- if($ext_ip == 'none' || $ext_ip == '')){
- die('External IP Does Not Exist');
- }
- if($iv6_ip == 'none' || $iv6_ip == ''){
- $ipv6 = false;
- }
- //Check Internal IPv4
- if($les != 'false'){
- if (!verifyInternalIP($int_ip)) {
- echo 'Invalid Internal IP Provided';
- die();
- }
- }
- //Check External IPv4 Valid
- if($ext_ip != 'false'){
- if (!verifyInternalIP($int_ip)) {
- echo 'Invalid Internal IP Provided';
- die();
- }
- }
- //Check External IPv6 Valid
- if($ipv6 != 'false'){
- if (!verifyInternalIP($int_ip)) {
- echo 'Invalid Internal IP Provided';
- die();
- }
- }
- //Login to Rage4 Command
- include('rage4.php');
- $r4 = new rage4('contact@evoburst.com', 'e07072d9220a3cfdaa7f71c805019669');
- if($sub == '1'){ $dom = '37697'; }
- if($sub == '2'){ $dom = '37699'; }
- if($sub == '3'){ $dom = '37703'; }
- if($sub == '4'){ $dom = '37705'; }
- //Check Geo Tag
- if($geo == 'yes'){
- //NC1 - IP1
- if($ext_ip == '192.111.152.114'){ $geo_long = '-81.538985'; $geo_lat = '35.914020'; }
- if($ext_ip == '192.111.152.115'){ $geo_long = '-81.538985'; $geo_lat = '35.914020'; }
- //LA1 - IP1
- if($ext_ip == '68.64.160.150'){ $geo_long = '-118.243685'; $geo_lat = '34.052234'; }
- //DE1 - IP1
- if($ext_ip == ''){ $geo_long = '6.773456'; $geo_lat = '51.227741'; }
- if($ext_ip == ''){ $geo_long = '6.773456'; $geo_lat = '51.227741'; }
- //LES - Netherlands
- if($ext_ip == '213.163.67.24'){ $geo_long = '4.477733'; $geo_lat = '51.924420'; }
- if($ext_ip == '213.163.67.49'){ $geo_long = '4.477733'; $geo_lat = '51.924420'; }
- //LES - Italy
- if($ext_ip == '95.141.35.139'){ $geo_long = '9.185924'; $geo_lat = '45.465422'; }
- if($ext_ip == '95.141.35.117'){ $geo_long = '9.185924'; $geo_lat = '45.465422'; }
- //LES - USA
- if($ext_ip == '162.251.114.75'){ $geo_long = '-96.800451'; $geo_lat = '32.780140'; }
- if($ext_ip == '162.251.114.76'){ $geo_long = '-96.800451'; $geo_lat = '32.780140'; }
- //LES - UK
- if($ext_ip == '149.255.100.108'){ $geo_long = '-1.617780'; $geo_lat = '54.978252'; }
- if($ext_ip == '149.255.100.119'){ $geo_long = '-1.617780'; $geo_lat = '54.978252'; }
- //LES - JP
- if($ext_ip == '108.61.200.70'){ $geo_long = '139.691706'; $geo_lat = '35.689487'; }
- //LES - AU
- if($ext_ip == '103.25.58.8'){ $geo_long = '151.206990'; $geo_lat = '-33.867487'; }
- //Prepare Insert
- $create = $r4->createProxy($dom, $domain, $ip_addr, $type, 800, $long, $lat);
- }
- if($geo == 'no'){
- $create = $r4->createRecord($dom, $domain, $ip_addr, $type, '', 800);
- $res = str_replace('Record added with id ', '', $create);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement