芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/network.digitalhubbd.com/fns/global/cache-group_roles.php
select('group_roles', $columns); $group_role_attributes = array(); foreach ($roles as $role) { $roleid = $role['group_role_id']; $grouproles[$roleid] = $role['permissions']; $attribute = $role['group_role_attribute']; $group_role_attributes[$attribute] = $roleid; } $cache = json_encode($grouproles); $cachefile = 'assets/cache/group_roles.cache'; if (file_exists($cachefile)) { unlink($cachefile); } $cachefile = fopen($cachefile, "w"); fwrite($cachefile, $cache); fclose($cachefile); $cache = json_encode($group_role_attributes); $cachefile = 'assets/cache/group_role_attributes.cache'; if (file_exists($cachefile)) { unlink($cachefile); } $cachefile = fopen($cachefile, "w"); fwrite($cachefile, $cache); fclose($cachefile); $result = true;