Mercurial > hg > fapweb
changeset 1024:2a96426159f1
Fix configuration file checking.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 06 Nov 2015 21:41:27 +0200 |
parents | bef88b4e99d7 |
children | a5af0dbf55b5 |
files | faptool.php managedb.php |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/faptool.php Fri Nov 06 21:34:58 2015 +0200 +++ b/faptool.php Fri Nov 06 21:41:27 2015 +0200 @@ -5,7 +5,7 @@ // Special entry/preview/etc backend management commandline utility // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) // -if (!file_exists("mconfig.inc.php")) +if (!file_exists(realpath(dirname(__FILE__))."/mconfig.inc.php")) { die( "ERROR: Missing site configuration file. Please copy ".
--- a/managedb.php Fri Nov 06 21:34:58 2015 +0200 +++ b/managedb.php Fri Nov 06 21:41:27 2015 +0200 @@ -4,7 +4,7 @@ // FAPWeb Database management utility // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) // -if (!file_exists("mconfig.inc.php")) +if (!file_exists(realpath(dirname(__FILE__))."/mconfig.inc.php")) { die( "ERROR: Missing site configuration file. Please copy ".