示例#1
0
         $aPackageInfo = $oPluginManager->getPackageInfo($plugin);
         $aComponents = $aPackageInfo['contents'];
         unset($aPackageInfo['contents']);
         if ($aPackageInfo['readme']) {
             $readme = file_get_contents($aPackageInfo['readme']);
         }
         $aPackageInfo['package'] = true;
         $oTpl->assign('aPackage', $aPackageInfo);
         $oTpl->assign('aPlugins', $aComponents);
         $oTpl->assign('readme', $readme);
         $oTpl->assign('backURL', MAX::constructURL(MAX_URL_ADMIN, "plugin-index.php?selection=packages"));
     } else {
         if ($group) {
             $oTpl = new OA_Admin_Template('plugin-group-view.html');
             $aGroupInfo = $oComponentGroupManager->getComponentGroupInfo($group);
             $aGroupInfo['pluginGroupComponents'] = $oComponentGroupManager->getComponentGroupObjectsInfo($aGroupInfo['extends'], $group);
             $oTpl->assign('aPlugin', $aGroupInfo);
             $oTpl->assign('parent', $parent);
             $oTpl->assign('backURL', MAX::constructURL(MAX_URL_ADMIN, "plugin-index.php?action=info&package={$parent}"));
         }
     }
 } else {
     if ('settings' == $action) {
         require_once LIB_PATH . '/Admin/Redirect.php';
         OX_Admin_Redirect::redirect("plugin-settings.php?group={$group}&parent={$parent}");
     } else {
         if ('preferences' == $action) {
             require_once LIB_PATH . '/Admin/Redirect.php';
             OX_Admin_Redirect::redirect("plugin-preferences.php?group={$group}&parent={$parent}");
         } else {
             if (array_key_exists('checkdb', $_GET)) {