cvs: docweb /www login.php

[email protected] ("Nuno Lopes")
Newsgroups php.doc.web
Message-ID <cvsnlopess1155234088@cvsserver>
nlopess		Thu Aug 10 18:21:28 2006 UTC

  Added files:                 
    /docweb/www	login.php 
  Log:
  readd missing file
  

http://cvs.php.net/viewvc.cgi/docweb/www/login.php?view=markup&rev=1.1
Index: docweb/www/login.php
+++ docweb/www/login.php
<?php
/* $Id: login.php,v 1.1 2006/08/10 18:21:28 nlopess Exp $ */

include '../include/init.inc.php';

if (isset($_COOKIE['MAGIC_COOKIE']) || !empty($_POST)) {
	require_once '../include/lib_auth.inc.php';
	auth();
        
        if (isset($_REQUEST['return']) && !empty($_REQUEST['return'])) {
            header('Location: http://'.$_SERVER['HTTP_HOST'].$_REQUEST['return']);
        }
	echo 'You are logged in';
	echo is_admin() ? ' <strong>with admin rights</strong>.' : '.';
} else {
	echo site_header('docweb.common.header.login');
	echo DocWeb_Template::get('login.tpl.php');
	echo site_footer();
}
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.