Example #1
0
    // Open the connection:
    $fp = fopen($url, 'r');

    // Get the data:
    $read = fgetcsv($fp);

    // Close the "file":
    fclose($fp);

    // Print whatever about the IP:
    echo "<p>IP Address: $ip<br>
    Country: $read[2]<br>
    City, State: $read[5], $read[3]<br>
    Latitude: $read[7]<br>
    Longitude: $read[8]</p>";

} // End of show_ip_info() function.

// Get the client's IP address:
echo '<h2>Our spies tell us the following information about you</h2>';
show_ip_info($_SERVER['REMOTE_ADDR']);

// Print something about a site:
$url = 'www.entropy.ch';
echo "<h2>Our spies tell us the following information about the URL $url</h2>";
show_ip_info(gethostbyname($url));

?>
</body>
</html>
Example #2
0
     show_conditions();
     break;
 case 'change_choices':
     change_choices();
     break;
 case 'add_condition_fields':
     add_condition_fields();
     break;
 case 'add_condition':
     add_condition();
     break;
 case 'select_data_from_db':
     select_data_from_db();
     break;
 case 'show_ip_info':
     show_ip_info();
     break;
 case 'view_submissions':
     view_submissions();
     break;
 case 'featured_plugins':
     featured_plugins();
     break;
 case 'extensions':
     extensions();
     break;
 case 'remove_query':
     remove_query();
     break;
 case 'save_query':
     save_query();