Package Name |
Category |
Status |
Package Info |
Description |
There are currently no packages available for installation. | ";
} else {
$installed_pfsense_version = rtrim(file_get_contents("/etc/version"));
$dash = strpos($installed_pfsense_version, "-");
$installed_pfsense_version = substr($installed_pfsense_version, 0, $dash);
$pkgs = array();
$instpkgs = array();
if($config['installedpackages']['package'] != "")
foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
$pkg_names = array_keys($pkg_info);
$pkg_keys = array();
foreach($pkg_names as $name)
if(!in_array($name, $instpkgs)) $pkg_keys[] = $name;
$pkg_keys = msort($pkg_keys);
if(count($pkg_keys) != 0) {
foreach($pkg_keys as $key) {
$index = &$pkg_info[$key];
if(in_array($index['name'], $instpkgs))
continue;
if($g['platform'] == "nanobsd")
if($index['noembedded'])
continue;
$dash = strpos($index['required_version'], "-");
$index['major_version'] = substr($index['required_version'], 0, $dash);
if ($version <> "HEAD" &&
$index['required_version'] == "HEAD" &&
$requested_version <> "other")
continue;
if (empty($index['required_version']) &&
$requested_version <> "none")
continue;
if($index['major_version'] > $major &&
$requested_version <> "other")
continue;
if(isset($index['major_version']) &&
$requested_version == "none")
continue;
if($index['major_version'] == $major &&
$requested_version == "other")
continue;
/* Package is for a newer version, lets skip */
if($installed_pfsense_version < $index['required_version'])
continue;
if($index['maximum_version'])
if($installed_pfsense_version > $index['maximum_version'])
continue;
?>
= $index['name'] ?>
|
= $index['category'] ?>
|
= $index['status'] ?>
= $index['version'] ?>
platform: = $index['required_version'] ?>
= $index['maximum_version']; ?>
|
Package Info";
} else {
echo "No info, check the forum";
}
?>
|
= $index['descr'] ?>
|
|
There are currently no packages available for installation. | ';
}
}
?>