]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New parameter client for getStoredBytes() function in bweb class
authorDavide Franco <bacula-dev@dflc.ch>
Sun, 24 Jul 2011 09:37:49 +0000 (11:37 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:27 +0000 (14:49 +0200)
gui/bacula-web/includes/bweb.inc.php

index de0580b30461cd0e8b51dfe1da4602aefb42d578..cacd6c94219a59fffa393dca7a1f360e7c78f97e 100644 (file)
@@ -439,7 +439,7 @@ class Bweb
                return $vols['vols_count'];
        }
        
-       public function getStoredFiles( $start_timestamp, $end_timestamp, $job_name = 'ALL' )
+       public function getStoredFiles( $start_timestamp, $end_timestamp, $job_name = 'ALL', $client = 'ALL' )
        {
                $query = "";
                $start_date = date( "Y-m-d H:i:s", $start_timestamp);   
@@ -461,6 +461,9 @@ class Bweb
                if( $job_name != 'ALL' ) 
                        $query .= " AND name = '$job_name'";
                
+               if( $client != 'ALL' )
+                       $query .= " AND clientid = '$client'";
+               
                // Execute query
                try {
                        $result = $this->db_link->runQuery( $query );