From 07bf5100dce24ea3ae869fe59b61772870a80962 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 07 Mar 2009 11:48:33 -0500 Subject: [PATCH] Fixed php notices in libraries and improved opensuse docs. --- interface/web/monitor/tools.inc.php | 2 +- server/lib/classes/modules.inc.php | 2 +- server/lib/classes/plugins.inc.php | 2 +- docs/INSTALL_OPENSUSE_11_1.txt | 10 ++++++++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/INSTALL_OPENSUSE_11_1.txt b/docs/INSTALL_OPENSUSE_11_1.txt index 3fbd04d..ee9bb1f 100644 --- a/docs/INSTALL_OPENSUSE_11_1.txt +++ b/docs/INSTALL_OPENSUSE_11_1.txt @@ -8,11 +8,13 @@ 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 @@ 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 0800758..8e92ee3 100644 --- a/interface/web/monitor/tools.inc.php +++ b/interface/web/monitor/tools.inc.php @@ -412,7 +412,7 @@ if ($data == ''){ $html .= '<p>'. 'fail2ban is not installed at this server.<br />' . - 'See more (for debian) <a href="http://www.howtoforge.net/fail2ban_debian_etch" target="htf">here...</a>'. + 'See more (for debian) <a href="http://www.howtoforge.com/fail2ban_debian_etch" target="htf">here...</a>'. '</p>'; } else { diff --git a/server/lib/classes/modules.inc.php b/server/lib/classes/modules.inc.php index b9b875c..eb8e563 100644 --- a/server/lib/classes/modules.inc.php +++ b/server/lib/classes/modules.inc.php @@ -192,7 +192,7 @@ 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 beb7868..826944a 100644 --- a/server/lib/classes/plugins.inc.php +++ b/server/lib/classes/plugins.inc.php @@ -107,7 +107,7 @@ 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)) { -- Gitblit v1.9.1