diff --git a/htdocs/index.php b/htdocs/index.php index 5e90a4e..71681f7 100755 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -30,7 +30,7 @@ header('Content-Type: text/html; charset=utf-8'); /** * Requires */ -require_once EVOADMIN_BASE . 'common.php'; +require_once EVOADMIN_BASE . '../inc/common.php'; $uri = $_SERVER['REQUEST_URI']; diff --git a/htdocs/common.php b/inc/common.php similarity index 90% rename from htdocs/common.php rename to inc/common.php index 7ae18b9..129ae90 100644 --- a/htdocs/common.php +++ b/inc/common.php @@ -1,5 +1,4 @@ 1; } +/** + * Webadd + * + * @return boolean - True when it's a multi PHP system + */ +function run_webadd_cmd($command) { + global $conf; + + $cmd = 'web-add.sh '. $command; + + $data_output = null; + $exec_return = null; + sudoexec($cmd, $data_output, $exec_return); + + + return $data_output; +} + + /** * Includes */