|
From: Jon O. <jon...@us...> - 2007-09-12 19:36:15
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16661 Modified Files: Tag: core28x mx_functions_style.php Added Files: Tag: core28x template.php Log Message: XS template.php part of CORE --- NEW FILE: template.php --- <?php /** * * @package mxBB Portal Module - mx_xs * @version $Id: template.php,v 1.18.2.2 2007/09/12 19:36:09 jonohlsson Exp $ * @copyright (c) 2002-2007 [CyberAlien, OryNider] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mxbb.net * */ /** * * Template class. By Nathan Codding of the phpBB group. * The interface was originally inspired by PHPLib templates, * and the template file formats are quite similar. * * eXtreme Styles mod/module by CyberAlien. [...2418 lines suppressed...] $list = explode('|', $str); for($i=0; $i<count($list); $i++) { $row = explode('=', $list[$i], 2); if(count($row) == 2) { $array[$row[0]] = $row[1]; } } return $array; } } function xs_switch($tpl, $name) { return (isset($tpl->_tpldata[$name.'.']) && count($tpl->_tpldata[$name.'.']) > 0); } ?> Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.17.2.2 retrieving revision 1.17.2.3 diff -C2 -d -r1.17.2.2 -r1.17.2.3 *** mx_functions_style.php 4 Sep 2007 18:49:07 -0000 1.17.2.2 --- mx_functions_style.php 12 Sep 2007 19:36:09 -0000 1.17.2.3 *************** *** 18,29 **** // Including phpBB version of the Template class // ! if( file_exists($mx_root_path . 'modules/mx_xs/includes/template.' . $phpEx) ) ! { ! include_once($mx_root_path . 'modules/mx_xs/includes/template.' . $phpEx); ! } ! else ! { ! include_once($phpbb_root_path . 'includes/template.' . $phpEx); ! } // --- 18,22 ---- // Including phpBB version of the Template class // ! include_once($phpbb_root_path . 'includes/template.' . $phpEx); // |