From fbcf00372e5ecdddfeae80b1fe2862182aabe125 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 7 Nov 2005 01:20:04 +0000 Subject: [PATCH] * Clean up interface, make consistent * Add php execute command --- usr/local/www/exec.php | 58 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) diff --git a/usr/local/www/exec.php b/usr/local/www/exec.php index 9556a6e019..145d07d5f2 100755 --- a/usr/local/www/exec.php +++ b/usr/local/www/exec.php @@ -201,10 +201,23 @@ if (!isBlank($_POST['txtCommand'])) { puts(""); } + +if (!isBlank($_POST['txtPHPCommand'])) { + puts("
");
+   require_once("config.inc");
+   require_once("functions.inc");
+   echo eval($_POST['txtPHPCommand']);
+   puts("
"); +} + + ?>
+ + + @@ -223,19 +236,58 @@ if (!isBlank($_POST['txtCommand'])) { + + + + + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + +
Execute Shell command
Command:
Download
Download:File to download: +
   
Upload
Upload:File to upload: - + +
   
PHP Execute
Command:
    + +

+ Example: interfaces_carp_bring_up_final(); +