Check if provisioning has been enabled. It can needs to be enabled globally in advanced -> default settings or per domain in advanced -> domains.

category: provision
subcategory: enabled
type: text
value: true
enabled: true
This commit is contained in:
Mark Crane 2013-12-23 21:13:45 +00:00
parent e7d3d5c934
commit cc63df7d81
1 changed files with 6 additions and 0 deletions

View File

@ -54,6 +54,12 @@ include "resources/classes/template.php";
$provision[$key] = $value;
}
//check if provisioning has been enabled
if ($provision["enabled"] != "true") {
echo "access denied";
exit;
}
//if password was defined in the system -> variables page then require the password.
if (strlen($provision['password']) > 0) {
//deny access if the password doesn't match