[Phpcms-plugins-cvs] admin4phpCMS/modules/user class.module_user.php,1.6,1.7
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2004-08-05 16:38:56
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4032/modules/user Modified Files: class.module_user.php Log Message: tweaked phpcms::cache-module output Index: class.module_user.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/user/class.module_user.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- class.module_user.php 24 Jul 2004 08:58:25 -0000 1.6 +++ class.module_user.php 5 Aug 2004 16:38:43 -0000 1.7 @@ -30,6 +30,9 @@ /* * $Log$ +* Revision 1.7 2004/08/05 16:38:43 mjahn +* tweaked phpcms::cache-module output +* * Revision 1.6 2004/07/24 08:58:25 mjahn * changed some things * @@ -91,7 +94,7 @@ $liveuserConfig = array( 'session' => array('name' => 'PHPSESSID','varname' => 'loginInfo'), 'login' => array('username' => 'handle', 'password' => 'passwd'), - 'cookie' => array('name' => 'loginInfo', 'path' => '/', 'domain' => 'localhost', 'lifetime' => 60), + 'cookie' => array('name' => 'loginInfo', 'path' => '/', 'domain' => $_SERVER ['HTTP_HOST'], 'lifetime' => 60), 'autoInit' => true, 'authContainers' => array(0 => array('type' => 'XML', 'file' => dirname(__FILE__).'/Auth_XML.xml', @@ -240,6 +243,13 @@ $actiondata = array ('_id'=>'loginform', '_root'=>$root, '_type'=>'form', 'method'=>'post', 'action'=>'index.php'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); + if (isset ($_SERVER ['QUERY_TERM']) && is_array ($_SERVER ['QUERY_TERM'])) { + foreach ($_SERVER ['QUERY_TERM'] as $id=>$value) { + $actiondata = array ('_id'=>'query-'.$id, '_type'=>'form_input_hidden', 'value'=>$value, 'name'=>$id, '_root'=>'loginform'); + $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); + } + } + $actiondata = array ('_id'=>'method', '_type'=>'form_input_hidden', 'value'=>'post', 'name'=>'method','_root'=>'loginform'); $this->_callEvent('LAYOUT_ADD_ELEMENT', $actiondata); |