0byt3m1n1
Path:
/
data
/
applications
/
aps
/
b2evolution
/
4.1.5b-1
/
standard
/
htdocs
/
inc
/
settings
/
[
Home
]
File: settings_dispatch.ctrl.php
<?php /** * Dispatch to the last used controller in Global Settings * * This file is part of the evoCore framework - {@link http://evocore.net/} * See also {@link http://sourceforge.net/projects/evocms/}. * * @copyright (c)2003-2011 by Francois Planque - {@link http://fplanque.com/} * * {@internal License choice * - If you have received this file as part of a package, please find the license.txt file in * the same folder or the closest folder above for complete license terms. * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) * then you must choose one of the following licenses before using the file: * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php * }} * * @package admin * * {@internal Below is a list of authors who have contributed to design/coding of this file: }} * @author fplanque: Francois PLANQUE * * @version $Id: settings_dispatch.ctrl.php 9 2011-10-24 22:32:00Z fplanque $ */ if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); // Store/retrieve preferred tab from UserSettings: $UserSettings->param_Request( 'tab', 'pref_glob_settings_tab', 'string', 'gensettings', true /* memorize */, true /* force */ ); // Avoid infernal loop: if( $tab == 'settings' ) { $ctrl = 'gensettings'; } else { $ctrl = $tab; } // Check matching controller file: if( !isset($ctrl_mappings[$ctrl]) ) { debug_die( 'The requested controller ['.$ctrl.'] does not exist.' ); } // Call the requested controller: require $inc_path.$ctrl_mappings[$ctrl]; /* * $Log: settings_dispatch.ctrl.php,v $ */ ?>