mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
Bugfix
This commit is contained in:
parent
0538ace543
commit
e874bb85ae
2 changed files with 5 additions and 5 deletions
|
@ -152,11 +152,11 @@ include('header.php');
|
||||||
|
|
||||||
if ($continue) {
|
if ($continue) {
|
||||||
$configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php");
|
$configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php");
|
||||||
if (!$config) {
|
if (!$configUser) {
|
||||||
printalert("danger", "Cannot read <em>config_user.php</em>");
|
printalert("danger", "Cannot read <em>config_user.php</em>");
|
||||||
$continue = false;
|
$continue = false;
|
||||||
} else {
|
} else {
|
||||||
if (file_put_contents("config_user.php", $config)) {
|
if (file_put_contents("config_user.php", $configUser)) {
|
||||||
printalert("success", "Copied <em>config_user.php</em>");
|
printalert("success", "Copied <em>config_user.php</em>");
|
||||||
} else {
|
} else {
|
||||||
printalert("danger", "Cannot write to <em>config.php</em>");
|
printalert("danger", "Cannot write to <em>config.php</em>");
|
||||||
|
|
|
@ -81,12 +81,12 @@ if (!isset($NEL_SETUP_VERSION_CONFIGURED)) {
|
||||||
|
|
||||||
// Create config_user.php if it doesn't exist yet
|
// Create config_user.php if it doesn't exist yet
|
||||||
if ($continue && !file_exists("config_user.php")) {
|
if ($continue && !file_exists("config_user.php")) {
|
||||||
$configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php");
|
$configUser = file_get_contents($PRIVATE_PHP_PATH . "/setup/config/config_user.php");
|
||||||
if (!$config) {
|
if (!$configUser) {
|
||||||
printalert("danger", "Cannot read <em>config_user.php</em>");
|
printalert("danger", "Cannot read <em>config_user.php</em>");
|
||||||
$continue = false;
|
$continue = false;
|
||||||
} else {
|
} else {
|
||||||
if (file_put_contents("config_user.php", $config)) {
|
if (file_put_contents("config_user.php", $configUser)) {
|
||||||
printalert("success", "Copied <em>config_user.php</em>");
|
printalert("success", "Copied <em>config_user.php</em>");
|
||||||
} else {
|
} else {
|
||||||
printalert("danger", "Cannot write to <em>config.php</em>");
|
printalert("danger", "Cannot write to <em>config.php</em>");
|
||||||
|
|
Loading…
Reference in a new issue