本文整理汇总了PHP中checkAccessModule函数的典型用法代码示例。如果您正苦于以下问题:PHP checkAccessModule函数的具体用法?PHP checkAccessModule怎么用?PHP checkAccessModule使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checkAccessModule函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: checkLogged
<?php
require_once '../../resources/security/security.php';
$module_id = 10;
$module_name = "Quản lý thành viên";
//check đăng nhập và bảo mật
checkLogged();
//Check access module...
checkAccessModule($module_id);
$bg_errorMsg = '';
$bg_table = 'users';
$id_field = 'use_id';
$name_field = 'use_name';
$bg_filepath = '../../../pictures/avatar/';
$bg_extension = 'jpg,jpe,png,gif,jpeg';
$limit_size = 1200;
$arr_resize = array("small_" => array("quality" => 100, "width" => 240, "height" => 135), "medium_" => array("quality" => 100, "width" => 400, "height" => 225));
示例2: array
<?
$module_id = 4;
$fs_table = "menus_multi";
$field_id = "mnu_id";
$field_name = "mnu_name";
$field_upload = "mnu_picture";
$fs_filepath = "../../../pictures/menus/";
$extension_list = "jpg,gif,png,swf";
$limit_size = 30000000;
$arrType = array(
1 => "Slide trang chủ",
2 => "Tiêu chuẩn",
);
$arrTarget = array("_self" => "Hiện hành",
"_blank" => "Trang mới"
);
$array_config = array("image"=>1,"upper"=>1,"order"=>1,"description"=>1);
//check security...
require_once("../../resource/security/security.php");
//Check user login...
checkLogged();
//Check access module...
if(checkAccessModule($module_id) != 1) redirect($fs_denypath);
?>