public function init() { if (self::$start_time == 0) { self::$start_time = microtime(true); } $this->module_name = "debug"; $this->module_position = 1; $this->version = 2.121; // 2.1 - 2013-08-30 - debug mode enhancements // 2.11 - 2013-09-15 - ID in debug column output // 2.12 - 2014-07-28 - more info in debug output and ?debug_only_bad url // 2.121 - 2014-10-07 - memory_get_usage fix }
$plugins_to_init[] = 'cache'; $plugins_to_init[] = 'debug'; $plugins_to_init[] = 'config'; $plugins_to_init[] = 'security'; $plugins_to_init[] = 'language'; foreach ($plugins_to_init as $plugin_to_init) { $plugin_file_name = 'includes/plugin_' . $plugin_to_init . '/' . $plugin_to_init . '.php'; if (is_file('custom/' . $plugin_file_name)) { $plugin_file_name = 'custom/' . $plugin_file_name; } require_once $plugin_file_name; } } if (_DEBUG_MODE) { if (isset($start_time)) { module_debug::$start_time = $start_time; } if (isset($debug_info)) { foreach ($debug_info as $prior_debug_log) { module_debug::log($prior_debug_log); } } module_debug::log(array('title' => 'Plugins Loaded', 'data' => implode(', ', $plugins_to_init))); } define('_UCM_INSTALLED', is_installed()); // is_installed() will do our db_connection $plugins = array(); if (_UCM_INSTALLED) { //$db = db_connect(); // is_installed() does the db_connect above.. }