Location: PHPKode > projects > HIOX GuestBook > ipblock.php
include "authheader.php";

if($block == false){

include 'col.php';
include 'header.php';

echo "<br><br><br>";

$iswrite = $_POST['what'];
if($iswrite == "write")
    echo "<div align=center style='color: green;'><b>IP Address have been updated</div>"; 
    $str = $_POST['block'];
    $file = fopen('ban.php',w);
    $ara = explode("\n",$str);
    fwrite($file, "<?php \n\n");
    for($aa=0; $aa<count($ara); $aa++)
        $xxa = $ara[$aa];
        $xxa = trim($xxa);
        if($xxa != "")
        fwrite($file, "$"."abc[$aa] = \"$xxa\";");

    fwrite($file, $ara[$aa]);
    fwrite($file, "\n?>");

include 'ban.php';

<table width=40% height=20% bgcolor=cfcffo align=center style="border:2px red groove;
        font-family: arial, verdana, san-serif; font-size: 14px;">
<form name=blo method=post action="<?php echo "$PHP_SELF"; ?>">
<tr><td></td><td>Add IP Address here..
 <textarea name=block rows=15 cols=50>
  for($zz=0; $zz<count($abc); $zz++)
    $addre = $abc[$zz];
    echo "$addre \n";

<tr><td colspan=2 align=right>
<input type=hidden value=write name=what>
<input type='submit' value="create"> </td></tr>
<td colspan=2>Note: The System containing the IP Address will be blocked </td>

<!-- (c) copyright 2004, HIOX INDIA 		    -->
<!-- This  is  a free tool provided by hscripts.com -->
<!-- Please get in touch with us for using          -->
<!-- this product in a commercial site.             -->
Return current item: HIOX GuestBook