Mercurial > hg > fapweb
comparison faptool.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 | 37901bdbc545 |
comparison
equal
deleted
inserted
replaced
1023:bef88b4e99d7 | 1024:2a96426159f1 |
---|---|
3 // | 3 // |
4 // FAPWeb - Simple Web-based Demoparty Management System | 4 // FAPWeb - Simple Web-based Demoparty Management System |
5 // Special entry/preview/etc backend management commandline utility | 5 // Special entry/preview/etc backend management commandline utility |
6 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) | 6 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) |
7 // | 7 // |
8 if (!file_exists("mconfig.inc.php")) | 8 if (!file_exists(realpath(dirname(__FILE__))."/mconfig.inc.php")) |
9 { | 9 { |
10 die( | 10 die( |
11 "ERROR: Missing site configuration file. Please copy ". | 11 "ERROR: Missing site configuration file. Please copy ". |
12 "'mconfig.inc.php.example' to 'mconfig.inc.php' and ". | 12 "'mconfig.inc.php.example' to 'mconfig.inc.php' and ". |
13 "edit it as needed.\n"); | 13 "edit it as needed.\n"); |