]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: New getUser() and getPwd() functions in Config class
authorDavide Franco <bacula-dev@dflc.ch>
Sun, 17 Jul 2011 19:57:28 +0000 (21:57 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:24 +0000 (14:49 +0200)
gui/bacula-web/includes/cfg/config.class.php

index 76f3e976c4e6b9498f959a9c1746043c6b18d35d..a3398e38a4968b538e4f679d9c77701a77efc9b3 100644 (file)
                
                return $dsn;            
        }
-               
+       
+       public function getUser( $catalog_id )
+       {
+               return $this->catalogs[$catalog_id]['login'];
+       }
+       
+       public function getPwd( $catalog_id )
+       {
+               return $this->catalogs[$catalog_id]['password'];
+       }
+       
        function __destruct()
        {