Update exectool.php
This commit is contained in:
parent
313d4d0598
commit
5e1879682b
|
@ -7,11 +7,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
exec_test() executes a command (like "whoami") with different
|
* exec_test() executes a command (like "whoami") with different
|
||||||
PHP functions in order to figure out which fuctions are supported
|
* PHP functions in order to figure out which fuctions are supported
|
||||||
in the webserver configuration. The function execTests returns an array, which
|
* in the webserver configuration. The function execTests returns an array, which
|
||||||
contains names of all successful tested PHP functions.
|
* contains names of all successful tested PHP functions.
|
||||||
*/
|
*/
|
||||||
|
if(!function_exists("exec_test")) {
|
||||||
function exec_test() {
|
function exec_test() {
|
||||||
$cmd = "whoami";
|
$cmd = "whoami";
|
||||||
$cmdPath = "/usr/bin/whoami";
|
$cmdPath = "/usr/bin/whoami";
|
||||||
|
@ -96,10 +97,12 @@ function exec_test() {
|
||||||
|
|
||||||
return $methodArray;
|
return $methodArray;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
exec_command() executes a command (like "whoami") with the submited method
|
* exec_command() executes a command (like "whoami") with the submited method
|
||||||
*/
|
*/
|
||||||
|
if(!function_exists("exec_command")) {
|
||||||
function exec_command($command, $method) {
|
function exec_command($command, $method) {
|
||||||
if ($method == "") {
|
if ($method == "") {
|
||||||
|
|
||||||
|
@ -167,3 +170,4 @@ function exec_command($command, $method) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user