popup = (integer) !empty($_REQUEST['popup']); if ($core->plugins->moduleExists($p)) { $p_file = $core->plugins->moduleRoot($p).'/index.php'; } if (file_exists($p_file)) { //* Keep this for old style plugins using dcPage if ($popup) { $open_f = array('dcPage','openPopup'); $close_f = array('dcPage','closePopup'); } else { $open_f = array('dcPage','open'); $close_f = array('dcPage','close'); } $p_info = $core->plugins->getModules($p); $p_url = 'plugin.php?p='.$p; $p_title = $p_head = $p_content = ''; //*/ # Get page content ob_start(); include $p_file; $res = ob_get_contents(); ob_end_clean(); # Check context and display if ($_ctx->hasPageTitle() && !empty($res)) { $has_content = true; echo $res; } //* Keep this for old style plugins using dcPage elseif (!$_ctx->hasPageTitle()) { if (preg_match('|
(.*?)(.*?)|ms',$m[1],$mt)) { $p_title = $mt[1]; } if (preg_match_all('|(