mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-11 17:59:02 +00:00
changed it to error on bad permissions copying config.php
This commit is contained in:
parent
6ff6c3d8d8
commit
cf51aecb08
1 changed files with 11 additions and 9 deletions
|
@ -19,10 +19,19 @@
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
ini_set( "display_errors", true );
|
||||||
|
error_reporting( E_ALL );
|
||||||
|
|
||||||
if (file_exists('../config.php')) {
|
if (file_exists('../config.php')) {
|
||||||
require( '../config.php' );
|
require( '../config.php' );
|
||||||
} else {
|
} else {
|
||||||
require( '../config.default.php' );
|
//copy config.default.php to config.php!
|
||||||
|
if (!file_exists('../config.php')) {
|
||||||
|
if (!copy('../config.default.php', '../config.php')) {
|
||||||
|
echo "failed to copy ../config.php ...\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//var used to access the DB;
|
//var used to access the DB;
|
||||||
|
@ -1384,13 +1393,6 @@
|
||||||
print "There was an error while creating the admin account! ";
|
print "There was an error while creating the admin account! ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//copy config.default.php to config.php!
|
|
||||||
if (!file_exists('../config.php')) {
|
|
||||||
if (!copy('../config.default.php', '../config.php')) {
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue