From b491024914d0198c3c085c97bc1aae0b71c63e6c Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 9 Sep 2010 18:25:19 +0200 Subject: [PATCH] Setup -> Configuration --- ansel/docs/INSTALL | 8 ++--- .../Kolab_Filter/lib/Horde/Kolab/Test/Filter.php | 2 +- .../test/Horde/Kolab/Storage/Scenario.php | 2 +- horde/admin/{setup => config}/config.php | 12 ++++---- horde/admin/{setup => config}/diff.php | 4 +-- horde/admin/{setup => config}/index.php | 22 +++++++------- horde/admin/{setup => config}/scripts.php | 22 +++++++------- horde/docs/INSTALL | 34 +++++++++++----------- horde/docs/SECURITY | 4 +-- horde/lib/Api.php | 4 +-- .../templates/admin/{setup => config}/config.html | 0 horde/templates/admin/{setup => config}/diff.html | 0 horde/templates/admin/{setup => config}/index.html | 4 +-- imp/docs/INSTALL | 33 +++++++++++---------- koward/lib/Koward/Test.php | 2 +- 15 files changed, 78 insertions(+), 75 deletions(-) rename horde/admin/{setup => config}/config.php (89%) rename horde/admin/{setup => config}/diff.php (93%) rename horde/admin/{setup => config}/index.php (92%) rename horde/admin/{setup => config}/scripts.php (79%) rename horde/templates/admin/{setup => config}/config.html (100%) rename horde/templates/admin/{setup => config}/diff.html (100%) rename horde/templates/admin/{setup => config}/index.html (91%) diff --git a/ansel/docs/INSTALL b/ansel/docs/INSTALL index fd52ca6f7..c16602ec3 100644 --- a/ansel/docs/INSTALL +++ b/ansel/docs/INSTALL @@ -121,10 +121,10 @@ To function properly, Ansel **requires** the following: 6. The _`ImageMagick` software. If using the `ImageMagick software`_ you need to set the path to the - ``convert`` utility in Horde's setup screen - (``Administration/Setup/Horde/Image Manipulation``). You can alternatively - use the GD_ extension or the imagick_ extension, but one of these is - **required**. + ``convert`` utility in Horde's configuration screen + (``Administration/Configuration/Horde/Image Manipulation``). You can + alternatively use the GD_ extension or the imagick_ extension, but one of + these is **required**. .. _`ImageMagick software`: http://www.imagemagick.org/ diff --git a/framework/Kolab_Filter/lib/Horde/Kolab/Test/Filter.php b/framework/Kolab_Filter/lib/Horde/Kolab/Test/Filter.php index ca2be7e75..637a34a5f 100644 --- a/framework/Kolab_Filter/lib/Horde/Kolab/Test/Filter.php +++ b/framework/Kolab_Filter/lib/Horde/Kolab/Test/Filter.php @@ -136,7 +136,7 @@ class Horde_Kolab_Test_Filter \$conf['portal']['fixed_blocks'] = array(); \$conf['imsp']['enabled'] = false; -/** Additional config variables required for a clean Horde setup */ +/** Additional config variables required for a clean Horde configuration */ \$conf['session']['use_only_cookies'] = false; \$conf['session']['timeout'] = 0; \$conf['cookie']['path'] = '/'; diff --git a/framework/Kolab_Storage/test/Horde/Kolab/Storage/Scenario.php b/framework/Kolab_Storage/test/Horde/Kolab/Storage/Scenario.php index 84c99f39d..715b7df69 100644 --- a/framework/Kolab_Storage/test/Horde/Kolab/Storage/Scenario.php +++ b/framework/Kolab_Storage/test/Horde/Kolab/Storage/Scenario.php @@ -180,7 +180,7 @@ class Horde_Kolab_Storage_Scenario extends Horde_Kolab_Server_Integration_Scenar \$conf['portal']['fixed_blocks'] = array(); \$conf['imsp']['enabled'] = false; -/** Additional config variables required for a clean Horde setup */ +/** Additional config variables required for a clean Horde configuration */ \$conf['session']['use_only_cookies'] = false; \$conf['session']['timeout'] = 0; \$conf['cookie']['path'] = '/'; diff --git a/horde/admin/setup/config.php b/horde/admin/config/config.php similarity index 89% rename from horde/admin/setup/config.php rename to horde/admin/config/config.php index 91880ec2e..dafcb8145 100644 --- a/horde/admin/setup/config.php +++ b/horde/admin/config/config.php @@ -18,11 +18,11 @@ if (!Horde_Util::extensionExists('domxml') && $app = Horde_Util::getFormData('app'); $appname = $registry->get('name', $app); -$title = sprintf(_("%s Setup"), $appname); +$title = sprintf(_("%s Configuration"), $appname); if (empty($app) || !in_array($app, $registry->listAllApps())) { $notification->push(_("Invalid application."), 'horde.error'); - Horde::url('admin/setup/index.php', true)->redirect(); + Horde::url('admin/config/index.php', true)->redirect(); } $vars = Horde_Variables::getDefaultVariables(); @@ -59,10 +59,10 @@ if (Horde_Util::getFormData('submitbutton') == _("Revert Configuration")) { fclose($fp); $notification->push(sprintf(_("Successfully wrote %s"), Horde_Util::realPath($path . '/conf.php')), 'horde.success'); $registry->clearCache(); - Horde::url('admin/setup/index.php', true)->redirect(); + Horde::url('admin/config/index.php', true)->redirect(); } else { /* Cannot write. */ - $notification->push(sprintf(_("Could not save the configuration file %s. You can either use one of the options to save the code back on %s or copy manually the code below to %s."), Horde_Util::realPath($path . '/conf.php'), Horde::link(Horde::url('index.php') . '#update', _("Setup")) . _("Setup") . '', Horde_Util::realPath($path . '/conf.php')), 'horde.warning', array('content.raw')); + $notification->push(sprintf(_("Could not save the configuration file %s. You can either use one of the options to save the code back on %s or copy manually the code below to %s."), Horde_Util::realPath($path . '/conf.php'), Horde::link(Horde::url('admin/config/index.php') . '#update', _("Configuration")) . _("Configuration") . '', Horde_Util::realPath($path . '/conf.php')), 'horde.warning', array('content.raw')); /* Save to session. */ $_SESSION['_config'][$app] = $php; } @@ -76,7 +76,7 @@ $template->set('php', htmlspecialchars($php), true); /* Create the link for the diff popup only if stored in session. */ $diff_link = ''; if (!empty($_SESSION['_config'][$app])) { - $url = Horde::url('admin/setup/diff.php', true)->add('app', $app); + $url = Horde::url('admin/config/diff.php', true)->add('app', $app); $diff_link = Horde::link('#', '', '', '', Horde::popupJs($url, array('height' => 480, 'width' => 640, 'urlencode' => true)) . 'return false;') . _("show differences") . ''; } $template->set('diff_popup', $diff_link, true); @@ -93,5 +93,5 @@ Horde::startBuffer(); $form->renderActive($renderer, $vars, 'config.php', 'post'); $template->set('form', Horde::endBuffer()); -echo $template->fetch(HORDE_TEMPLATES . '/admin/setup/config.html'); +echo $template->fetch(HORDE_TEMPLATES . '/admin/config/config.html'); require HORDE_TEMPLATES . '/common-footer.inc'; diff --git a/horde/admin/setup/diff.php b/horde/admin/config/diff.php similarity index 93% rename from horde/admin/setup/diff.php rename to horde/admin/config/diff.php index cc99f09eb..20e001b5c 100644 --- a/horde/admin/setup/diff.php +++ b/horde/admin/config/diff.php @@ -44,7 +44,7 @@ $diffs = array(); /* Only bother to do anything if there is any config. */ if (!empty($_SESSION['_config'])) { /* Set up the toggle button for inline/unified. */ - $url = Horde::url('admin/setup/diff.php')->add('render', ($render_type == 'inline') ? 'unified' : 'inline'); + $url = Horde::url('admin/config/diff.php')->add('render', ($render_type == 'inline') ? 'unified' : 'inline'); if ($app = Horde_Util::getFormData('app')) { /* Handle a single app request. */ @@ -79,5 +79,5 @@ $template->set('diffs', $diffs, true); $title = _("Configuration Differences"); require HORDE_TEMPLATES . '/common-header.inc'; -echo $template->fetch(HORDE_TEMPLATES . '/admin/setup/diff.html'); +echo $template->fetch(HORDE_TEMPLATES . '/admin/config/diff.html'); require HORDE_TEMPLATES . '/common-footer.inc'; diff --git a/horde/admin/setup/index.php b/horde/admin/config/index.php similarity index 92% rename from horde/admin/setup/index.php rename to horde/admin/config/index.php index 77f2c6549..a92317f54 100644 --- a/horde/admin/setup/index.php +++ b/horde/admin/config/index.php @@ -1,6 +1,6 @@ listAllApps(); $apps = array(); $i = -1; @@ -169,13 +169,13 @@ Horde_Array::arraySort($apps, 'sort'); $actions = array(); $ftpform = ''; if (!empty($_SESSION['_config'])) { - $url = Horde::url('admin/setup/diff.php'); + $url = Horde::url('admin/config/diff.php'); $action = _("Show differences between currently saved and the newly generated configuration."); $actions[] = array('icon' => Horde::img('search.png', '', 'align="middle"'), 'link' => Horde::link('#', '', '', '', Horde::popupJs($url, array('height' => 480, 'width' => 640, 'urlencode' => true)) . 'return false;') . $action . ''); /* Action to download the configuration upgrade PHP script. */ - $url = Horde::url('admin/setup/scripts.php')->add(array('setup' => 'conf', 'type' => 'php')); + $url = Horde::url('admin/config/scripts.php')->add(array('setup' => 'conf', 'type' => 'php')); $action = _("Download generated configuration as PHP script."); $actions[] = array('icon' => Horde::img('download.png', '', 'align="middle"'), 'link' => Horde::link($url) . $action . ''); @@ -195,8 +195,8 @@ if (!empty($_SESSION['_config'])) { $ftpform->getInfo($vars, $info); $upload = _uploadFTP($info); if ($upload) { - $notification->push(_("Uploaded all application setup files to the server."), 'horde.success'); - Horde::url('admin/setup/index.php', true)->redirect(); + $notification->push(_("Uploaded all application configuration files to the server."), 'horde.success'); + Horde::url('admin/config/index.php', true)->redirect(); } } /* Render the form. */ @@ -205,9 +205,9 @@ if (!empty($_SESSION['_config'])) { $ftpform = Horde::endBuffer(); } -if (file_exists(Horde::getTempDir() . '/horde_setup_upgrade.php')) { +if (file_exists(Horde::getTempDir() . '/horde_configuration_upgrade.php')) { /* Action to remove the configuration upgrade PHP script. */ - $url = Horde::url('admin/setup/scripts.php')->add('clean', 'tmp'); + $url = Horde::url('admin/config/scripts.php')->add('clean', 'tmp'); $action = _("Remove saved script from server's temporary directory."); $actions[] = array('icon' => Horde::img('delete.png', '', 'align="middle"'), 'link' => Horde::link($url) . $action . ''); @@ -217,15 +217,15 @@ if (file_exists(Horde::getTempDir() . '/horde_setup_upgrade.php')) { $template = $injector->createInstance('Horde_Template'); $template->setOption('gettext', true); $template->set('versions', !empty($versions), true); -$template->set('version_action', Horde::url('admin/setup/index.php')); +$template->set('version_action', Horde::url('admin/config/index.php')); $template->set('version_input', Horde_Util::formInput()); $template->set('apps', $apps); $template->set('actions', $actions, true); $template->set('ftpform', $ftpform, true); -$title = sprintf(_("%s Setup"), $registry->get('name', 'horde')); +$title = sprintf(_("%s Configuration"), $registry->get('name', 'horde')); Horde::addScriptFile('stripe.js', 'horde'); require HORDE_TEMPLATES . '/common-header.inc'; require HORDE_TEMPLATES . '/admin/menu.inc'; -echo $template->fetch(HORDE_TEMPLATES . '/admin/setup/index.html'); +echo $template->fetch(HORDE_TEMPLATES . '/admin/config/index.html'); require HORDE_TEMPLATES . '/common-footer.inc'; diff --git a/horde/admin/setup/scripts.php b/horde/admin/config/scripts.php similarity index 79% rename from horde/admin/setup/scripts.php rename to horde/admin/config/scripts.php index ca7c7ab1f..b09777f03 100644 --- a/horde/admin/setup/scripts.php +++ b/horde/admin/config/scripts.php @@ -1,8 +1,10 @@ push(sprintf(_("Deleted setup upgrade script \"%s\"."), $path), 'horde.success'); + $notification->push(sprintf(_("Deleted configuration upgrade script \"%s\"."), $path), 'horde.success'); } else { - $notification->push(sprintf(_("Could not delete setup upgrade script \"%s\"."), Horde_Util::realPath($path)), 'horde.error'); + $notification->push(sprintf(_("Could not delete configuration upgrade script \"%s\"."), Horde_Util::realPath($path)), 'horde.error'); } $registry->clearCache(); - Horde::url('admin/setup/index.php', true)->redirect(); + Horde::url('admin/config/index.php', true)->redirect(); } $data = ''; @@ -90,9 +92,9 @@ if ($fp = @fopen($tmp_dir . '/' . $filename, 'w')) { fwrite($fp, $data); fclose($fp); chmod($tmp_dir . '/' . $filename, 0777); - $notification->push(sprintf(_("Saved setup upgrade script to: \"%s\"."), $path), 'horde.success'); + $notification->push(sprintf(_("Saved configuration upgrade script to: \"%s\"."), $path), 'horde.success'); } else { - $notification->push(sprintf(_("Could not save setup upgrade script to: \"%s\"."), $path), 'horde.error'); + $notification->push(sprintf(_("Could not save configuration upgrade script to: \"%s\"."), $path), 'horde.error'); } -Horde::url('admin/setup/index.php', true)->redirect(); +Horde::url('admin/config/index.php', true)->redirect(); diff --git a/horde/docs/INSTALL b/horde/docs/INSTALL index ff7374582..b50cdd70b 100644 --- a/horde/docs/INSTALL +++ b/horde/docs/INSTALL @@ -117,8 +117,8 @@ below at Prerequisites_. http://your-server/horde/ - Go to Adminstration => Setup => Horde - (Or navigate to http://your-server/horde/admin/setup) + Go to Administration => Configuration => Horde + (Or navigate to http://your-server/horde/admin/config) Prerequisites @@ -257,8 +257,8 @@ The following prerequisites are **REQUIRED** for Horde to function properly. it needs to compile. You can also use the ImageMagick_ package to do these manipulations - instead. See the ``Image Manipulation`` tab of the Horde setup for more - details. + instead. See the ``Image Manipulation`` tab of the Horde configuration + for more details. .. _ImageMagick: http://www.imagemagick.org @@ -642,7 +642,7 @@ Configuring Horde backend will be administrator accounts. Horde does **NOT** have a default administrator account - all users, including administrators, must exist in the - actual authentication backend. Click on ``Setup`` + actual authentication backend. Click on ``Configuration`` in the ``Administration`` menu and configure Horde. Start in the ``Authentication`` tab. @@ -667,17 +667,17 @@ Configuring Horde - For a secure connection, select port 993. - Select the secure connection protocol to use, if desired. - Continue to configure Horde through all the tabs of the setup interface and - click on ``Generate Horde Configuration``. An important item that you - probably want to configure is the ``Database Settings``, which defines the - database configuration that is used, by default, for several different - Horde sub-systems. + Continue to configure Horde through all the tabs of the configuration + interface and click on ``Generate Horde Configuration``. An important item + that you probably want to configure is the ``Database Settings``, which + defines the database configuration that is used, by default, for several + different Horde sub-systems. Configuration of applications in ``registry.php`` is documented in the ``INSTALL`` file of each application. Most applications require you to configure them with a "Horde administrator" account. A Horde administrator - account is any normal Horde account that has been added to the - administrator list in the ``Authentication`` tab of the Horde setup. + account is any normal Horde account that has been added to the administrator + list in the ``Authentication`` tab of the Horde configuration. The other files in that directory need only be modified if you wish to customize Horde's appearance or behaviour -- the defaults will work at most @@ -717,7 +717,7 @@ Configuring Horde Additionally, you can change the session handler of PHP to use any storage backend requested (e.g. SQL database) via the ``Custom Session - Handler`` tab in the Horde setup. + Handler`` tab in the Horde configuration. For more information about securing your webserver, PHP and Horde, see the `docs/SECURITY`_ file. @@ -738,10 +738,10 @@ Temporary Files =============== Various Horde applications will generate temporary files in PHP's temporary -directory (see the ``General`` tab in the Horde setup). For various reasons, -some of these files may not be removed when the user's session ends. To -reclaim this disk space, it may be necessary to periodically delete these old -temporary files. +directory (see the ``General`` tab in the Horde configuration). For various +reasons, some of these files may not be removed when the user's session +ends. To reclaim this disk space, it may be necessary to periodically delete +these old temporary files. An example cron-based solution can be found at ``scripts/temp-cleanup.cron``. Another possible solution is to use Red Hat's ``tmpwatch`` utility or anything diff --git a/horde/docs/SECURITY b/horde/docs/SECURITY index ad4693fb4..aac23b2f8 100644 --- a/horde/docs/SECURITY +++ b/horde/docs/SECURITY @@ -32,8 +32,8 @@ secure your cookies. You should even force session cookie usage in the Horde configuration, which is the default setting in all Horde versions now. If you want to use HTTPS connections, consider forcing users to HTTPS in the -Horde setup. This will force cookies to be sent over secure connections only -and helps to prevent sidejacking. +Horde configuration. This will force cookies to be sent over secure connections +only and helps to prevent sidejacking. If PHP sessions are set to use the ``files`` save_handler, then these files should be secured properly. Sites can increase security by setting the PHP diff --git a/horde/lib/Api.php b/horde/lib/Api.php index c04e71361..b0c2741d5 100644 --- a/horde/lib/Api.php +++ b/horde/lib/Api.php @@ -23,8 +23,8 @@ class Horde_Api extends Horde_Registry_Api { $admin = array( 'configuration' => array( - 'link' => '%application%/admin/setup/', - 'name' => _("_Setup"), + 'link' => '%application%/admin/config/', + 'name' => _("_Configuration"), 'icon' => Horde_Themes::img('config.png') ), 'users' => array( diff --git a/horde/templates/admin/setup/config.html b/horde/templates/admin/config/config.html similarity index 100% rename from horde/templates/admin/setup/config.html rename to horde/templates/admin/config/config.html diff --git a/horde/templates/admin/setup/diff.html b/horde/templates/admin/config/diff.html similarity index 100% rename from horde/templates/admin/setup/diff.html rename to horde/templates/admin/config/diff.html diff --git a/horde/templates/admin/setup/index.html b/horde/templates/admin/config/index.html similarity index 91% rename from horde/templates/admin/setup/index.html rename to horde/templates/admin/config/index.html index 541945338..8b9d76d37 100644 --- a/horde/templates/admin/setup/index.html +++ b/horde/templates/admin/config/index.html @@ -58,7 +58,7 @@

