mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Added login program that is just for anonymous sessions.
This commit is contained in:
parent
65005c07fb
commit
05109bbdba
33
anon_wrapper.php
Normal file
33
anon_wrapper.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* phpGroupWare *
|
||||
* http://www.phpgroupware.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:
|
||||
// Limit which users can access this program (ACL check)
|
||||
// Global disabler
|
||||
// Detect bad logins and passwords, spit out generic message
|
||||
|
||||
// If you plan on using this program, remove the following line.
|
||||
echo "\n"; exit;
|
||||
|
||||
$phpgw_info['flags'] = array(
|
||||
'disable_template_class' => True,
|
||||
'login' => True,
|
||||
'currentapp' => 'login',
|
||||
'noheader' => True);
|
||||
|
||||
include('./header.inc.php');
|
||||
|
||||
$sessionid = $phpgw->session->create($login,$passwd);
|
||||
$phpgw->redirect($phpgw->link($phpgw_info['server']['webserver_url'] . '/index.php'));
|
||||
?>
|
Loading…
Reference in New Issue
Block a user