Просмотр файла GuestBook_by_storm/gb/ini.php

Размер файла: 1.63Kb
<?php
//////////////////////////
//  Автор: -=Storm=-    //
//  Сайт: xwap.nov.ru   //
//  icq: 4073300        //
//////////////////////////

$pnumber = 5; // Сообщений на страницу
$pass_a = "11111"; // Пароль анмина

// Соединение с базой
$dbname = "2"; // Имя базы
$dbuser = "2"; // Имя пользователя
$dbpass = "2"; // Пароль

$db = mysql_connect("localhost", "$dbuser", "$dbpass")
or die("Нет соединения с базой mysql<br/>" . mysql_error());
mysql_select_db("$dbname") or die("Ошибка подключения к базе");
mysql_unbuffered_query("SET `character_set_client` = 'utf8';");
mysql_unbuffered_query("SET `character_set_results` = 'utf8';");
mysql_unbuffered_query("SET `collation_connection` = 'utf8_general_ci';");

// Шапка html страницы
header("Content-type: application/vnd.wap.xhtml+xml; charset=utf-8");
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<style type="text/css">
body {font-family: Verdana; font-size: 15px; color: #000000; background-color: #ffffff;}
div {border: solid 1px #000000; text-align: center; background-color: #cccccc;}
.post {border: solid 1px #000000; text-align: left; padding: 2px; margin: 3px; background-color: #ffffff;}
a:link , a:visited{text-decoration: none; color : #555555;}
a:hover {text-decoration: none; color : #fd0000;}
</style>
<title>Гостевая</title></head><body>';
?>