- // Get all values
- if ((getOutputMode() != 1) && (getOutputMode() != -1)) {
- if (!isModuleSet()) setModule('empty');
- if (!isWhatSet()) setWhat(getWhatFromModule(getModule()));
- if (!isActionSet()) setAction(getModeAction(getModule(), getWhat()));
- } else {
- // Set action/what to empty
- setAction('');
- setWhat('');
- }
-
- // Run the init filter chain
- runFilterChain('init');
-
- // Set default 'what' value
- //* DEBUG: */ OUTPUT_HTML('-'.getModule().'/'.getWhat()."-<br />");
- if ((!isWhatSet()) && (!isActionSet()) && (getOutputMode() != 1) && (getOutputMode() != -1)) {
- if (getModule() == 'admin') {
- // Set 'action' value to 'login' in admin menu
- setAction(getModeAction(getModule(), getWhat()));
- } elseif ((getModule() == 'index') || (getModule() == 'login')) {
- // Set 'what' value to 'welcome' in guest and member menu
- setWhat('welcome');
- if (getConfig('index_home') != '') setWhatFromConfig('index_home');
- } else {
- // Anything else like begging link
- setWhat('');
- }
- } // END - if
-
- // Update sending pool
- if ((getOutputMode() != '1') && (getOutputMode() != '-1')) loadIncludeOnce('inc/pool-update.php'); // Sends out mails in configureable steps
-
- // Load all active extension including language files when not upgrading.
- // Check module for testing and count one click
- if (checkModulePermissions(getModule()) == 'done') countModuleHit(getModule());
-
- // Shall we activate the exchange?
- if (getConfig('activate_xchange') > 0) activateExchange();