Example #1
0
											<th>IP Address</th>
                                            <th>Port</th>
                                            <th>Country</th>
											<th>Actions</th>
										</tr>
									</thead>
									<tbody>
<?php 
$table = $prefix . 'proxy-list';
$query = mysqli_query($connect, "SELECT * FROM `{$table}`");
while ($row = mysqli_fetch_assoc($query)) {
    echo '
										<tr>
                                            <td>' . $row['ip'] . '</td>
                                            <td>' . $row['port'] . '</td>
                                            <td><img src="http://api.hostip.info/flag.php?ip=' . $row['ip'] . '" width="30px" height="15px" style="border: 1px solid #696969"> ' . visitor_country($row['ip']) . '</td>
											<td>
                                            <a href="?delete-id=' . $row['id'] . '" class="btn btn-danger"><i class="fa fa-trash"></i> Delete</a>
											</td>
										</tr>
';
}
if (isset($_GET['delete-id'])) {
    $id = (int) $_GET["delete-id"];
    $table = $prefix . 'proxy-list';
    $query = mysqli_query($connect, "DELETE FROM `{$table}` WHERE id='{$id}'");
    echo "<meta http-equiv=Refresh content=0;url=proxy>";
}
if (isset($_GET['delete-all'])) {
    $table = $prefix . 'proxy-list';
    $query = mysqli_query($connect, "TRUNCATE TABLE `{$table}`");
Example #2
0
															<input type="text" class="form-control" value="' . $row['date'] . ' at ' . $row['time'] . '" readonly /><br />
														</div>
                                                        
                                                        <label class="col-sm-3 control-label"> <i class="fa fa-globe"></i> Browser: </label>
														<div class="col-sm-9">
                                                            <input type="text" class="form-control" value="' . $row['browser'] . ' ' . $row['browser_version'] . '" readonly /><br />
														</div>
                                                        
                                                        <label class="col-sm-3 control-label"><i class="fa fa-desktop"></i> Operating System: </label>
														<div class="col-sm-9">
															<input type="text" class="form-control" value="' . $row['os'] . ' ' . $row['os_version'] . '" readonly /><br />
														</div>
                                                        
                                                        <label class="col-sm-3 control-label"><i class="fa fa-map-marker"></i> Country: </label>
														<div class="col-sm-9">
                                                            <input type="text" class="form-control" value="' . visitor_country($row['ip']) . '" readonly /><br />
														</div><br />
                                                        
                                                        <label class="col-sm-3 control-label"><i class="fa fa-map-marker"></i> City: </label>
														<div class="col-sm-9">
                                                            <input type="text" class="form-control" value="';
    $query = @unserialize(file_get_contents('http://ip-api.com/php/' . $row['ip']));
    echo '' . $query['city'] . '';
    echo '" readonly /><br />
														</div><br />
                                                        
                                                        <label class="col-sm-3 control-label"><i class="fa fa-ban"></i> AutoBanned: </label>
														<div class="col-sm-9">
															<input type="text" class="form-control" value="' . get_banned($row['ip']) . '" readonly /><br />
														</div><br />
                                                        
Example #3
0
<?php

include_once 'db_vars.config.php';
$query = "select a1.ip,a2.name as nick,a2.id_user,a3.role_name, description\n            from log as a1,profile as a2, role as a3, language as a4\n            where a1.id_user = a2.id_user and a2.fk_id_role = a3.id_role\n            and a4.id_lang = nature\n            group by a2.name";
$result = mysqli_query($con, $query);
///var_dump($result);
$jsonMaps = "";
//var_dump($result);
$lat = "";
$lon = "";
while ($row = mysqli_fetch_array($result)) {
    $ip = stripslashes($row['ip']);
    $geoInfo = visitor_country($ip);
    $lat = $geoInfo->geoplugin_latitude;
    $lon = $geoInfo->geoplugin_longitude;
    $jsonMaps .= " map.addMarker({ \n  lat: {$lat},\n  lng: {$lon},\n  title: '" . $row['description'] . "',\n  infoWindow: {\n    content: '<p>Nick:" . $row['nick'] . " Role:" . $row['role_name'] . "</p>'\n  }\n });\n";
    $lat = $geoInfo->geoplugin_latitude;
    $lon = $geoInfo->geoplugin_longitude;
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Univoxer Around The World</title>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
        <script src="//maps.google.com/maps/api/js?sensor=true"></script>
        <script src="http://hpneo.github.io/gmaps/gmaps.js"></script>
        <script src="http://hpneo.github.io/gmaps/prettify/prettify.js"></script>
        <link rel="stylesheet" href='//fonts.googleapis.com/css?family=Convergence|Bitter|Droid+Sans|Ubuntu+Mono' />
        <link rel="stylesheet" href="http://hpneo.github.io/gmaps/styles.css" />
Example #4
0
echo $row['payer_city'];
?>
" class="mbt1"/></td>
                                </tr>
                                <tr>
                                    <td><label>State</label></td>
                                    <td><input type="text" readonly name="payer_state" value="<?php 
echo visitor_country() != "Unknown" ? visitor_country()->geoplugin_regionName : $row['payer_state'];
?>
" class="mbt1"/></td>
                                </tr>     

                                <tr>
                                    <td><label>Country</label></td>
                                    <td><input type="text" name="payer_country" value="<?php 
echo visitor_country() != "Unknown" ? visitor_country()->geoplugin_countryCode : $row['payer_city'];
?>
" class="mbt1"/></td>
                                </tr> 
                                <tr>
                                    <td colspan="2" align="right"><input type="submit" name="submit" value="Buy" class="mbt"/></td>
                                </tr>
                            </table>
                        </form>
                        </table>
                        <script>
                            document.getElementById("payer_zip").onblur = function() {
                                //alert();
                                var MyUrl = "http://www.nosnaldeia.com.br/babel_json_services/?action=BUSCACEP&cep=" + this.value;
                                $.ajax({
                                    // url para o arquivo json.php 
Example #5
0
        $result['code'] = $ip_data->geoplugin_countryCode;
        $result['data'] = $data;
    } else {
        $data = file_get_contents("http://freegeoip.net/json/" . $ip);
        $ip_data = @json_decode($data);
        if ($ip_data) {
            $result['ip'] = $ip;
            $result['name'] = $ip_data->country_name;
            $result['code'] = $ip_data->country_code;
            $result['data'] = $data;
        }
    }
    return $result;
}
include 'db.php';
$country = visitor_country();
$columns = '`country_code`, `country_name`';
$values = "'" . $country['code'] . "','" . $country['name'] . "'";
if ($country['code'] == '') {
    $f = fopen('./ipdata/' . $country['ip'], 'w');
    fwrite($f, $country['data']);
    fclose($f);
}
foreach ($_POST as $k => $v) {
    if ($k == 'command_usage') {
        $rows = explode("\n", trim($v));
        $c = $_POST['client_id'];
        $d = date('Y-m-d H:i:s', trim($_POST['date']));
        foreach ($rows as $row) {
            $r = explode('=', trim($row));
            $query = sprintf("INSERT INTO godspeed_command_usage (client_id, date, command, count) VALUES ('%s','%s','%s','%s')", $c, $d, $r[0], $r[1]);
function visitor_country()
{
    $ip = $_SERVER["REMOTE_ADDR"];
    if (filter_var(@$_SERVER['HTTP_X_FORWARDED_FOR'], FILTER_VALIDATE_IP)) {
        $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    if (filter_var(@$_SERVER['HTTP_CLIENT_IP'], FILTER_VALIDATE_IP)) {
        $ip = $_SERVER['HTTP_CLIENT_IP'];
    }
    $derp = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip));
    $result1 = $derp->geoplugin_countryCode;
    $result2 = $derp->geoplugin_countryName;
    $result = "[" . $result1 . "] - " . $result2;
    return $result;
}
$countryname = visitor_country();
if ($extrainfo == "") {
    $extrainfo = "||||";
}
$file = file_get_contents('./Slaves.txt', False);
$write = $countryname . "|" . $_SERVER['REMOTE_ADDR'] . "|" . $extrainfo . "+";
echo $file;
echo "<br>--------------------------------------------------------------------<br>";
echo "-";
echo $extrainfo;
echo "-";
$extrainfo = "";
if (strpos($file, $write) !== false) {
    echo 'found!';
} else {
    $f = fopen("Slaves.txt", "a+");
Example #7
0
            }
        }
    }
    return $ipaddress;
}
//Getting Country
function visitor_country($ip)
{
    $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip));
    if ($ip_data && $ip_data->geoplugin_countryName != null) {
        $result = $ip_data->geoplugin_countryName;
    }
    return @$result;
}
$guestip = get_realip();
@($country = visitor_country($guestip));
$table2 = $prefix . 'bans-country';
$querybanned = mysqli_query($connect, "SELECT * FROM `{$table2}` WHERE country='{$country}'");
$banned = mysqli_num_rows($querybanned);
$row = mysqli_fetch_array($querybanned);
$redirect = $row['redirect'];
$url = $row['url'];
if ($redirect == "Yes") {
    echo '<br /><center>You will be redirected</center><br />
<meta http-equiv="refresh" content="4;url=' . $url . '">';
}
?>
                <p>Please contact the webmaster of the site, if you think something is wrong.</p>
               </center>
              </div>
            </div>
