Location: PHPKode > projects > Filebased Guestbook > filebased-guestbook/index.php
<?php
  // -----------------------------------------------------------------------------------------------
  // Project:   Filebased guestbook.
  // File:      index.php
  // Topic:     start file
  // Author:    hide@address.com
  // -----------------------------------------------------------------------------------------------

  include_once ("include/config.inc.php");
  include_once ("include/shared.inc.php");

  srand(time());
  $stamp = md5(microtime(rand()));
  $stamp = "r=" . substr ($stamp, 0, 5) . "_gbook";

?>

<HTML>
<HEAD>
<TITLE>Administrator</TITLE>
</HEAD>

<BODY style="font-family:arial; font-size:12pt">
<center>
  <h2>Administrator</h2>

  <a href="gbook.php?cmd=form">add entry</a><br>
  <a href="gbook.php">show entires</a><br>
  <a href="<?php echo "gbook.php?cmd=admin&$stamp"; ?>">modify entries</a>

</center>
</BODY>
</HTML>
Return current item: Filebased Guestbook