Copyright (C) 2013 Marcello Coutinho All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* pfSense_BUILDER_BINARIES: /sbin/ifconfig pfSense_MODULE: pkgs */ ##|+PRIV ##|*IDENT=page-system-packagemanager ##|*NAME=System: Package Manager page ##|*DESCR=Allow access to the 'System: Package Manager' page. ##|*MATCH=pkg_mgr.php* ##|-PRIV ini_set('max_execution_time', '0'); require_once("globals.inc"); require_once("guiconfig.inc"); require_once("pkg-utils.inc"); /* if upgrade in progress, alert user */ if (is_subsystem_dirty('packagelock')) { $pgtitle = array(gettext("System"), gettext("Package Manager")); include("head.inc"); echo "\n"; include("fbegin.inc"); echo "Please wait while packages are reinstalled in the background."; include("fend.inc"); echo ""; echo ""; exit; } function domTT_title($title_msg) { if (!empty($title_msg)) { $title_msg = preg_replace("/\s+/", " ", $title_msg); $title_msg = preg_replace("/'/", "\'", $title_msg); echo "onmouseout=\"this.style.color = ''; domTT_mouseout(this, event);\" onmouseover=\"domTT_activate(this, event, 'content', '{$title_msg}', 'trail', true, 'delay', 0, 'fade', 'both', 'fadeMax', 93, 'styleClass', 'niceTitle');\""; } } $pkg_info = get_pkg_info(); $closehead = false; $pgtitle = array(gettext("System"), gettext("Package Manager")); include("head.inc"); ?>
$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 (count($categories) > 1) { display_top_tabs($tab_array); } } ?>
'.gettext("Category").''."\n"; } ?> "; } else { if (is_array($pkg_info)) { foreach ($pkg_info as $index): if (get_package_id($index['name']) >= 0) { continue; } $shortname = $index['name']; pkg_remove_prefix($shortname); /* Check package info link */ if ($index['www'] && $index['www'] != 'UNKNOWN') { $pkginfolink = $index['www']; $pkginfo=gettext("Package info"); } else { $pkginfolink = "https://forum.pfsense.org/index.php/board,15.0.html"; $pkginfo=gettext("No package info, check the forum"); } if ($menu_category == "All" || $index['categories'][0] == $menu_category || ($menu_category == "Other" && !in_array($index['categories'][0], $visible_categories))): ?> '.gettext($index['categories'][0]).''."\n"; } ?> "; } /* if (is_array($pkg_info)) */ } /* if (!$pkg_info) */ ?>
" class="listhdr"> " class="listhdr">  
" . gettext("There are currently no packages available for installation.") . "
> > ', $index['desc']);?>

src="./themes//images/icons/icon_plus.gif" width="17" height="17" border="0" alt="add" />
" . gettext("There are currently no packages available for installation.") . "