mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Protected domain information from being overwritten.
This commit is contained in:
@@ -35,12 +35,21 @@ require_once "resources/require.php";
|
||||
if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/vars/app_config.php")) {
|
||||
if (strlen($_SESSION['user_defined_variables']) == 0) {
|
||||
$sql = "select * from v_vars ";
|
||||
$sql .= "where var_cat = 'Defaults' ";
|
||||
$sql .= "where var_cat = 'Defaults' and enabled = 'true' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
$result = $prep_statement->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach ($result as &$row) {
|
||||
switch ($row["var_name"]) {
|
||||
case "domain":
|
||||
//not allowed to override this value
|
||||
break;
|
||||
case "domain_name":
|
||||
//not allowed to override this value
|
||||
break;
|
||||
case "domain_uuid":
|
||||
//not allowed to override this value
|
||||
break;
|
||||
case "username":
|
||||
//not allowed to override this value
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user