You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$records = $this->db->queryAllRecords('SELECT * FROM '.$conf['mysql']['master_database'].'.server_ip WHERE server_id = '.$conf['server_id']." AND virtualhost = 'y'");
716
+
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
717
717
$ip_addresses = array();
718
718
719
719
if(is_array($records) && count($records) > 0) {
@@ -799,7 +799,7 @@ public function configure_nginx(){
799
799
if(!is_group('sshusers')) caselog($command.' &> /dev/null 2> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
800
800
}
801
801
802
-
publicfunctionconfigure_firewall()
802
+
publicfunctionconfigure_bastille_firewall()
803
803
{
804
804
global$conf;
805
805
@@ -821,7 +821,7 @@ public function configure_firewall()
821
821
$tcp_public_services = '';
822
822
$udp_public_services = '';
823
823
824
-
$row = $this->db->queryOneRecord('SELECT * FROM '.$conf["mysql"]["database"].'.firewall WHERE server_id = '.intval($conf['server_id']));
824
+
$row = $this->db->queryOneRecord('SELECT * FROM ?? WHERE server_id = ?', $conf["mysql"]["database"] . '.firewall', $conf['server_id']);
$records = $this->db->queryAllRecords('SELECT * FROM '.$conf['mysql']['master_database'].'.server_ip WHERE server_id = '.$conf['server_id']." AND virtualhost = 'y'");
572
+
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
588
573
$ip_addresses = array();
589
574
590
575
if(is_array($records) && count($records) > 0) {
@@ -933,13 +918,11 @@ public function install_ispconfig()
$records = $this->db->queryAllRecords('SELECT * FROM '.$conf['mysql']['master_database'].'.server_ip WHERE server_id = '.$conf['server_id']." AND virtualhost = 'y'");
748
+
$records = $this->db->queryAllRecords("SELECT * FROM ?? WHERE server_id = ? AND virtualhost = 'y'", $conf['mysql']['master_database'] . '.server_ip', $conf['server_id']);
749
749
$ip_addresses = array();
750
750
751
751
if(is_array($records) && count($records) > 0) {
@@ -873,7 +873,7 @@ public function configure_nginx(){
873
873
if(!is_group('sshusers')) caselog($command.' &> /dev/null 2> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
874
874
}
875
875
876
-
publicfunctionconfigure_firewall()
876
+
publicfunctionconfigure_bastille_firewall()
877
877
{
878
878
global$conf;
879
879
@@ -895,7 +895,7 @@ public function configure_firewall()
895
895
$tcp_public_services = '';
896
896
$udp_public_services = '';
897
897
898
-
$row = $this->db->queryOneRecord('SELECT * FROM '.$conf["mysql"]["database"].'.firewall WHERE server_id = '.intval($conf['server_id']));
898
+
$row = $this->db->queryOneRecord('SELECT * FROM ?? WHERE server_id = ?', $conf["mysql"]["database"] . '.firewall', $conf['server_id']);
0 commit comments