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("");
+}
+
+
?>