From e61ed86fe51c5a0300d867a33f50711dbf6b4fe0 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 11 Jan 2012 11:59:56 -0500
Subject: [PATCH] - Force user deletion for jailkit users - Fixed bug in updater that made ispconfig invoices directory unreadable. - Removed passing of variables by reference in ispconfig monitor. - Changed monitor of opensuse updates so that the command does not install them automatically.

---
 server/lib/classes/monitor_tools.inc.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php
index d6cd3a5..00b9759 100644
--- a/server/lib/classes/monitor_tools.inc.php
+++ b/server/lib/classes/monitor_tools.inc.php
@@ -879,7 +879,7 @@
 			/*
 			 * Fetch the output
 			 */
-			$data['output'] = shell_exec('zypper --non-interactive up');
+			$data['output'] = shell_exec('zypper lu');
 		} else {
 			/*
 			 * It is not Debian/Ubuntu, so there is no data and no state
@@ -1722,6 +1722,8 @@
 				// fwrite($fp, "GET / HTTP/1.0\r\n\r\n");
 				$out = "GET / HTTP/1.1\r\n";
 				$out .= "Host: localhost\r\n";
+				$out .= "User-Agent: Mozilla/5.0 (ISPConfig monitor)\r\n";
+				$out .= "Accept: application/xml,application/xhtml+xml,text/html\r\n";
 				$out .= "Connection: Close\r\n\r\n";
 				fwrite($fp, $out);
 				stream_set_timeout($fp, 5); // Timeout after 5 seconds

--
Gitblit v1.9.1