static function saveBrowseList($authId = null) { if (null === $authId) { $authId = $_SESSION[C('USER_AUTH_KEY')]; } // 如果使用普通权限模式,保存当前用户的访问权限列表 // 管理员不生成浏览权限 if (C('USER_AUTH_TYPE') != 2 && !$_SESSION[C('ADMIN_AUTH_KEY')]) { // 把权限写入文件通过文件判断 //$file = DConfig_PATH . "/BrowsecList/borwse_" . $_SESSION [C ( 'USER_AUTH_KEY' )] . ".php"; ---xyz $file = DConfig_PATH . "/BrowsecList/borwse_" . $authId . ".php"; //---xyz if (!file_exists($file)) { $browselist = Browse::getBrowseList($authId); if (!file_exists(DConfig_PATH . "/BrowsecList")) { createFolder(dirname(DConfig_PATH . "/BrowsecList")); mkdir(DConfig_PATH . "/BrowsecList", 0777); } Browse::writeover($file, "return " . Browse::pw_var_export($browselist) . ";\n", true); } } return; }