mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
fix for new install
This commit is contained in:
parent
9db3e45ec4
commit
5e150397a1
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
error_reporting( E_ALL );
|
error_reporting( E_ALL );
|
||||||
|
|
||||||
if (file_exists('../config.php')) {
|
if (file_exists('../config.php')) {
|
||||||
require( '../config.php' );
|
require_once( '../config.php' );
|
||||||
} else {
|
} else {
|
||||||
//copy config.default.php to config.php!
|
//copy config.default.php to config.php!
|
||||||
if (!file_exists('../config.php')) {
|
if (!file_exists('../config.php')) {
|
||||||
|
@ -31,6 +31,8 @@
|
||||||
echo "failed to copy ../config.php ...\n";
|
echo "failed to copy ../config.php ...\n";
|
||||||
echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> ';
|
echo '<br><a href="'.$_SERVER['REQUEST_URI'].'" >Reload!</a> ';
|
||||||
exit;
|
exit;
|
||||||
|
} else {
|
||||||
|
require_once( '../config.php' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue