From 07bf5100dce24ea3ae869fe59b61772870a80962 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Sat, 7 Mar 2009 16:48:33 +0000 Subject: [PATCH] Fixed php notices in libraries and improved opensuse docs. --- docs/INSTALL_OPENSUSE_11_1.txt | 10 ++++++++-- interface/web/monitor/tools.inc.php | 2 +- server/lib/classes/modules.inc.php | 2 +- server/lib/classes/plugins.inc.php | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/INSTALL_OPENSUSE_11_1.txt b/docs/INSTALL_OPENSUSE_11_1.txt index 3fbd04d243..ee9bb1fcbc 100644 --- a/docs/INSTALL_OPENSUSE_11_1.txt +++ b/docs/INSTALL_OPENSUSE_11_1.txt @@ -8,11 +8,13 @@ Installation It is recommended to use a clean (fresh) OpenSUSE installatiom where you selected to install just the minimal packages. A Gnome or KDE desktop is not needed and will just slow down the server. Then follow the steps below to setup your server with ISPConfig 3: +The following guide is for the 32Bit version of openSUSE, for 64Bit installations the package names may differ especially the names of downloaded rpm files. + Install some basic packes and the compilers that we need later yast2 -i findutils readline libgcc glibc-devel findutils-locate gcc flex lynx compat-readline4 db-devel wget gcc-c++ make vim telnet cron iptables iputils man man-pages -1) Install Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): +1) Istall Postfix, Courier, Saslauthd, MySQL, phpMyAdmin with the following command line (on one line!): yast2 -i postfix postfix-mysql mysql mysql-client courier-imap courier-authlib courier-authlib-mysql python cron cyrus-sasl cyrus-sasl-crammd5 cyrus-sasl-digestmd5 cyrus-sasl-gssapi cyrus-sasl-otp cyrus-sasl-plain cyrus-sasl-saslauthd libmysqlclient-devel @@ -127,10 +129,14 @@ tar xvfz vlogger-1.3.tar.gz mv vlogger-1.3/vlogger /usr/sbin/ rm -rf vlogger* +6.1 Install fail2ban + +rpm -i http://download.opensuse.org/repositories/home:/leonardocf/openSUSE_11.0/i586/fail2ban-0.8.2-5.2.i586.rpm + yast2 -i webalizer perl-DateManip -6.1) Cleanup +6.2) Cleanup rm -f /tmp/*.rpm diff --git a/interface/web/monitor/tools.inc.php b/interface/web/monitor/tools.inc.php index 08007585ff..8e92ee3ad4 100644 --- a/interface/web/monitor/tools.inc.php +++ b/interface/web/monitor/tools.inc.php @@ -412,7 +412,7 @@ function showFail2ban() if ($data == ''){ $html .= '

'. 'fail2ban is not installed at this server.
' . - 'See more (for debian) here...'. + 'See more (for debian) here...'. '

'; } else { diff --git a/server/lib/classes/modules.inc.php b/server/lib/classes/modules.inc.php index b9b875c63c..eb8e563c72 100644 --- a/server/lib/classes/modules.inc.php +++ b/server/lib/classes/modules.inc.php @@ -192,7 +192,7 @@ class modules { global $app; // Get the hooks for this table - $hooks = $this->notification_hooks[$table_name]; + $hooks = (isset($this->notification_hooks[$table_name]))?$this->notification_hooks[$table_name]:''; if($this->debug) $app->log("Raised TableHook for table: '$table_name'",LOGLEVEL_DEBUG); if(is_array($hooks)) { diff --git a/server/lib/classes/plugins.inc.php b/server/lib/classes/plugins.inc.php index beb7868c3d..826944a977 100644 --- a/server/lib/classes/plugins.inc.php +++ b/server/lib/classes/plugins.inc.php @@ -107,7 +107,7 @@ class plugins { global $app; // Get the subscriptions for this event - $events = $this->subscribed_events[$event_name]; + $events = (isset($this->subscribed_events[$event_name]))?$this->subscribed_events[$event_name]:''; if($this->debug) $app->log("Raised event: '$event_name'",LOGLEVEL_DEBUG); if(is_array($events)) { -- GitLab