mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Bugfix
This commit is contained in:
parent
41cdd65964
commit
768bfd0238
2 changed files with 5 additions and 5 deletions
|
@ -152,11 +152,11 @@ include('header.php');
|
|||
|
||||
if ($continue) {
|
||||
$configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php");
|
||||
if (!$config) {
|
||||
if (!$configUser) {
|
||||
printalert("danger", "Cannot read <em>config_user.php</em>");
|
||||
$continue = false;
|
||||
} 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>");
|
||||
} else {
|
||||
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
|
||||
if ($continue && !file_exists("config_user.php")) {
|
||||
$configUser = file_get_contents($_POST["privatePhpDirectory"] . "/setup/config/config_user.php");
|
||||
if (!$config) {
|
||||
$configUser = file_get_contents($PRIVATE_PHP_PATH . "/setup/config/config_user.php");
|
||||
if (!$configUser) {
|
||||
printalert("danger", "Cannot read <em>config_user.php</em>");
|
||||
$continue = false;
|
||||
} 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>");
|
||||
} else {
|
||||
printalert("danger", "Cannot write to <em>config.php</em>");
|
||||
|
|
Loading…
Reference in a new issue