-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathactor_management_create.php
More file actions
59 lines (46 loc) · 1.92 KB
/
Copy pathactor_management_create.php
File metadata and controls
59 lines (46 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// ----------------------------------------------------------------------------
// Features: 後台-- 新增角色
// File Name: actor_management_opt.php?a=add
// Author: Mavis
// Related: actor_management.php,actor_management_action.php,actor_management_view.php, actor_management_opt_view.php,actor_mamagement_opt_editor.php,
// actor_management_opt_action.php
// DB Table:
// Log:
// ----------------------------------------------------------------------------
session_start();
// 主機及資料庫設定
require_once dirname(__FILE__) ."/config.php";
// 支援多國語系
require_once dirname(__FILE__) ."/i18n/language.php";
// 自訂函式庫
require_once dirname(__FILE__) ."/lib.php";
require_once dirname(__FILE__) ."/lib_view.php";
// 文字檔
require_once dirname(__FILE__) ."/actor_management_lib.php";
// ----------------------------------------------------------------------------
// 只要 session 活著,就要同步紀錄該 agent user account in redis server db 1
Agent_RegSession2RedisDB();
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// 檢查權限是否合法,允許就會放行。否則中止。
agent_permission();
// ----------------------------------------------------------------------------
if(!$is_ops) {
$logger = $tr['You dont have permission'];
echo '<script>alert("'.$logger.'");history.go(-1);</script>';die();
}
$function_title = $tr['add role'];
$menu_breadcrumbs = $tr['role managment'];
$tmpl['html_meta_title'] = $function_title.'-'.$tr['host_name'];
$tmpl['page_title'] = $menu_breadcrumbs;
$tmpl['paneltitle_content'] = '<span class="glyphicon glyphicon-bookmark" aria-hidden="true"></span>'.$function_title;
return render(
__DIR__ . '/actor_management_create_view.php',
compact(
'menu_breadcrumbs',
'function_title',
'actor_group_name'
)
);
?>