From 261e6b281964c46e7049f2b283d974ac9738a89b Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sun, 24 Jul 2011 12:22:04 +0200 Subject: [PATCH] bacula-web: New parameter client for getStoredFiles() function in bweb class --- gui/bacula-web/includes/bweb.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/bacula-web/includes/bweb.inc.php b/gui/bacula-web/includes/bweb.inc.php index cacd6c9421..8f31664dd5 100644 --- a/gui/bacula-web/includes/bweb.inc.php +++ b/gui/bacula-web/includes/bweb.inc.php @@ -484,7 +484,7 @@ class Bweb // $end_timestamp: end date in unix timestamp format // $job_name: optional job name - public function getStoredBytes( $start_timestamp, $end_timestamp, $job_name = 'ALL' ) + public function getStoredBytes( $start_timestamp, $end_timestamp, $job_name = 'ALL', $client = 'ALL' ) { $query = ''; $result = ''; @@ -507,6 +507,9 @@ class Bweb if( $job_name != 'ALL' ) $query .= " AND name = '$job_name'"; + if( $client != 'ALL' ) + $query .= " AND clientid = '$client'"; + // Execute SQL statment try { $result = $this->db_link->runQuery( $query ); -- 2.39.5