Location: PHPKode > projects > Spam free PHP GuestBook > Spam free PHP GuestBook-1.2beta/gb/admin/index.php
<?php
/*
Copyright (c) 2008 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();
header('Content-Type: text/html; charset=ISO-8859-1');
header("Cache-Control: no-cache, must-revalidate");
$f=@file_get_contents("../database/config.php");
if(empty($f)){@header("Location: install/index.php");}
include "../include/functions.php";
include "include/clsmain.php";

if(!empty($_GET['qur'])){
    $qur= explode("M", $_GET['qur']);
    switch ($qur[0]) {
        case "2":
            include "include/clspost.php";
            $obj=new post();
        break;
        case "3":
            include "include/clsuser.php";
            $obj=new user();
        break;
        case "6":
            include "include/clsadmin.php";
            $obj=new admin();
        break;
        case "9":
            include "include/clscomments.php";
            $obj=new comments();
        break;
        default :
            $obj=new clsmain();
    }}
else{$obj=new clsmain();}
$obj->get_query($qur);
?>
Return current item: Spam free PHP GuestBook