From 0feaecce2d77a94bea91539b87977f82ea9111f8 Mon Sep 17 00:00:00 2001 From: Karson Date: Wed, 12 Jul 2017 16:01:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dinstall.php=E5=9C=A8Windows?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E6=9D=83=E9=99=90=E6=A3=80=E6=B5=8BBUG=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E7=BB=84=E7=AE=A1=E7=90=86=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=BC=96=E8=BE=91=E6=97=B6=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/assets/js/backend/auth/group.js | 2 +- public/install.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/assets/js/backend/auth/group.js b/public/assets/js/backend/auth/group.js index 9b45ccf3..15b546d6 100755 --- a/public/assets/js/backend/auth/group.js +++ b/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()}, diff --git a/public/install.php b/public/install.php index 39de290e..4b7aae7d 100644 --- a/public/install.php +++ b/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; }