Просмотр файла guestbook/files/style/index.php

Размер файла: 2.29Kb
<?php
#-----------------------------------------------------#
#          ********* WAP-MOTORS *********             #
#             Made by   :  VANTUZ                     #
#               E-mail  :  [email protected]         #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#	
if (!defined('VANTUZBOOK')) { header("Location:../index.php"); exit; }

if (!file_exists('data/guestbook.db') && file_exists('install.php') && !stristr($_SERVER['PHP_SELF'], '/install.php')){header ('Location: install.php?'.SID); exit;}

if (version_compare(PHP_VERSION, '5.0.0') < 0) {die('Ошибка! Ваша версия PHP ниже чем 5.0.0!');}
if (!function_exists('sqlite_open')){die('Ошибка! У вас не установлена библиотека SQLite!');}
if (!file_exists('data/guestbook.db')){die('Ошибка! Отсутствует файл базы данных!');}
$db = @sqlite_open('data/guestbook.db') or die('Ошибка! Невозможно подключения к базе данных!'); 
$setting = sqlite_query($db, "SELECT * FROM guestadmin;");
$config = sqlite_current($setting);

if ($config['nocache']==0){
Header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); 
Header('Cache-Control: no-cache, must-revalidate'); 
Header('Pragma: no-cache'); 
Header('Last-Modified: '.gmdate("D, d M Y H:i:s").'GMT');
}

header("Content-type:text/html; charset=utf-8");
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>';
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8">';
echo '<title>'.$config['title'].'</title>';
echo '<link rel="stylesheet" href="files/style/style.css" type="text/css">
<meta name="keywords" content="'.$config['keywords'].'">
<meta name="description" content="'.$config['description'].'">
</head><body><!--Themes by wap.imgstudio.ru-->';
echo '<div class="cs" id="up" align="center"><img src="'.$config['logotip'].'" alt=""></div>';

echo '<div>';

?>