@@ -132,7 +132,7 @@ public function find_installed_apps() {
132132 if (is_installed ('named ' ) || is_installed ('bind ' ) || is_installed ('bind9 ' )) $ conf ['bind ' ]['installed ' ] = true ;
133133 if (is_installed ('squid ' )) $ conf ['squid ' ]['installed ' ] = true ;
134134 if (is_installed ('nginx ' )) $ conf ['nginx ' ]['installed ' ] = true ;
135- if (is_installed ('iptables ' ) && is_installed ('ufw ' )) $ conf ['ufw ' ]['installed ' ] = true ;
135+ // if(is_installed('iptables') && is_installed('ufw')) $conf['ufw']['installed'] = true;
136136 if (is_installed ('fail2ban-server ' )) $ conf ['fail2ban ' ]['installed ' ] = true ;
137137 if (is_installed ('vzctl ' )) $ conf ['openvz ' ]['installed ' ] = true ;
138138 if (is_dir ("/etc/Bastille " )) $ conf ['bastille ' ]['installed ' ] = true ;
@@ -265,8 +265,8 @@ public function add_database_server_record() {
265265 $ file_server_enabled = ($ conf ['services ' ]['file ' ])?1 :0 ;
266266 $ db_server_enabled = ($ conf ['services ' ]['db ' ])?1 :0 ;
267267 $ vserver_server_enabled = ($ conf ['openvz ' ]['installed ' ])?1 :0 ;
268- $ proxy_server_enabled = ($ conf ['services ' ]['proxy ' ])?1 :0 ;
269- $ firewall_server_enabled = ($ conf ['services ' ]['firewall ' ])?1 :0 ;
268+ $ proxy_server_enabled = (isset ( $ conf [ ' services ' ][ ' proxy ' ]) && $ conf ['services ' ]['proxy ' ])?1 :0 ;
269+ $ firewall_server_enabled = (isset ( $ conf [ ' services ' ][ ' firewall ' ]) && $ conf ['services ' ]['firewall ' ])?1 :0 ;
270270
271271 //** Get the database version number based on the patchfiles
272272 $ found = true ;
@@ -1279,6 +1279,7 @@ public function configure_squid()
12791279 exec ('chown root:root ' .$ conf ["squid " ]["config_dir " ].'/ ' .$ configfile );
12801280 }
12811281
1282+ /*
12821283 public function configure_ufw_firewall()
12831284 {
12841285 $configfile = 'ufw.conf';
@@ -1288,6 +1289,7 @@ public function configure_ufw_firewall()
12881289 exec('chmod 600 /etc/ufw/ufw.conf');
12891290 exec('chown root:root /etc/ufw/ufw.conf');
12901291 }
1292+ */
12911293
12921294 public function configure_firewall () {
12931295 global $ conf ;
0 commit comments