*/ // *** Default includes and procedures *** // define('IN_PHPLOGCON', true); define('IN_PHPLOGCON_INSTALL', true); // Extra for INSTALL Script! define('STEPSCRIPTNAME', "install.php"); // Helper variable for the STEP helper functions $gl_root_path = './'; // Now include necessary include files! include $gl_root_path . 'include/functions_common.php'; include $gl_root_path . 'include/functions_frontendhelpers.php'; include $gl_root_path . 'include/functions_installhelpers.php'; // Init Langauge first! IncludeLanguageFile($gl_root_path . '/lang/' . $LANG . '/main.php'); InitBasicPhpLogCon(); if (InitPhpLogConConfigFile(false)) { DieWithErrorMsg($content['LN_INSTALL_ERRORINSTALLED']); } // Set some static values define('MAX_STEPS', 8); $content['web_theme'] = "default"; $content['user_theme'] = "default"; $configsamplefile = $content['BASEPATH'] . "include/config.sample.php"; $content['HeaderDefaultEncoding'] = ENC_ISO_8859_1; // Set Default encoding! // New Set Font settingdefaults InitFontSettings(); //ini_set('error_reporting', E_ALL); // DEBUG ENABLE // *** *** // // --- CONTENT Vars $content['TITLE'] = "LogAnalyzer :: " . $content['LN_INSTALL_TITLE'];
function InitPhpLogCon() { // Needed to make global global $gl_root_path, $content, $CFG; // Abort if already defined if (defined('PHPLOGCON_INITIALIZED')) { return; } // Init Basics which do not need a database InitBasicPhpLogCon(); // Will init the config file! InitPhpLogConConfigFile(); // Init UserDB related stuff! InitUserSystemPhpLogCon(); // Establish DB Connection if (GetConfigSetting("UserDBEnabled", false)) { DB_Connect(); } // Now load the Page configuration values InitConfigurationValues(); // Moved here, because we do not need if GZIP needs to be enabled before the config is loaded! InitRuntimeInformations(); // Now Create Themes List because we haven't the config before! CreateThemesList(); // Create Language List CreateLanguageList(); // Init Predefined Searches List CreatePredefinedSearches(); // Init predefined paging sizes CreatePagesizesList(); // Init predefined reload times CreateReloadTimesList(); // Init predefined reload times CreateExportFormatList(); // --- Enable PHP Debug Mode InitPhpDebugMode(); // --- // --- Init Allowed directories for DiskSources InitDiskAllowedSources(); // --- // --- Check and Remove Magic Quotes! RemoveMagicQuotes(); // --- // Finally defined PHPLOGCON_INITIALIZED! define('PHPLOGCON_INITIALIZED', TRUE); }