Location: PHPKode > projects > Filebased Guestbook > filebased-guestbook/gbook.php
<?php

  // -----------------------------------------------------------------------------------------------
  // File:      gbook.php
  // -----------------------------------------------------------------------------------------------
  // Project:   Filebased guestbook.
  // Author:    Copyright (c) Urs <hide@address.com>
  // Version:   1.1.3
  // Update:    10-03-2001
  // Licence:   GPL
  // PHP:       php-4.0.5-dev-win32
  //
  // -----------------------------------------------------------------------------------------------
  // Latest:
  //    V 1.1.3: [10-03-2001]
  //         - moved all languages to 'language' folder
  //         - moved config.inc.php and shared.inc.php to 'include' folder
  //         - modiefied config.inc.php and added a hash array for more easier understanding
  //         - removed passwd.txt and added a login/passwd array in config.inc.php
  //         - added 5 new languages: si, pt, br, sr and is. thanks to the translators!
  // -----------------------------------------------------------------------------------------------

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

  // -----------------------------------------------------------------------------------------------
  // main
  // -----------------------------------------------------------------------------------------------

  if(empty($HTTP_GET_VARS[lang])) {
      $HTTP_GET_VARS[lang] = $conf[langdefault];
  }
  include_once ("language/lang.".$HTTP_GET_VARS[lang].".php" );

  switch($cmd) {
    case 'form':
      form();
      break;
    case 'admin':
      if(!authenticate()) {
          LoginForm();
      } else {
          del();
      };
      break;
    default:
      show();
      break;
  };

?>
Return current item: Filebased Guestbook