app = $app; } function &source(){ if(defined('CUSTOM_CORE_DIR') && file_exists(CUSTOM_CORE_DIR.'/'.$this->app->app_id.'/setting.php')){ include(CUSTOM_CORE_DIR.'/'.$this->app->app_id.'/setting.php'); }else{ include($this->app->app_dir.'/setting.php'); } return $setting; } }