Login   Register  
PHP Classes
elePHPant
Icontem

File: pages/p_panel.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Javier AP  >  Pergamus Publication Manager  >  pages/p_panel.php  >  Download  
File: pages/p_panel.php
Role: Auxiliary script
Content type: text/plain
Description: User interface Control Panel
Class: Pergamus Publication Manager
Web based manager for scientific publications
Author: By
Last change: Directory path added to filename
Date: 2005-01-14 01:26
Size: 898 bytes
 

Contents

Class file image Download
<?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>&nbsp; </p>
</div>    
</body>
</html>