summaryrefslogtreecommitdiffstats
path: root/usr/local/www/edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/edit.php')
-rwxr-xr-xusr/local/www/edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php
index 6a5f450..de5fe5e 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")) {
OpenPOWER on IntegriCloud