From f14e4c2a8c787404fa548bd10d0aaecfd697b186 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 2 Jul 2005 06:16:21 +0000 Subject: [PATCH] Add .inc files --- usr/local/www/edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 6a5f4508f0..de5fe5e9e6 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -38,8 +38,10 @@ if (($_POST['submit'] == "Load") && file_exists($_POST['savetopath'])) { $loadmsg = "Loaded text from " . $_POST['savetopath']; if(stristr($_POST['savetopath'], ".php") == true) $language = "php"; + else if(stristr($_POST['savetopath'], ".inc") == true) + $language = "php"; else if(stristr($_POST['savetopath'], ".sh") == true) - $language = "php"; + $language = "core"; else if(stristr($_POST['savetopath'], ".xml") == true) $language = "xml"; } else if (($_POST['submit'] == "Save")) {