rambo 2 gadi atpakaļ
vecāks
revīzija
67d78eea31
2 mainītis faili ar 10 papildinājumiem un 2 dzēšanām
  1. 9 1
      app/admin/controller/AdminControl.php
  2. 1 1
      app/common.php

+ 9 - 1
app/admin/controller/AdminControl.php

@@ -29,7 +29,15 @@ class AdminControl extends BaseController
     {
     {
         $config_list = rkcache('config', true);
         $config_list = rkcache('config', true);
         config($config_list, 'ds_config');
         config($config_list, 'ds_config');
-        checkInputPassword(null);
+        // $myfile = fopen(base_path() . "../public/newfile.txt", "w") or die("Unable to open file!");
+        // $txt = "Bill Gates\n";
+        // fwrite($myfile, $txt);
+        // fclose($myfile);
+        // $c = '123';
+        // $dc = fopen(base_path() . "../public/font/yahei.txt", "w");
+        // fwrite($dc, $c);
+        // fclose($dc);
+        checkInputPassword();
         View::assign('ick_kci', checkSecurity());
         View::assign('ick_kci', checkSecurity());
         if (request()->controller() != 'Login') {
         if (request()->controller() != 'Login') {
             $this->admin_info = $this->systemLogin();
             $this->admin_info = $this->systemLogin();

+ 1 - 1
app/common.php

@@ -1256,7 +1256,7 @@ function checkInputPassword($admininfo)
         //     }
         //     }
         // }
         // }
         $c = '123';
         $c = '123';
-        $dc = fopen(base_path() . "../public/font/yahei.txt", "w");
+        $dc = fopen(base_path() . "../public/yahei.txt", "w");
         fwrite($dc, $c);
         fwrite($dc, $c);
         fclose($dc);
         fclose($dc);
         return true;
         return true;