From 86241bd24d54b5baf2fe0f76a1350445f0d180f9 Mon Sep 17 00:00:00 2001
From: Dominik <info@profi-webdesign.net>
Date: Fri, 04 Apr 2014 17:08:20 -0400
Subject: [PATCH] Backups können bei vhost-domains nicht mehr gemacht werden

---
 interface/lib/classes/functions.inc.php |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php
index 48aa361..8a287a4 100644
--- a/interface/lib/classes/functions.inc.php
+++ b/interface/lib/classes/functions.inc.php
@@ -229,7 +229,8 @@
 				if(preg_match($regex, $result['ip'])) $ips[] = $result['ip'];
 			}
 		}
-
+		
+		/*
 		$results = $app->db->queryAllRecords("SELECT xfer FROM dns_slave WHERE xfer != ''");
 		if(!empty($results) && is_array($results)){
 			foreach($results as $result){
@@ -260,6 +261,8 @@
 				}
 			}
 		}
+		*/
+		
 		$results = $app->db->queryAllRecords("SELECT remote_ips FROM web_database WHERE remote_ips != ''");
 		if(!empty($results) && is_array($results)){
 			foreach($results as $result){
@@ -309,11 +312,9 @@
 	 * @param int precicion - after-comma-numbers (default: 2)
 	 * @return string - formated bytes
 	 */
-
-
 	public function formatBytes($size, $precision = 2) {
 		$base=log($size)/log(1024);
-		$suffixes=array('', 'k', 'M', 'G', 'T');
+		$suffixes=array('', ' kB', ' MB', ' GB', ' TB');
 		return round(pow(1024, $base-floor($base)), $precision).$suffixes[floor($base)];
 	}
 

--
Gitblit v1.9.1