- Setup upgrade scripts available + Configuration upgrade scripts available

@@ -71,7 +71,7 @@
-

FTP upload of setup

+

FTP upload of configuration

diff --git a/imp/docs/INSTALL b/imp/docs/INSTALL index 57fe3caa2..056697285 100644 --- a/imp/docs/INSTALL +++ b/imp/docs/INSTALL @@ -245,21 +245,21 @@ Configuring IMP If you would prefer that your users authenticate directly with IMP, without having to authenticate through Horde first, load the - ``Administration/Setup/Authentication`` page and from the ``What backend - should we use for authenticating users to Horde`` pulldown menu select - ``Let a Horde application handle authentication``. (Please see the - second note below.) Select ``imp`` from the ``The application which is - providing authentication`` pulldown menu. + ``Administration/Configuration/Authentication`` page and from the ``What + backend should we use for authenticating users to Horde`` pulldown menu + select ``Let a Horde application handle authentication``. (Please see + the second note below.) Select ``imp`` from the ``The application which + is providing authentication`` pulldown menu. .. Note:: **You will have to log in twice if you don't do this** -- Once to Horde and a second time to IMP. - .. Note:: If this is a new install, you will not be able to configure - IMP using the Horde Administration/Setup page if you first + .. Note:: If this is a new install, you will not be able to configure IMP + using the Horde Administration/Configuration page if you first enabled IMP authentication for Horde. You must set Horde to use another authentication method (refer to the - `horde/docs/INSTALL`_ file), configure IMP, then reset Horde - to use IMP authentication. One way to reset Horde in order to + `horde/docs/INSTALL`_ file), configure IMP, then reset Horde to + use IMP authentication. One way to reset Horde in order to reach the Administration page is to replace the Horde configuration file ``conf.php`` with the original in ``horde/config/conf.php.dist``. You should of course back up @@ -297,16 +297,16 @@ Configuring IMP You must be sure to list your IMAP/POP3 server names and configuration information in ``backends.php``. - You must login to Horde as a Horde Administrator to finish the - configuration of IMP. Use the Horde ``Administration`` menu item to get to - the administration page, and then click on the ``Setup`` icon to get the + You must login to Horde as a Horde Administrator to finish the configuration + of IMP. Use the Horde ``Administration`` menu item to get to the + administration page, and then click on the ``Configuration`` icon to get the configuration page. Select ``Mail`` from the selection list of applications. Fill in or change any configuration values as needed. When done click on ``Generate Mail Configuration`` to generate the ``conf.php`` file. If your web server doesn't have write permissions to the IMP configuration directory or file, it will not be able to write the file. In - this case, go back to ``Setup`` and choose one of the other methods to - create the configuration file ``imp/config/conf.php``. + this case, go back to ``Configuration`` and choose one of the other methods + to create the configuration file ``imp/config/conf.php``. Note for international users: IMP uses GNU gettext to provide local translations of text displayed by applications; the translations are found @@ -400,8 +400,9 @@ Configuring IMP using caching. To use this caching, you must have a ``Cache System`` configured in Horde's - ``Administration/Setup`` screen and have the relevant settings enabled in - IMP's setup screen (``Administration/Setup/Webmail/Mailbox``). + ``Administration/Configuration`` screen and have the relevant settings + enabled in IMP's configuration screen + (``Administration/Configuration/Webmail/Mailbox``). Dynamic View Troubleshooting diff --git a/koward/lib/Koward/Test.php b/koward/lib/Koward/Test.php index 0c5861e7a..e725b7468 100644 --- a/koward/lib/Koward/Test.php +++ b/koward/lib/Koward/Test.php @@ -46,7 +46,7 @@ class Koward_Test extends Horde_Kolab_Test_Storage \$conf['portal']['fixed_blocks'] = array(); \$conf['imsp']['enabled'] = false; -/** Additional config variables required for a clean Horde setup */ +/** Additional config variables required for a clean Horde configuration */ \$conf['session']['use_only_cookies'] = false; \$conf['session']['timeout'] = 0; \$conf['cookie']['path'] = '/'; -- 2.11.0