<?php
session_start();
if($_SESSION['username'])
{
include "connect.php";
$db_conn = mysql_connect("$host", "$dbusername", "$dbpassword")
or die("unable to connect to the database");
mysql_select_db("$db", $db_conn) or die("unable to select the database");
Страницата, която е забранена
}
else
{
echo "Забранено за гости. Моля <a href='login.html'>влез</a>";
}
?>