, Manuel Kasper and Jonathan Watt . 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. */ require_once("functions.inc"); require_once("guiconfig.inc"); require_once('notices.inc'); include_once("includes/functions.inc.php"); if($_REQUEST['getupdatestatus']) { if(isset($config['system']['firmware']['disablecheck'])) { exit; } if(isset($config['system']['firmware']['alturl']['enable'])) $updater_url = "{$config['system']['firmware']['alturl']['firmwareurl']}"; else $updater_url = $g['update_url']; $nanosize = ""; if ($g['platform'] == "nanobsd") { if (file_exists("/etc/nano_use_vga.txt")) $nanosize = "-nanobsd-vga-"; else $nanosize = "-nanobsd-"; $nanosize .= strtolower(trim(file_get_contents("/etc/nanosize.txt"))); } @unlink("/tmp/{$g['product_name']}_version"); if (download_file_with_progress_bar("{$updater_url}/version{$nanosize}", "/tmp/{$g['product_name']}_version", 'read_body', 5, 5) === true) $remote_version = trim(@file_get_contents("/tmp/{$g['product_name']}_version")); if(empty($remote_version)) echo "

Unable to check for updates."; else { $current_installed_buildtime = trim(file_get_contents("/etc/version.buildtime")); $current_installed_version = trim(file_get_contents("/etc/version")); if(!$remote_version) { echo "

Unable to check for updates."; } else { $needs_system_upgrade = false; if (pfs_version_compare($current_installed_buildtime, $current_installed_version, $remote_version) == -1) { echo "
Update available. Click Here to view update."; echo ""; } else echo "
You are on the latest version."; } } exit; } $curcfg = $config['system']['firmware']; ?>
Name
Version ()
built on

...
Platform
NanoBSD Boot Slice /

Next Boot:
/
CPU Type
1): ?>
CPUs:
Hardware crypto
Uptime
DNS server(s) "; } ?>
Last config change
State table size left barred bargray barright bar
()
Show states
MBUF Usage left barred bargray barright bar
()
Temperature left barred bargray barright bar  
Load average
CPU usage left barred bargray barright bar  
(Updating in 10 seconds)
Memory usage left barred bargray barright bar  
of MB
SWAP usage left barred bargray barright bar  
of MB
Disk usage /images/misc/bar_left.gif" height="15" width="4" border="0" align="middle" alt="left bar" />/images/misc/bar_blue.gif" height="15" width="" border="0" align="middle" alt="red bar" />/images/misc/bar_gray.gif" height="15" width="" border="0" align="middle" alt="gray bar" />/images/misc/bar_right.gif" height="15" width="5" border="0" align="middle" alt="right bar" />  
of