X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_extensions.php;h=cc3ba11687bd131ea69b0e4ea198ba1421443fef;hb=5298a98f56b4d62bf6a463d5b8a2b63fb0e453c2;hp=2504ad825920a49bc3a44d85409e87fdcb5b356a;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git diff --git a/inc/modules/admin/what-config_extensions.php b/inc/modules/admin/what-config_extensions.php index 2504ad8259..cc3ba11687 100644 --- a/inc/modules/admin/what-config_extensions.php +++ b/inc/modules/admin/what-config_extensions.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Konfiguration des Erweiterungs-Management * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -32,31 +37,35 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) -{ - $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; +if ((!defined('__SECURITY')) || (!IS_ADMIN())) { + $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php'; require($INC); } + // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR('admin', __FILE__); -if (isset($_POST['ok'])) -{ +if (isFormSent()) { // Save configuration - ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'"); -} - else -{ + ADMIN_SAVE_SETTINGS_POST(); +} else { // Prepare data - switch ($CONFIG['verbose_sql']) - { - case "Y": define('__VERBOSE_Y', " checked"); define('__VERBOSE_N', ""); break; - case "N": define('__VERBOSE_Y', ""); define('__VERBOSE_N', " checked"); break; + switch (getConfig('verbose_sql')) { + case 'Y': + define('__VERBOSE_Y', ' checked="checked"'); + define('__VERBOSE_N', ''); + break; + + case 'N': + define('__VERBOSE_Y', ''); + define('__VERBOSE_N', ' checked="checked"'); + break; } // Load template LOAD_TEMPLATE("admin_config_extensions"); } + // ?>