From: Davide Franco Date: Sun, 17 Jul 2011 19:57:28 +0000 (+0200) Subject: bacula-web: New getUser() and getPwd() functions in Config class X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eea3106db3efdee5514d964a7c001f16caf74892;p=bacula%2Fbacula bacula-web: New getUser() and getPwd() functions in Config class --- diff --git a/gui/bacula-web/includes/cfg/config.class.php b/gui/bacula-web/includes/cfg/config.class.php index 76f3e976c4..a3398e38a4 100644 --- a/gui/bacula-web/includes/cfg/config.class.php +++ b/gui/bacula-web/includes/cfg/config.class.php @@ -105,7 +105,17 @@ 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() {