function &create($isNew = true, $isBase = true) { if ($isBase) { $lang = new Blanguage(); $lang->isBase = true; } else { $lang = new Xlanguage(); } if ($isNew) { $lang->setNew(); } return $lang; }
* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * @copyright 2010-2014 XOOPS Project (http://xoops.org) * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) * @package xlanguage * @since 2.6.0 * @author Laurent JEN (Aka DuGris) * @version $Id$ */ include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; $op = ''; if (isset($_POST)) { foreach ($_POST as $k => $v) { ${$k} = $v; } } if (isset($_GET)) { foreach ($_GET as $k => $v) { ${$k} = $v; } } XoopsLoad::load('system', 'system'); $xoops = Xoops::getInstance(); $system = System::getInstance(); $helper = Xlanguage::getInstance(); $helper->getHandlerLanguage()->loadConfig(); $xoops->header(); $xoops->theme()->addStylesheet('modules/xlanguage/css/moduladmin.css'); $admin_page = new \Xoops\Module\Admin();