From 9c9382e6949e1366c6adb502b7aacae2c11023f7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 08 Sep 2011 09:42:04 -0400
Subject: [PATCH] Fixed: FS#1709 - Wrong message "Your hard-disk space is going full" in the "Monitor -> Show Disk Usage"

---
 interface/web/sites/web_domain_edit.php |   28 +---------------------------
 1 files changed, 1 insertions(+), 27 deletions(-)

diff --git a/interface/web/sites/web_domain_edit.php b/interface/web/sites/web_domain_edit.php
index 87b57a5..bac49eb 100644
--- a/interface/web/sites/web_domain_edit.php
+++ b/interface/web/sites/web_domain_edit.php
@@ -262,32 +262,6 @@
 			$app->tpl->setVar("domain_option",$domain_select);
 		}
 
-		// Code to display the error log for the site.
-
-		// Query the logfile name
-		$tmp  = $app->db->queryOneRecord("SELECT document_root FROM web_domain WHERE domain_id = ".$this->id);
-		$logfile = $tmp["document_root"]."/log/error.log";
-
-		$lines = count(file($logfile));
-
-		// the "tail" function
-		$handle = @fopen($logfile, "r");
-		if ($handle) {
-			while (($buffer = fgets($handle)) !== false) {
-				$lines = $lines -1;
-				// this constant defines how many lines to display
-				if ($lines<60) $tail .= $buffer; // TODO: We need a newline here.
-			}
-		   	if (!feof($handle)) {
-				$tail =  "Error.";
-		    	}
-			fclose($handle);
-		}
-		
-		// store the tail so it can be displayed in the interface
-		$app->db->query("UPDATE web_domain SET logs = '$tail' WHERE domain_id = ".$this->id);
-
-
 		parent::onShowEnd();
 	}
 
@@ -631,4 +605,4 @@
 $page = new page_action;
 $page->onLoad();
 
-?>
+?>
\ No newline at end of file

--
Gitblit v1.9.1