Commit c931adceffaa61403b1ded0afb6d4b4ff829ddee

Authored by nbm
1 parent ed3c1311

Remove system settings until we get configuration from database again.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4359 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsBL.php deleted
1   -<?php
2   -/**
3   - * $Id$
4   - *
5   - * Edit system settings.
6   - *
7   - * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
8   - *
9   - * This program is free software; you can redistribute it and/or modify
10   - * it under the terms of the GNU General Public License as published by
11   - * the Free Software Foundation; either version 2 of the License, or
12   - * (at your option) any later version.
13   - *
14   - * This program is distributed in the hope that it will be useful,
15   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17   - * GNU General Public License for more details.
18   - *
19   - * You should have received a copy of the GNU General Public License
20   - * along with this program; if not, write to the Free Software
21   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22   - *
23   - * @version $Revision$
24   - * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa
25   - * @package administration.systemsettings
26   - */
27   -require_once("../../../../../config/dmsDefaults.php");
28   -
29   -KTUtil::extractGPC('fForStore');
30   -
31   -if (checkSession()) {
32   - require_once("$default->fileSystemRoot/lib/System.inc");
33   - require_once("$default->fileSystemRoot/lib/visualpatterns/PatternCustom.inc");
34   - require_once("$default->fileSystemRoot/presentation/Html.inc");
35   - require_once("systemSettingsUI.inc");
36   -
37   - require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
38   - $oPatternCustom = & new PatternCustom();
39   -
40   - if(isset($fForStore)) {
41   - $oSystem = $default->system;
42   - for($i = 0; $i < count($oSystem->aSettings); $i++) {
43   - $oSystem->set($oSystem->aSettings[$i], $_POST[$oSystem->aSettings[$i]]);
44   - }
45   - controllerRedirect("systemAdministration");
46   - } else {
47   - $oPatternCustom->setHtml(getPage());
48   - $main->setFormAction($_SERVER["PHP_SELF"]. "?fForStore=1");
49   - }
50   - $main->setCentralPayload($oPatternCustom);
51   - $main->render();
52   -}
53   -?>
presentation/lookAndFeel/knowledgeTree/administration/systemsettings/systemSettingsUI.inc deleted
1   -<?php
2   -/**
3   - * $Id$
4   - *
5   - * Edit system settings UI functions.
6   - *
7   - * Copyright (c) 2003 Jam Warehouse http://www.jamwarehouse.com
8   - *
9   - * This program is free software; you can redistribute it and/or modify
10   - * it under the terms of the GNU General Public License as published by
11   - * the Free Software Foundation; either version 2 of the License, or
12   - * (at your option) any later version.
13   - *
14   - * This program is distributed in the hope that it will be useful,
15   - * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17   - * GNU General Public License for more details.
18   - *
19   - * You should have received a copy of the GNU General Public License
20   - * along with this program; if not, write to the Free Software
21   - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22   - *
23   - * @version $Revision$
24   - * @author Mukhtar Dharsey, Jam Warehouse (Pty) Ltd, South Africa
25   - * @package administration.systemsettings
26   - */
27   -// gets the delete stuff
28   -function getPage() {
29   - global $default;
30   - $oSystem = $default->system;
31   -
32   - $sToRender .= renderHeading(_("System Settings"));
33   - $sToRender .= "<table>\n";
34   - $sToRender .= "<tr>\n";
35   - $sToRender .= "<tr>\n";
36   - $sToRender .= "</tr>\n";
37   - for($i = 0; $i < count($oSystem->aSettings); $i++) {
38   - if ($oSystem->initialised()) {
39   - $sValue = $oSystem->get($oSystem->aSettings[$i]);
40   - } else {
41   - $tmp = $oSystem->aSettings[$i];
42   - $sValue = $default->$tmp;
43   - }
44   - if (is_array($sValue)) {
45   - $sValue = implode(";", $sValue);
46   - }
47   - $sToRender .= "<tr><td>". ($i+1) .".</td><td>" . $oSystem->aLabels[$i] ." </td><td><input size=\"40\" type=\"text\" name=\"" . $oSystem->aSettings[$i] . "\" value =\"$sValue\"></td></tr>\n";
48   - }
49   -
50   - // do some validation
51   - $sToRender .= "\n\n<script language=\"javascript\">\n<!--\n";
52   - $sToRender .= "function validateForm(theForm) {\n";
53   - for ($i = 0; $i < count($oSystem->aSettings); $i++) {
54   - $sToRender .= "\tif (!(validRequired(document.MainForm." . $oSystem->aSettings[$i] . ", '" . $oSystem->aLabels[$i] . "'))) {\n";
55   - $sToRender .= "\t\treturn false;\n\t}\n";
56   - }
57   - $sToRender .= "return true;\n}\n";
58   - $sToRender .= "//-->\n</script>\n\n";
59   -
60   - $sToRender .= "</tr>\n";
61   - $sToRender .= "<tr>\n";
62   - $sToRender .= "<td></td><td></td><td align = right><input type=\"image\" src =\"" . KTHtml::getUpdateButton() . "\" value=\"Submit\" border=\"0\"/></td>\n";
63   - $sToRender .= "</tr>\n";
64   - $sToRender .= "</table>\n";
65   -
66   - return $sToRender;
67   -}
68   -?>