'); print_info_box(gettext("Please wait while the package data is being retrieved.")); echo str_repeat("", 1000); print(''); ob_end_flush(); //flush(); $pkg_info = get_pkg_info(); if ($pkg_info) { // Check categories $categories = array(); foreach ($pkg_info as $pkg_data) { if (isset($pkg_data['categories'][0])) { $categories[$pkg_data['categories'][0]]++; } } ksort($categories, SORT_STRING|SORT_FLAG_CASE); $cm_count = 0; $tab_array = array(); $visible_categories = array(); $categories_min_count = ($g['pkg_categories_min_count'] ? $g['pkg_categories_min_count'] : 3); $categories_max_display = ($g['pkg_categories_max_display'] ? $g['pkg_categories_max_display'] : 6); // check selected category or define default category to show if (isset($_REQUEST['category'])) { $menu_category = $_REQUEST['category']; } elseif (isset($g['pkg_default_category'])) { $menu_category = $g['pkg_default_category']; } else { $menu_category = "All"; } $menu_category = (isset($_REQUEST['category']) ? $_REQUEST['category'] : "All"); $show_category = ($menu_category == "Other" || $menu_category == "All"); $tab_array[] = array(gettext("All"), $menu_category == "All" ? true : false, "pkg_mgr.php?category=All"); foreach ($categories as $category => $c_count) { if ($c_count >= $categories_min_count && $cm_count <= $categories_max_display) { $tab_array[] = array(gettext($category) , $menu_category == $category ? true : false, "pkg_mgr.php?category={$category}"); $visible_categories[] = $category; $cm_count++; } } $tab_array[] = array(gettext("Other Categories"), $menu_category == "Other" ? true : false, "pkg_mgr.php?category=Other"); } if (!$pkg_info || !is_array($pkg_info)):?>
=gettext("Name")?> | =gettext("Version")?> | =gettext("Description")?> | |
---|---|---|---|
" target="_blank" href="=htmlspecialchars($index['www'])?>"> =htmlspecialchars($index['shortname'])?> | " href="=htmlspecialchars($index['changeloglink'])?>"> =htmlspecialchars($index['version'])?> =htmlspecialchars($index['version'])?> |
=$index['desc']?>
= gettext("Package Dependencies")?>: |
" href="pkg_mgr_install.php?id==$index['name']?>" class="btn btn-success btn-sm">install " href="=htmlspecialchars($index['pkginfolink'])?>" class="btn btn-default btn-sm">info |