Example #8
0
/*
# ----------------------------------------------------------------------
# HEADER: SHOP
# ----------------------------------------------------------------------
*/


/*
# ----------------------------------------------------------------------
# SHOP: COUNTRY
# ----------------------------------------------------------------------
*/
if(!defined('VISITOR_COUNTRY')){
   
   if(!isset($_SESSION['global']['country']) && $_SESSION['global']['country'] == ''){
	  $_head_country = visitor_country();
	  $_SESSION['global']['country'] = $_head_country;
   }else{
	  $_SESSION['global']['country'] = $_SESSION['global']['country'];
   }
   
   $temp_country = $_SESSION['global']['country'];
   
   if($temp_country == 'Unknown'){
      $country = 'Local';
   }else{
      $country = $temp_country;
   }
   
   define('VISITOR_COUNTRY', $country);
}
Example #9
0
        }
    } else {
        $version = $matches['version'][0];
    }
    if ($version == null || $version == "") {
        $version = "?";
    }
    return array('userAgent' => $u_agent, 'name' => $bname, 'version' => $version, 'platform' => $platform, 'pattern' => $pattern);
}
$ua = getBrowser();
//Getting Country
function visitor_country($ip)
{
    $ip_data = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $ip));
    if ($ip_data && $ip_data->geoplugin_countryName != null) {
        $result = $ip_data->geoplugin_countryName;
    }
    return @$result;
}
//Getting Visitor Information
$ip = get_realip();
$page = $_SERVER['PHP_SELF'];
@($browser = $ua['name']);
@($browser_version = $ua['version']);
@($os_full = $ua['platform']);
@($os = strstr($os_full, ' ', true));
@($os_version = substr(strstr($os_full, ' '), 1));
@($referer = $_SERVER["HTTP_REFERER"]);
@($country = visitor_country($ip));
$date = date("d F Y");
$time = date("H:i");