- Timestamp:
- 05/20/11 19:32:04 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.9/amp_conf/htdocs/admin/bootstrap.php
r12168 r12183 24 24 * $bootstrap_settings['function_modules_included'] = true/false true if one or more were included, false if all were skipped; 25 25 */ 26 27 // we should never re-run this file, something is wrong if we do. 28 // 29 if (isset($bootstrap_settings['bootstrapped'])) { 30 freepbx_log(FPBX_LOG_ERROR,"Bootstrap has already been called once, bad code somewhere"); 31 return; 32 } else { 33 $bootstrap_settings['bootstrapped'] = true; 34 } 26 35 27 36 if (!isset($bootstrap_settings['skip_astman'])) { … … 128 137 if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); }//we should never need this, just another line of defence 129 138 139 $restrict_mods_local = $restrict_mods; 130 140 // I'm pretty sure if this is == true then there is no need to even pull all the module info as we are going down a path 131 141 // such as an ajax path that this is just overhead. (We'll know soon enough if this is too restrcitive). 132 142 // 133 if ($restrict_mods !== true) {143 if ($restrict_mods_local !== true) { 134 144 $active_modules = module_getinfo(false, MODULE_STATUS_ENABLED); 135 145 … … 138 148 foreach($active_modules as $key => $module) { 139 149 //include module functions if there not dissabled 140 if ((!$restrict_mods || (is_array($restrict_mods) && isset($restrict_mods[$key]))) && is_file($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php")) {150 if ((!$restrict_mods_local || (is_array($restrict_mods_local) && isset($restrict_mods_local[$key]))) && is_file($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php")) { 141 151 require_once($amp_conf['AMPWEBROOT']."/admin/modules/{$key}/functions.inc.php"); 142 152 }
