Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bakeiro committed Dec 7, 2020
1 parent cbc3381 commit 780a8c5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions post-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
$loaded_all_dependencies = false;
}

$enough_php_version = version_compare(phpversion(), '7.0', '>') ? true : false;
$enough_php_version = version_compare(phpversion(), '7.1', '>') ? true : false;

require_once "./system/library/Util.php";
$config_string = file_get_contents("./system/config/_config.php");
Expand All @@ -35,14 +35,10 @@
$token_pass = $util->generateSimpleToken(32);
$config_string = str_replace("ThisIsMySecretPass", $token_pass, $config_string);

file_put_contents("./system/config/_config.php", $config_string);
file_put_contents("./system/config/config.php", $config_string);

rename("./system/config/_config.php", "./system/config/config.php");
rename("./system/config/_ini.php", "./system/config/ini.php");

mkdir("./system/writable");
mkdir("./system/writable/logs");
mkdir("./system/writable/upload");
rename("./system/config/config.php", "./system/config/config.php");
rename("./system/config/ini.php", "./system/config/ini.php");

unlink("README.md");
unlink("LICENSE.md");

0 comments on commit 780a8c5

Please sign in to comment.