ソースを参照

修复install.php在Windows下的权限检测BUG
修复分组管理添加编辑时的BUG

Karson 8 年 前
コミット
0feaecce2d
2 ファイル変更3 行追加3 行削除
  1. 1 1
      public/assets/js/backend/auth/group.js
  2. 2 2
      public/install.php

+ 1 - 1
public/assets/js/backend/auth/group.js

@@ -87,7 +87,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function (
                         return false;
                     }
                     $.ajax({
-                        url: "ajax/roletree",
+                        url: "auth/group/roletree",
                         type: 'post',
                         dataType: 'json',
                         data: {id: id, pid: $(this).val()},

+ 2 - 2
public/install.php

@@ -18,14 +18,14 @@ define('APP_PATH', ROOT_PATH . 'application' . DS);
 // 安装包目录
 define('INSTALL_PATH', APP_PATH . 'admin' . DS . 'command' . DS . 'Install' . DS);
 
-//判断文件或目录是否有写的权限
+// 判断文件或目录是否有写的权限
 function is_really_writable($file)
 {
     if (DIRECTORY_SEPARATOR == '/' AND @ ini_get("safe_mode") == FALSE)
     {
         return is_writable($file);
     }
-    if (!is_file($file) OR ( $fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
+    if (!is_file($file) OR ( $fp = @fopen($file, "w+")) === FALSE)
     {
         return FALSE;
     }