From 6bd7a6149036e86e7e6c4b155a6c46719ab39c24 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 29 May 2010 14:41:58 -0400 Subject: Only allow installer.php on non pfSense and nanobsd platforms --- usr/local/www/installer.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'usr') 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) { -- cgit v1.1