<?

/////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                             //
//  W@Pguestbook                                                                               //
//  Current Version : 1.0                                                                      //
//  Author : GUMSLONE                                                                          //
//  You you can redistribute it and/or modify this script but please always put author's name  //
//                                                                                             //
/////////////////////////////////////////////////////////////////////////////////////////////////
include("config.php");
include"header.php";
print "password: <br/>
<input title=\"pwd\" name=\"pwd\" maxlength=\"15\"/><br/>
<anchor title=\"Ok\">OK<br/>
<go href=\"admin.php?gumsl=check\" method=\"post\">
<postfield name=\"pwd\" value=\"$(pwd)\"/>
</go>
</anchor></p>";
if ($gumsl=="check"){
     if($pwd=="$pass"){
     print"<p>
     <a href=\"admin.php?gumsl=2\">Delete all messages in guestbook</a>:


     </p> ";
     }else{ print"<p>Wrong password!!!!</p> ";   }
}

if($gumsl=="2"){
print"<p><br/><a href=\"admin.php?gumsl=3\">Delete all messages!</a><br/></p>";
}

if($gumsl=="3"){
$fp = fopen("gb.txt","w+");
echo "<p>Guestbook Cleared!</p>";
}

print '
<p><br/><small>
(c) gumslone</small></p>


</card>
</wml>
';

?>