Skip to content
Snippets Groups Projects
Commit 7ca2762d authored by Marius Burkard's avatar Marius Burkard
Browse files

Syntax errors in PHP 5.3.3, fixes #5129

parent eab22adb
No related branches found
No related tags found
No related merge requests found
......@@ -335,7 +335,8 @@ class app {
}
private function get_cookie_domain() {
$proxy_panel_allowed = $this->getconf->get_security_config('permissions')['reverse_proxy_panel_allowed'];
$sec_config = $this->getconf->get_security_config('permissions');
$proxy_panel_allowed = $sec_config['reverse_proxy_panel_allowed'];
if ($proxy_panel_allowed == 'all') {
return '';
}
......
......@@ -165,7 +165,8 @@ class page_action extends tform_actions {
// Set name
if($this->dataRecord['additional'] != '') {
$temp = explode(',', $this->dataRecord['additional'])[0]; // if we have more hostnames the interface-plugin will be used
$temp = explode(',', $this->dataRecord['additional']);
$temp = $temp[0]; // if we have more hostnames the interface-plugin will be used
$temp = trim($temp,'.');
if(trim($temp != '')) $this->dataRecord['name'] = $temp.'.'.$this->dataRecord['name'];
unset($temp);
......
......@@ -40,7 +40,11 @@ $domain_id = $_GET['domain_id'];
if($type == 'create_dkim' && $domain_id != ''){
$dkim_public = $_GET['dkim_public'];
$dkim_selector = $_GET['dkim_selector'];
$domain=@(is_numeric($domain_id))?$app->db->queryOneRecord("SELECT domain FROM domain WHERE domain_id = ? AND ".$app->tform->getAuthSQL('r'), $domain_id)['domain']:$domain_id;
$domain = $domain_id;
if(is_numeric($domain_id)) {
$temp = $app->db->queryOneRecord("SELECT domain FROM domain WHERE domain_id = ? AND ".$app->tform->getAuthSQL('r'), $domain_id);
$domain = $temp['domain'];
}
$rec = $app->db->queryOneRecord("SELECT server_id, domain FROM mail_domain WHERE domain = ?", $domain);
$server_id = $rec['server_id'];
$maildomain = $rec['domain'];
......
......@@ -83,7 +83,8 @@ class list_action extends listform_actions {
} else {
$web_database = $app->db->queryOneRecord("SELECT * FROM web_database WHERE database_id = ?", $rec[$this->idx_key]);
$rec['database'] = $rec['database_name'];
$rec['server_name'] = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ?", $web_database['server_id'])['server_name'];
$temp = $app->db->queryOneRecord("SELECT server_name FROM server WHERE server_id = ?", $web_database['server_id']);
$rec['server_name'] = $temp['server_name'];
$sys_group = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE groupid = ?", $web_database['sys_groupid']);
$client = $app->db->queryOneRecord("SELECT * FROM client WHERE client_id = ?", $sys_group['client_id']);
$rec['client'] = $client['username'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment