summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-29 14:41:58 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-29 15:17:12 -0400
commit6bd7a6149036e86e7e6c4b155a6c46719ab39c24 (patch)
treef020b461e704d134d2c326ef5456f2bc5aa96943 /usr
parentfda6084959b0cbd010e97330daeccf63b3533902 (diff)
downloadpfsense-6bd7a6149036e86e7e6c4b155a6c46719ab39c24.zip
pfsense-6bd7a6149036e86e7e6c4b155a6c46719ab39c24.tar.gz
Only allow installer.php on non pfSense and nanobsd platforms
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/installer.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/installer.php b/usr/local/www/installer.php
index 534ff63..e3663bd 100644
--- a/usr/local/www/installer.php
+++ b/usr/local/www/installer.php
@@ -29,6 +29,11 @@
require("guiconfig.inc");
+if($g['platform'] == "pfSense" or $g['platform'] == "nanobsd") {
+ Header("Location: /index.php");
+ exit;
+}
+
function write_out_pc_sysinstaller_config($disk) {
$fd = fopen("/PCBSD/pc-sysinstall/examples/pfSense-install.cfg", "w");
if(!$fd) {
OpenPOWER on IntegriCloud