Location: PHPKode > projects > Spam free PHP GuestBook > guestbook/index.php
<?php
/*
Copyright (c) 2011 http://ramui.com. All right reserved.
This product is protected by copyright and distributed under licenses restricting copying, distribution. Permission is granted to the public to download and use this script provided that this Notice and any statement of authorship are reproduced in every page on all copies of the script.
*/
session_start();
$_SESSION['fw_user']=md5($_SERVER['REMOTE_ADDRESS']);
header('Content-Type: text/html; charset=ISO-8859-1');
include "gb/include/connection.php";
include "gb/include/functions.php";
include "gb/include/clsdatabase.php";
include "gb/include/bbcode.php";

//Create new database connection.
$fw_db=new database('gb/');

//Get page informations.
$fw_page_array=$fw_db->get_page_array();

//Get site informations.
$fw_site_array=$fw_db->siteinf();

//Include template file.
include 'gb/templates/'.$fw_site_array['defaultstyle'].'/index.php';
?>
Return current item: Spam free PHP GuestBook