<?php
include '../class/class_collection.php';
include '../class/gestor_articulos.php';
$auth = false; // Assume user is not authenticated
$reg =& new Collection('userslist');
session_start();
if (!isset($_SESSION["USER"])){
session_unset();
$auth = $reg->user_exists($PHP_AUTH_USER, $PHP_AUTH_PW);
if ( ! $auth ) {
header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'Location:p_login.php?msj=1' );
exit;
} else {
$_SESSION["USER"] = $PHP_AUTH_USER;
$_SESSION["PW"] = $PHP_AUTH_PW;
}
}
?>
<html>
<head>
<title>Pergamus publication manager </title>
<link href="../style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="main">
<h1> Control Panel </h1>
<?php include 'p_session_bar.php'; ?>
<?php include 'p_options.php'; ?>
<?php include 'p_banner.php'?>
<p> </p>
</div>
</body>
</html>
|