From: Davide Franco Date: Sun, 24 Jul 2011 10:22:04 +0000 (+0200) Subject: bacula-web: New parameter client for getStoredFiles() function in bweb class X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=261e6b281964c46e7049f2b283d974ac9738a89b;p=bacula%2Fbacula bacula-web: New parameter client for getStoredFiles() function in bweb class --- 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 );