exit; } $mytrustdirname = basename(dirname(__FILE__)); $mytrustdirpath = dirname(__FILE__); include_once "{$mytrustdirpath}/include.php"; $xpwiki = new XpWiki($mydirname); // initialize $xpwiki->init(); // XCL >= 2.2 Use "Legacy_Utils::formatPagetitle" if (defined('LEGACY_MODULE_VERSION') && version_compare(LEGACY_MODULE_VERSION, '2.2', '>=')) { $xpwiki->root->html_head_title = trim(str_replace('$module_title', '', $xpwiki->root->html_head_title), ' -'); } // execute $xpwiki->execute(); // gethtml $xpwiki->catbody(); // Add error message if ($xpwiki->root->userinfo['admin']) { $hyp_common_methods = get_class_methods('HypCommonFunc'); if (is_null($hyp_common_methods) || !in_array('get_version', $hyp_common_methods) || HypCommonFunc::get_version() < 20100725) { $xpwiki->admin_messages[] = '[Warning] Please install or update <a href="http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/hypweb/XOOPS_TRUST/class/hyp_common.tar.gz?view=tar" title="Download">a newest HypCommonFunc</a> into "XOOPS_TRUST_PATH/class/".'; } if ($xpwiki->admin_messages) { $xpwiki->html = '<p style="color:red;font-weight:bold;">' . join('<br />', $xpwiki->admin_messages) . '</p><hr />' . $xpwiki->html; } } if ($xpwiki->runmode === 'xoops') { // For XCL >= 2.2.1.1 (clear cache of modinfo) // Is it XCL's bug? need check next // http://xoopscube.svn.sourceforge.net/viewvc/xoopscube/Package_Legacy/trunk/html/kernel/module.php?view=log if (defined('LEGACY_BASE_VERSION') && version_compare(LEGACY_BASE_VERSION, '2.2.1.1', '>=')) {