function rss_keyboard_menu_content() { global $keyboards; include 'rss_view_popup.php'; $view = new rssSkinPopupView(); $view->topTitle = getMsg('coreKbdSel'); foreach ($keyboards as $id => $kbd) { $view->items[] = array('title' => $kbd['title'], 'action' => 'ret', 'link' => getMosUrl() . "?page=xml_keyboard&lang={$id}"); } $view->items[] = array('title' => getMsg('coreCmCancel'), 'action' => 'ret', 'link' => ''); $view->showRss(); }
function rss_services_actions_content() { global $mos; if (!isset($_REQUEST['mod'])) { return; } $mod = $_REQUEST['mod']; $page = 'xml_services'; if (isset($_REQUEST['ret'])) { $page = $_REQUEST['ret']; } $packs = parse_ini_file($mos . '/etc/pm/packages', true); $installed = parse_ini_file($mos . '/etc/pm/installed', true); $opts = $installed[$mod]; if (loadModuleOptions($mod, $opts) === false) { if (isset($packs[$mod])) { $opts = array('title' => $packs[$mod]['title'], '_actions' => array()); $irev = ''; } else { return; } } else { $irev = $opts['revision']; } if ($opts['role'] == 'core') { $opts['_actions'] = array(); } if (isset($packs[$mod])) { $arev = $packs[$mod]['revision']; if ($irev == '') { $opts['_actions'][] = 'install'; } elseif ($arev != $irev) { $opts['_actions'][] = 'update'; } } // -------------------------- // send RSS include 'rss_view_popup.php'; $view = new rssSkinPopupView(); $view->topTitle = $opts['title']; foreach ($opts['_actions'] as $act) { $view->items[] = array('title' => getMsg('coreCm_' . $act), 'action' => 'ret', 'link' => getMosUrl() . "?page={$page}&mod={$mod}&act={$act}"); } $view->items[] = array('title' => getMsg('coreCmCancel'), 'action' => 'ret', 'link' => ''); $view->showRss(); }