From 86317469f74cb2bb9918d0e375fb5c9d4f06754d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 7 Oct 2004 10:16:53 +0000 Subject: [PATCH] added check if config.cfg is present --- lam/templates/config/profmanage.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lam/templates/config/profmanage.php b/lam/templates/config/profmanage.php index 0828351f..d623818b 100644 --- a/lam/templates/config/profmanage.php +++ b/lam/templates/config/profmanage.php @@ -60,9 +60,9 @@ echo $_SESSION['header']; password != $_POST['passwd']) { $error = _("Master password is wrong!"); @@ -142,6 +142,14 @@ if ($_POST['submit']) { else exit; } + +// check if config.cfg is valid +if (!isset($cfg->default) && !isset($cfg->password)) { + StatusMessage("ERROR", _("Please set up your master configuration file (config/config.cfg) first!"), ""); + echo "\n\n"; + die(); +} + ?>