From 05109bbdba295f690285390de5ac3186fa59e7ef Mon Sep 17 00:00:00 2001 From: jengo Date: Sat, 17 Feb 2001 10:37:32 +0000 Subject: [PATCH] Added login program that is just for anonymous sessions. --- anon_wrapper.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 anon_wrapper.php diff --git a/anon_wrapper.php b/anon_wrapper.php new file mode 100644 index 0000000000..1d31a808b3 --- /dev/null +++ b/anon_wrapper.php @@ -0,0 +1,33 @@ + * + * -------------------------------------------- * + * 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')); +?> \ No newline at end of file