修复install.php在Windows下的权限检测BUG
修复分组管理添加编辑时的BUG
正在显示
2 个修改的文件
包含
3 行增加
和
3 行删除
@@ -87,7 +87,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ( | @@ -87,7 +87,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'jstree'], function ( | ||
87 | return false; | 87 | return false; |
88 | } | 88 | } |
89 | $.ajax({ | 89 | $.ajax({ |
90 | - url: "ajax/roletree", | 90 | + url: "auth/group/roletree", |
91 | type: 'post', | 91 | type: 'post', |
92 | dataType: 'json', | 92 | dataType: 'json', |
93 | data: {id: id, pid: $(this).val()}, | 93 | data: {id: id, pid: $(this).val()}, |
@@ -18,14 +18,14 @@ define('APP_PATH', ROOT_PATH . 'application' . DS); | @@ -18,14 +18,14 @@ define('APP_PATH', ROOT_PATH . 'application' . DS); | ||
18 | // 安装包目录 | 18 | // 安装包目录 |
19 | define('INSTALL_PATH', APP_PATH . 'admin' . DS . 'command' . DS . 'Install' . DS); | 19 | define('INSTALL_PATH', APP_PATH . 'admin' . DS . 'command' . DS . 'Install' . DS); |
20 | 20 | ||
21 | -//判断文件或目录是否有写的权限 | 21 | +// 判断文件或目录是否有写的权限 |
22 | function is_really_writable($file) | 22 | function is_really_writable($file) |
23 | { | 23 | { |
24 | if (DIRECTORY_SEPARATOR == '/' AND @ ini_get("safe_mode") == FALSE) | 24 | if (DIRECTORY_SEPARATOR == '/' AND @ ini_get("safe_mode") == FALSE) |
25 | { | 25 | { |
26 | return is_writable($file); | 26 | return is_writable($file); |
27 | } | 27 | } |
28 | - if (!is_file($file) OR ( $fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) | 28 | + if (!is_file($file) OR ( $fp = @fopen($file, "w+")) === FALSE) |
29 | { | 29 | { |
30 | return FALSE; | 30 | return FALSE; |
31 | } | 31 | } |
-
请 注册 或 登录 后发表评论