Source for file example_4.php
Documentation is available at example_4.php
* File containing example 4(Ban cookie trick) use DefensiveAttack.
* @package DefensiveAttack
* @copyright Copyright (C)2006 TheLordOfWeb. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
//require("class.php4.DefensiveAttack.php");
require
("class.php5.DefensiveAttack.php");
$safe_option =
(isset
($_GET['op'])) ?
intval($_GET['op']) :
0;
if ($def_attack->IsSetSmartCookieBan()) {
print
"You are banned. <a href='example_4.php?op=2' >Delete ban</a>";
print
"You are not banned. <a href='example_4.php' >Go for ban</a>";
$def_attack->DelSmartCookieBan();
print
"You are unbanned. <a href='example_4.php' >Go for ban</a>";
$def_attack->SetSmartCookieBan();
print
"You will be banned. <a href='example_4.php?op=1' >Check ban</a>";
Documentation generated on Tue, 31 Oct 2006 23:59:59 +0200 by phpDocumentor 1.3.1