comparison managedb.php @ 1024:2a96426159f1

Fix configuration file checking.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Nov 2015 21:41:27 +0200
parents 22b6442d5cb3
children d8b14f80a6f0
comparison
equal deleted inserted replaced
1023:bef88b4e99d7 1024:2a96426159f1
2 <? 2 <?
3 // 3 //
4 // FAPWeb Database management utility 4 // FAPWeb Database management utility
5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) 5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP)
6 // 6 //
7 if (!file_exists("mconfig.inc.php")) 7 if (!file_exists(realpath(dirname(__FILE__))."/mconfig.inc.php"))
8 { 8 {
9 die( 9 die(
10 "ERROR: Missing site configuration file. Please copy ". 10 "ERROR: Missing site configuration file. Please copy ".
11 "'mconfig.inc.php.example' to 'mconfig.inc.php' and ". 11 "'mconfig.inc.php.example' to 'mconfig.inc.php' and ".
12 "edit it as needed.\n"); 12 "edit it as needed.\n");