diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 18:40:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 18:40:59 +0000 |
commit | 7ee5da3a68dfeb92be10e4cda87f52de59380d3d (patch) | |
tree | f44e20c15404a5aa7adc31cf522c07506361c207 /usr/local/www/pkg_mgr.php | |
parent | 2e874c1084d758f75ddfb0881598ac6a239d6e58 (diff) | |
download | pfsense-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-x | usr/local/www/pkg_mgr.php | 7 |
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(); |