コード例 #1
0
ファイル: helper.php プロジェクト: phpbbireland/portal
 /**
  * grab the portal cache
  *
  * @return null
  */
 public function load_cache()
 {
     ///var_dump('helper.php > load_cache()');
     global $k_config;
     if (!isset($k_config)) {
         include $this->phpbb_root_path . 'ext/phpbbireland/portal/includes/functions.' . $this->php_ext;
         $k_config = obtain_k_config();
         $k_blocks = obtain_block_data();
         $k_menus = obtain_k_menus();
         $k_pages = obtain_k_pages();
         $k_groups = obtain_k_groups();
         $k_resources = obtain_k_resources();
     }
 }
コード例 #2
0
ファイル: listener.php プロジェクト: phpbbireland/portal
 public function process_blocks_for_phpbb_pages()
 {
     //var_dump('listener.php > process_blocks_for_phpbb_pages');
     global $phpbb_container, $request, $phpbb_root_path, $user;
     global $queries, $cached_queries, $total_queries, $k_config, $k_blocks, $k_menus, $k_pages, $k_groups;
     if (!defined('KISS')) {
         define('KISS', true);
     }
     $this->includes_path = $phpbb_root_path . 'ext/phpbbireland/portal/includes/';
     if (!isset($k_config)) {
         include $phpbb_root_path . 'ext/phpbbireland/portal/includes/functions.' . $this->php_ext;
         $k_config = obtain_k_config();
         $k_blocks = obtain_block_data();
         $k_menus = obtain_k_menus();
         $k_pages = obtain_k_pages();
         $k_groups = obtain_k_groups();
         $k_resources = obtain_k_resources();
     }
     $this->includes_path = $phpbb_root_path . 'ext/phpbbireland/portal/includes/';
     include_once $this->includes_path . 'sgp_functions.' . $this->php_ext;
     $func = new \phpbbireland\portal\includes\func();
     $func->process_block_modules();
 }