admin/myblocksadmin.php 1 location
|
@@ 85-87 (lines=3) @@
|
82 |
|
|
83 |
|
// check access right (needs system_admin of BLOCK) |
84 |
|
$syspermHandler = xoops_getHandler('groupperm'); |
85 |
|
if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) { |
86 |
|
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
87 |
|
} |
88 |
|
|
89 |
|
// get blocks owned by the module (Imported from xoopsblock.php then modified) |
90 |
|
//$block_arr = XoopsBlock::getByModule( $target_mid ) ; |
admin/myblocksadmin2.php 1 location
|
@@ 69-71 (lines=3) @@
|
66 |
|
|
67 |
|
// check access right (needs system_admin of BLOCK) |
68 |
|
$syspermHandler = xoops_getHandler('groupperm'); |
69 |
|
if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_BLOCK, $xoopsUser->getGroups())) { |
70 |
|
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
71 |
|
} |
72 |
|
|
73 |
|
// get blocks owned by the module (Imported from xoopsblock.php then modified) |
74 |
|
$db = XoopsDatabaseFactory::getDatabaseConnection(); |
admin/mytplsadmin.php 1 location
|
@@ 75-77 (lines=3) @@
|
72 |
|
|
73 |
|
// check access right (needs system_admin of tplset) |
74 |
|
$syspermHandler = xoops_getHandler('groupperm'); |
75 |
|
if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_TPLSET, $xoopsUser->getGroups())) { |
76 |
|
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
77 |
|
} |
78 |
|
|
79 |
|
//**************// |
80 |
|
// POST stages // |
admin/mytplsform.php 1 location
|
@@ 56-58 (lines=3) @@
|
53 |
|
|
54 |
|
// check access right (needs system_admin of tplset) |
55 |
|
$syspermHandler = xoops_getHandler('groupperm'); |
56 |
|
if (!$syspermHandler->checkRight('system_admin', XOOPS_SYSTEM_TPLSET, $xoopsUser->getGroups())) { |
57 |
|
redirect_header(XOOPS_URL . '/user.php', 1, _NOPERM); |
58 |
|
} |
59 |
|
|
60 |
|
// tpl_file from $_GET |
61 |
|
$tpl_file = $myts->stripSlashesGPC(@$_GET['tpl_file']); |