Remove app_defaults.php a little more
This commit is contained in:
@@ -24,8 +24,7 @@
|
|||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//move the smtp settings from v_settings to the v_default_settings table
|
if ($domains_processed == 1) {
|
||||||
if (count($_SESSION['email']) == 0 && $domains_processed == 1) {
|
|
||||||
//get the data from the database
|
//get the data from the database
|
||||||
$sql = "select * from v_settings ";
|
$sql = "select * from v_settings ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
@@ -78,6 +77,8 @@ if (count($_SESSION['email']) == 0 && $domains_processed == 1) {
|
|||||||
unset($sql);
|
unset($sql);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
//move the smtp settings from v_settings to the v_default_settings table
|
||||||
|
if (count($_SESSION['email']) == 0) {
|
||||||
//set the variable
|
//set the variable
|
||||||
$smtp[]['smtp_host'] = check_str($row['smtp_host']);
|
$smtp[]['smtp_host'] = check_str($row['smtp_host']);
|
||||||
$smtp[]['smtp_secure'] = check_str($row['smtp_secure']);
|
$smtp[]['smtp_secure'] = check_str($row['smtp_secure']);
|
||||||
@@ -117,5 +118,6 @@ if (count($_SESSION['email']) == 0 && $domains_processed == 1) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user