public static function enable($state = true) { self::$_enabled = $state; if (!$state) { self::$_hints = array(); } }
ModuleManager::load('lepton.base.application'); } function class_inherits($cn, $base) { if (!class_exists($cn)) { return false; } $rc = new ReflectionClass($cn); $pc = $rc->getParentClass(); if ($pc) { return $pc->name == $base; } return false; } if (config::has('lepton.db.tableprefix')) { define('LEPTON_DB_PREFIX', config::get('lepton.db.tableprefix')); } else { define('LEPTON_DB_PREFIX', ''); } class LeptonInstanceScopeWatcher { function __destruct() { Console::debugEx(LOG_BASIC, '(destructor)', "Memory allocated at shutdown: %0.3f KB (Total used: %0.3f KB, By code: %0.3f KB)", memory_get_usage() / 1024 / 1024, memory_get_usage(true) / 1024 / 1024, (memory_get_usage(true) - SYSTEM_INITIAL_MEMORY_USE) / 1024 / 1024); } } $__leptoninstancescope = new LeptonInstanceScopeWatcher(); using('s2s.requesthandler'); using('lepton.utils.rtoptimization'); RuntimeOptimization::enable();