24 require_once dirname(dirname(dirname(__DIR__))) .
'/include/cp_header.php';
33 $op = Request::getCmd(
'op',
'list');
34 $start = Request::getInt(
'start', 0);
46 if (isset(
$imgcat_id) && (
$op ==
'addfile' ||
$op ==
'editcat' ||
$op ==
'updatecat' ||
$op ==
'delcatok' ||
$op ==
'delcat')) {
54 if (!in_array(FixedGroups::ADMIN,
$groups) && (
$op ==
'delfile' ||
$op ==
'delfileok' ||
$op ==
'delcatok' ||
$op ==
'delcat')) {
62 if (!$imgcat_read && !$imgcat_write) {
63 $xoops->redirect(
'images.php', 1);
68 $xoops->theme()->addScript(
'media/xoops/xoops.js');
69 $xoops->theme()->addScript(
'modules/system/js/admin.js');
71 $xoops->theme()->addStylesheet(
'modules/system/css/admin.css');
72 $xoops->theme()->addStylesheet(
'modules/images/css/admin.css');
static getHelper($dirname= 'system')
static load($name, $type="core")
const E_NO_ACCESS_PERMISSION