From eea3106db3efdee5514d964a7c001f16caf74892 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Sun, 17 Jul 2011 21:57:28 +0200 Subject: [PATCH] bacula-web: New getUser() and getPwd() functions in Config class --- gui/bacula-web/includes/cfg/config.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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() { -- 2.39.5