function addHeaderFooter(&$li, $content) { global $gConf; global $glHeader; global $glFooter; $ret = ''; $ret .= "<root>\n"; $ret .= '<disable_boonex_footers>' . (int) getConfigParam('disable_boonex_footers') . '</disable_boonex_footers>'; $ret .= '<header><![CDATA[' . $glHeader . ']]></header>'; $ret .= '<footer><![CDATA[' . $glFooter . ']]></footer>'; $ret .= "<min_point>{$gConf['min_point']}</min_point>\n"; $ret .= "<base>{$gConf['url']['base']}</base>\n"; $ret .= "<title>{$gConf['def_title']}</title>\n"; $integration_xml = ''; @(include $gConf['dir']['base'] . 'xml/xml.php'); $ret .= $integration_xml; $ret .= $this->getUrlsXml(); if (is_array($li)) { $ret .= "<logininfo>"; reset($li); while (list($k, $v) = each($li)) { $ret .= "<{$k}>{$v}</{$k}>"; } $ret .= "</logininfo>"; if (1 == $li['admin']) { $ret .= $this->getLangsXml(); } } $ret .= "<page>\n"; $ret .= $content; $ret .= "</page>\n"; $ret .= "</root>\n"; return $ret; }
/** * Initializes the FileEventListener by the specified config. * * @param Array name/value array of config data. */ function init(&$config) { // Setup logger $this->_logPath = getRealPath($config, "LoggingFileEventListener.path"); $this->_logPrefix = getConfigParam($config, "LoggingFileEventListener.prefix", "mcfilemanager"); $this->_logMaxSize = getConfigParam($config, "LoggingFileEventListener.max_size", "100k"); $this->_logMaxFiles = getConfigParam($config, "LoggingFileEventListener.max_files", "10"); // Fix log max size $logMaxSizeBytes = intval(preg_replace("/[^0-9]/", "", $this->_logMaxSize)); // Is KB if (strpos(strtolower($this->_logMaxSize), "k") > 0) { $logMaxSizeBytes *= 1024; } // Is MB if (strpos(strtolower($this->_logMaxSize), "m") > 0) { $logMaxSizeBytes *= 1024 * 1024; } $this->_logMaxSizeBytes = $logMaxSizeBytes; }
<?php /** * Orca Interactive Forum Script * --------------- * Started : Mon Mar 23 2006 * Copyright : (C) 2007 BoonEx Group * Website : http://www.boonex.com * This file is part of Orca - Interactive Forum Script * GPL **/ // generate custom $glHeader and $glFooter variables here // ******************* include dolphin header/footer [begin] require_once BX_DIRECTORY_PATH_INC . 'params.inc.php'; $cacheParam['enable_boonex_footers'] = !getConfigParam('disable_boonex_footers'); require_once BX_DIRECTORY_PATH_ROOT . "templates/tmpl_{$tmpl}/scripts/functions.php"; require_once BX_DIRECTORY_PATH_INC . 'design.inc.php'; $_page['name_index'] = 55; if (!($logged['admin'] = member_auth(1, false))) { if (!($logged['member'] = member_auth(0, false))) { if (!($logged['aff'] = member_auth(2, false))) { $logged['moderator'] = member_auth(3, false); } } } $_page['header'] = $gConf['def_title']; $_page['header_text'] = $gConf['def_title']; $_ni = $_page['name_index']; $_page_cont[$_ni]['page_main_code'] = '-=++=-'; ob_start(); PageCode();