Exemple #1
0
 /**
  * Main block/module processing... grab all valid blocks and generate template etc
  *
  * @return null
  */
 public function generate_all_block()
 {
     ///var_dump('helper.php > generate_all_block()');
     global $db, $k_config, $request;
     $id = $request->variable('style', 0);
     if ($id) {
         return;
     }
     $page = '';
     $blocks_width = $this->config['blocks_width'];
     $blocks_enabled = $this->config['blocks_enabled'];
     $block_cache_time = $k_config['k_block_cache_time_default'];
     $use_block_cookies = isset($k_config['use_block_cookies']) ? $k_config['use_block_cookies'] : 0;
     if (!$blocks_enabled) {
         $this->template->assign_vars(array('PORTAL_MESSAGE' => $this->user->lang('BLOCKS_DISABLED')));
     }
     $this->includes_path = $this->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();
 }
Exemple #2
0
 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();
 }