Mercurial > hg > fapweb
diff faptool.php @ 1019:22b6442d5cb3
Add error messages for missing mconfig.inc.php.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Nov 2015 19:11:40 +0200 |
parents | 720078ca799e |
children | 2a96426159f1 |
line wrap: on
line diff
--- a/faptool.php Thu Nov 05 18:55:40 2015 +0200 +++ b/faptool.php Thu Nov 05 19:11:40 2015 +0200 @@ -5,6 +5,14 @@ // Special entry/preview/etc backend management commandline utility // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) // +if (!file_exists("mconfig.inc.php")) +{ + die( + "ERROR: Missing site configuration file. Please copy ". + "'mconfig.inc.php.example' to 'mconfig.inc.php' and ". + "edit it as needed.\n"); +} + require_once "mconfig.inc.php"; require_once "msite.inc.php";