Login   Register  
PHP Classes
elePHPant
Icontem

File: example_2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Todor Iliev  >  Defensive Attack  >  example_2.php  >  Download  
File: example_2.php
Role: Example script
Content type: text/plain
Description: Look for proxy using.
Class: Defensive Attack
Retrieve information of current user HTTP request
Author: By
Last change:
Date: 2006-11-01 08:20
Size: 871 bytes
 

Contents

Class file image Download
<?php
/**
 * File containing example 2(Look for proxy using) use DefensiveAttack.
 *
 * @package     DefensiveAttack
 * @version     1.0.0
 * @copyright     Copyright (C)2006 TheLordOfWeb. All rights reserved.
 * @license     http://www.gnu.org/copyleft/gpl.html GNU Public License
 * @filesource
 */

//Load class
//require("class.php4.DefensiveAttack.php");
require("class.php5.DefensiveAttack.php");

//Create object
$def_attack     =   new DefensiveAttack();

//Get outside IP address
$ip =   $def_attack->GetIpAddress();

//Looking for proxy
if ($def_attack->IsUseProxy()) {
    print 
nl2br("You are using proxy\n");
    
    if (!empty(
$ip)) {
        print (
"Your IP address is : " $ip);
    }

} else {
    
    if (!empty(
$ip)) {
        print (
"May be your are not use proxy and your IP address is : " $ip);
    }
    
}




?>