Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Alexander Over  >  Tor  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of use
Class: Tor
Check if an IP is TOR network exit address
Author: By
Last change:
Date: 2011-11-06 04:53
Size: 238 bytes
 

Contents

Class file image Download
<?php
include 'tor.class.php';

$tor Tor::getInstance();

// check current users ip and
// return true or false
var_dump($tor->isTorActive());

// check ip of another user
var_dump($tor->setTarget('1.2.3.4')->isTorActive());