summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 18:40:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 18:40:59 +0000
commit7ee5da3a68dfeb92be10e4cda87f52de59380d3d (patch)
treef44e20c15404a5aa7adc31cf522c07506361c207 /usr/local/www/pkg_mgr.php
parent2e874c1084d758f75ddfb0881598ac6a239d6e58 (diff)
downloadpfsense-7ee5da3a68dfeb92be10e4cda87f52de59380d3d.zip
pfsense-7ee5da3a68dfeb92be10e4cda87f52de59380d3d.tar.gz
Alert user that we could not contact pfsense.com instead of no packages available for installation.
Ticket #228
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-xusr/local/www/pkg_mgr.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 748975d..1d31029 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -102,7 +102,12 @@ include("fbegin.inc");
<?php
if(!$pkg_info) {
- echo "<tr><td colspan=\"5\"><center>There are currently no available packages for installation.</td></tr>";
+ $ip = gethostbyname("www.pfsense.com");
+ if($ip == "") {
+ echo "<tr><td colspan=\"5\"><center>Could not contact pfsense.com. Check your dns/connection settings.</td></tr>";
+ } else {
+ echo "<tr><td colspan=\"5\"><center>There are currently no available packages for installation.</td></tr>";
+ }
} else {
$pkgs = array();
$instpkgs = array();
OpenPOWER on IntegriCloud