example

  1. <?php
  2. /**
  3.  * File containing example 2(Look for proxy using) use DefensiveAttack.
  4.  *
  5.  * @package     DefensiveAttack
  6.  * @version     1.0.0
  7.  * @copyright     Copyright (C)2006 TheLordOfWeb. All rights reserved.
  8.  * @license     http://www.gnu.org/copyleft/gpl.html GNU Public License
  9.  * @filesource
  10.  */
  11.  
  12. //Load class
  13. //require("class.php4.DefensiveAttack.php");
  14.  
  15. require("class.php5.DefensiveAttack.php");
  16.  
  17. //Create object
  18. $def_attack     =   new DefensiveAttack();
  19.  
  20. //Get outside IP address
  21. $ip =   $def_attack->GetIpAddress();
  22.  
  23. //Looking for proxy
  24. if ($def_attack->IsUseProxy()) {
  25.     print nl2br("You are using proxy\n");
  26.     
  27.     if (!empty($ip)) {
  28.         print ("Your IP address is : " $ip);
  29.     }
  30.  
  31. else {
  32.     
  33.     if (!empty($ip)) {
  34.         print ("May be your are not use proxy and your IP address is : " $ip);
  35.     }
  36.     
  37. }
  38.  
  39.  
  40.  
  41.  
  42. ?>

Documentation generated on Tue, 31 Oct 2006 23:59:55 +0200 by phpDocumentor 1.3.1