Huge script change, see http://forum.mxchange.org/topic-458.html for details:
[mailer.git] / inc / modules / admin / what-config_cache.php
index 28b2d7e7866c3e1bfafe70b2fe05a7ce93e48faa..f551ef47b7591c74e7b59193e56a1fa6505a87ab 100644 (file)
@@ -1,222 +1,3 @@
 <?php
-/************************************************************************
- * MXChange v0.2.1                                    Start: 01/29/2006 *
- * ================                             Last change: 01/29/2006 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : what-config_cache.php                            *
- * -------------------------------------------------------------------- *
- * Short description : Configuration for the caching system             *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Konfiguration des Caching-Systems                *
- * -------------------------------------------------------------------- *
- * $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                  *
- *                                                                      *
- * 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., 51 Franklin St, Fifth Floor, Boston,               *
- * MA  02110-1301  USA                                                  *
- ************************************************************************/
-
-// Some security stuff...
-if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
-       require($INC);
-} // END - if
-
-// Add description as navigation point
-ADD_DESCR('admin', __FILE__);
-
-if (isFormSent()) {
-       // Cache path has been not changed by default so don't test it again
-       REQUEST_SET_POST('cache_tested', 'N');
-
-       // Check if path has been changed
-       if (REQUEST_POST('cache_path') != getConfig('cache_path')) {
-               // Okay, cache path has been altered so we have to test it again!
-               REQUEST_SET_POST('cache_tested', 'Y');
-       } // END - if
-
-       if ((REQUEST_POST('cache_admins') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('admins'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_acls') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('acls'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_exts') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('extensions', true))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_config') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('config'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_modreg') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('modreg'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_refdepth') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('refdepth'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_refsys') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('refsys'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       if ((REQUEST_POST('cache_filter') == 'N') && ($GLOBALS['cache_instance']->loadCacheFile('filter'))) {
-               $GLOBALS['cache_instance']->destroyCacheFile();
-       } // END - if
-
-       // Save configuration
-       ADMIN_SAVE_SETTINGS_POST();
-} else {
-       // Prepare data
-       // @TODO Rewrite all constants
-       switch (getConfig('cache_admins')) {
-               case 'Y':
-                       define('__ADMINS_Y', ' checked="checked"');
-                       define('__ADMINS_N', '');
-                       break;
-
-               case 'N':
-                       define('__ADMINS_Y', '');
-                       define('__ADMINS_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_acls')) {
-               case 'Y':
-                       define('__ACLS_Y', ' checked="checked"');
-                       define('__ACLS_N', '');
-                       break;
-
-               case 'N':
-                       define('__ACLS_Y', '');
-                       define('__ACLS_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_exts')) {
-               case 'Y':
-                       define('__EXTS_Y', ' checked="checked"');
-                       define('__EXTS_N', '');
-                       break;
-
-               case 'N':
-                       define('__EXTS_Y', '');
-                       define('__EXTS_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_config')) {
-               case 'Y':
-                       define('__CONFIG_Y', ' checked="checked"');
-                       define('__CONFIG_N', '');
-                       break;
-
-               case 'N':
-                       define('__CONFIG_Y', '');
-                       define('__CONFIG_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_modreg')) {
-               case 'Y':
-                       define('__MODREG_Y', ' checked="checked"');
-                       define('__MODREG_N', '');
-                       break;
-
-               case 'N':
-                       define('__MODREG_Y', '');
-                       define('__MODREG_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_refdepth')) {
-               case 'Y':
-                       define('__REFDEPTH_Y', ' checked="checked"');
-                       define('__REFDEPTH_N', '');
-                       break;
-
-               case 'N':
-                       define('__REFDEPTH_Y', '');
-                       define('__REFDEPTH_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_refsys')) {
-               case 'Y':
-                       define('__REFSYS_Y', ' checked="checked"');
-                       define('__REFSYS_N', '');
-                       break;
-
-               case 'N':
-                       define('__REFSYS_Y', '');
-                       define('__REFSYS_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_filter')) {
-               case 'Y':
-                       define('__FILTER_Y', ' checked="checked"');
-                       define('__FILTER_N', '');
-                       break;
-
-               case 'N':
-                       define('__FILTER_Y', '');
-                       define('__FILTER_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_themes')) {
-               case 'Y':
-                       define('__THEMES_Y', ' checked="checked"');
-                       define('__THEMES_N', '');
-                       break;
-
-               case 'N':
-                       define('__THEMES_Y', '');
-                       define('__THEMES_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       switch (getConfig('cache_admin_menu')) {
-               case 'Y':
-                       define('__ADMIN_MENU_Y', ' checked="checked"');
-                       define('__ADMIN_MENU_N', '');
-                       break;
-
-               case 'N':
-                       define('__ADMIN_MENU_Y', '');
-                       define('__ADMIN_MENU_N', ' checked="checked"');
-                       break;
-       } // END - switch
-
-       define('__PATH', getConfig('cache_path'));
-
-       // Load template
-       LOAD_TEMPLATE('admin_config_cache');
-}
-
-//
+// @DEPRECATED
 ?>