1. 查询当前用户可以访问哪些应用
select node.id,node.name from rice_role as role, rice_role_user as user,
rice_access as access, rice_node as node where user.user_id=3 and
user.role_id=role.id and (access.rol...
分类:
Web程序 时间:
2014-08-19 19:10:55
阅读次数:
222
使用HOOK_node_access_records 和 HOOK_node_grants(图形化组合(个人理解没有权威性,仅供参考)) 这两个钩子 代替 HOOK_node_access
1/ 首先介绍下HOOK_node_access 他是用写代码的方式来判断用户有没有权限来访问,编辑,删除一个node的权限,如下:
function modulename_...
分类:
其他好文 时间:
2014-08-19 19:09:25
阅读次数:
386
An array A[1...n] contains all the integers from 0 to n except for one number which is missing.In this problem, we cannot access an entire integer in ...
分类:
其他好文 时间:
2014-08-19 18:49:45
阅读次数:
251
ExpiresActive On
ExpiresByType application/x-javascript "access plus 20 minutes"
ExpiresByType text/css "access plus 20 minutes"
ExpiresByType imag...
分类:
其他好文 时间:
2014-08-19 18:19:45
阅读次数:
147
vi/etc/apache2/sites-enabled/000-default#Alias/doc/"/usr/share/doc/"#<Directory"/usr/share/doc/">#OptionsIndexesMultiViewsFollowSymLinks#AllowOverrideNone#Orderdeny,allow#Denyfromall#Allowfrom127.0.0.0/255.0.0.0::1/128#</Directory>重启apache网站..
分类:
其他好文 时间:
2014-08-19 16:55:05
阅读次数:
228
1基本安装
1.1在基于RHEL的系统中安装Cassandra
1.1.1必要条件
Ø YUM包管理器
Ø Root或sudo权限
Ø JRE6或者JRE7
Ø JNA(Java native Access)(生产环境需要)
1.1.2步骤
Ø 安装配置JRE(略)
Ø 添加软件包仓库到YUM的软件库
将以下内容添加进/etc/yum.repos.d/dat...
分类:
其他好文 时间:
2014-08-19 16:30:34
阅读次数:
418
Using Supervisor with Docker
Note: - If you don't like sudo then see Giving
non-root access
Traditionally a Docker container runs a single process when it is launched, for example an Apache ...
分类:
其他好文 时间:
2014-08-19 12:54:34
阅读次数:
367
@Html.Raw 或者直接访问,使用 Model属性。 参考这里:http://techo.luefher.com/coding/dot-net/mvc/how-to-access-your-model-data-in-net-mvc-with-razor-engine-for-beginners...
分类:
Web程序 时间:
2014-08-19 10:47:04
阅读次数:
212
http://www.cnblogs.com/hnyei/archive/2012/02/23/2364812.html创建一张空表: Sql="Create TABLE [表名]"创建一张有字段的表: Sql="Create TABLE [表名]([字段名1] MEMO NOT NULL, [字段...
分类:
数据库 时间:
2014-08-19 10:34:34
阅读次数:
257
一、控制器 <?php if (!defined(‘BASEPATH‘)) ??? exit(‘No direct script access allowed‘); class Topics extends CI_Controller { ??? function __construct() ??? { ??????? parent::__cons...
分类:
数据库 时间:
2014-08-19 01:04:43
阅读次数:
309