egroupware/anon_wrapper.php

41 lines
1.6 KiB
PHP
Raw Permalink Normal View History

<?php
/**************************************************************************\
2004-01-27 00:26:19 +01:00
* eGroupWare *
* http://www.egroupware.org *
* Written by Dan Kuykendall <seek3r@phpgroupware.org> *
* -------------------------------------------- *
* This program is free software; you can redistribute it and/or modify it *
* under the terms of the GNU General Public License as published by the *
* Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. *
\**************************************************************************/
/* $Id$ */
// TODO:
2001-12-24 06:04:23 +01:00
// Limit which users can access this program (ACL check)
// Global disabler
// Detect bad logins and passwords, spit out generic message
// If your are going to use multiable accounts, remove the following lines
$login = 'anonymous';
$passwd = 'anonymous';
$GLOBALS['egw_info']['flags'] = array(
2001-12-24 06:04:23 +01:00
'disable_Template_class' => True,
'login' => True,
'currentapp' => 'login',
2001-12-24 06:04:23 +01:00
'noheader' => True
);
include('./header.inc.php');
2002-09-16 02:00:04 +02:00
// If your are going to use multiable accounts, remove the following lines
// You must create the useraccount and check its permissions before use
$login = 'anonymous';
$passwd = 'anonymous';
$sessionid = $GLOBALS['egw']->session->create($login,$passwd,'text');
$GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php'));
2001-12-24 06:04:23 +01:00
?>