mirror of
https://github.com/avecms/AVE.cms.git
synced 2026-08-01 08:45:44 +00:00
62 lines
2.1 KiB
PHP
62 lines
2.1 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------------------
|
|
| AVE.cms
|
|
|--------------------------------------------------------------------------------------
|
|
| @package AVE.cms
|
|
| @file adminx/modules/Security/module.php
|
|
| @author AVE.cms <support@ave-cms.ru>
|
|
| @copyright 2007-2026 (c) AVE.cms
|
|
| @link https://ave-cms.ru
|
|
| @version 3.3
|
|
*/
|
|
|
|
defined('BASEPATH') || die('Direct access to this location is not allowed.');
|
|
|
|
return array(
|
|
'code' => 'security',
|
|
'name' => 'Безопасность',
|
|
'version' => '0.1.0',
|
|
'permissions' => array('key' => 'security', 'items' => array(
|
|
array(
|
|
'code' => 'view_ip_blocks',
|
|
'group_code' => 'navigation',
|
|
'name' => 'IP-блокировки: просмотр',
|
|
'description' => 'Просмотр заблокированных IP-адресов.',
|
|
'sort_order' => 10,
|
|
),
|
|
array(
|
|
'code' => 'manage_ip_blocks',
|
|
'group_code' => 'admin',
|
|
'name' => 'IP-блокировки: управление',
|
|
'description' => 'Блокировка и разблокировка IP-адресов.',
|
|
'sort_order' => 20,
|
|
),
|
|
), 'icon' => 'ti ti-shield-lock', 'priority' => 42),
|
|
'navigation' => array(
|
|
array(
|
|
'code' => 'security_ip_blocks',
|
|
'label' => 'IP-блокировки',
|
|
'url' => '/security/ip-blocks',
|
|
'icon' => 'ti ti-shield-lock',
|
|
'permission' => 'view_ip_blocks',
|
|
'group' => 'Система',
|
|
'sort_order' => 37,
|
|
'parent' => 'settings',
|
|
'match' => array(
|
|
'/security/ip-blocks',
|
|
),
|
|
),
|
|
),
|
|
'migrations' => array(
|
|
array('id' => '001_create_ip_blocks', 'file' => 'migrations/001_create_ip_blocks.sql'),
|
|
),
|
|
'routes' => array(
|
|
array('GET', '/security/ip-blocks', array(\App\Adminx\Security\Controller::class, 'index')),
|
|
array('POST', '/security/ip-blocks', array(\App\Adminx\Security\Controller::class, 'block')),
|
|
array('POST', '/security/ip-blocks/{id}/delete', array(\App\Adminx\Security\Controller::class, 'unblock')),
|
|
),
|
|
'view_globals' => array('module_code' => 'security'),
|
|
);
|