From 27c0ec5e163964d98f3cbd5f792501b3c154c165 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 1 Jan 2010 17:39:38 +0000 Subject: [PATCH] *** empty log message *** --- lam/templates/config/config.js | 43 ------------------------- lam/templates/config/conflogin.php | 10 ++++-- lam/templates/config/confmain.php | 9 ++++-- lam/templates/config/confmodules.php | 8 ++++- lam/templates/config/conftypes.php | 8 ++++- lam/templates/config/mainlogin.php | 8 ++++- lam/templates/config/mainmanage.php | 8 ++++- lam/templates/config/moduleSettings.php | 8 ++++- lam/templates/config/profmanage.php | 8 ++++- 9 files changed, 57 insertions(+), 53 deletions(-) delete mode 100644 lam/templates/config/config.js diff --git a/lam/templates/config/config.js b/lam/templates/config/config.js deleted file mode 100644 index 00f1ffbd..00000000 --- a/lam/templates/config/config.js +++ /dev/null @@ -1,43 +0,0 @@ -/** - -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 Roland Gruber - - 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. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - -/** - * The following functions are used for the LAM configuration wizard. - */ - -/** - * Hides/unhides input fields for the login method. - */ -function configLoginMethodChanged() { - selectLoginMethod = document.getElementsByName('loginMethod')[0]; - if ( selectLoginMethod.options[selectLoginMethod.selectedIndex].value == 'list' ) { - document.getElementById('trAdminList').style.display = ''; - document.getElementById('trLoginSearchSuffix').style.display = 'none'; - document.getElementById('trLoginSearchFilter').style.display = 'none'; - } - else { - document.getElementById('trAdminList').style.display = 'none'; - document.getElementById('trLoginSearchSuffix').style.display = ''; - document.getElementById('trLoginSearchFilter').style.display = ''; - } -} diff --git a/lam/templates/config/conflogin.php b/lam/templates/config/conflogin.php index 811f757f..89c0977f 100644 --- a/lam/templates/config/conflogin.php +++ b/lam/templates/config/conflogin.php @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2003 - 2009 Roland Gruber + Copyright (C) 2003 - 2010 Roland Gruber 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 @@ -66,7 +66,13 @@ echo $_SESSION['header']; \n"; + // include all JavaScript files + $jsDirName = dirname(__FILE__) . '/../lib'; + $jsDir = dir($jsDirName); + while ($jsEntry = $jsDir->read()) { + if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; + echo "\n"; + } // set focus on password field echo "\n"; - echo "\n"; + // include all JavaScript files + $jsDirName = dirname(__FILE__) . '/../lib'; + $jsDir = dir($jsDirName); + while ($jsEntry = $jsDir->read()) { + if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; + echo "\n"; + } ?>

LDAP Account Manager diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php index a9ae23c8..6eb1fc85 100644 --- a/lam/templates/config/mainmanage.php +++ b/lam/templates/config/mainmanage.php @@ -70,7 +70,13 @@ echo $_SESSION['header'];



\n"; +// include all JavaScript files +$jsDirName = dirname(__FILE__) . '/../lib'; +$jsDir = dir($jsDirName); +while ($jsEntry = $jsDir->read()) { + if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; + echo "\n"; +} // check if submit button was pressed if (isset($_POST['submit'])) { diff --git a/lam/templates/config/moduleSettings.php b/lam/templates/config/moduleSettings.php index e0f6f57d..65ecce09 100644 --- a/lam/templates/config/moduleSettings.php +++ b/lam/templates/config/moduleSettings.php @@ -100,7 +100,13 @@ for ($i = 0; $i < sizeof($allTypes); $i++){ echo "\n"; } echo "\n"; -echo "\n"; +// include all JavaScript files +$jsDirName = dirname(__FILE__) . '/../lib'; +$jsDir = dir($jsDirName); +while ($jsEntry = $jsDir->read()) { + if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; + echo "\n"; +} echo ("

". "\"LDAP


\n

 

\n"); diff --git a/lam/templates/config/profmanage.php b/lam/templates/config/profmanage.php index 45b57131..bf2b13aa 100644 --- a/lam/templates/config/profmanage.php +++ b/lam/templates/config/profmanage.php @@ -62,7 +62,13 @@ echo $_SESSION['header'];

\n"; +// include all JavaScript files +$jsDirName = dirname(__FILE__) . '/../lib'; +$jsDir = dir($jsDirName); +while ($jsEntry = $jsDir->read()) { + if (substr($jsEntry, strlen($jsEntry) - 3, 3) != '.js') continue; + echo "\n"; +} $cfg = new LAMCfgMain(); // check if submit button was pressed