AVE.CMS v3.28
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.8 KiB

7 years ago
<?php
/**
* AVE.cms
*
* @package AVE.cms
* @version 3.x
* @filesource
* @copyright © 2007-2017 AVE.cms, http://www.ave-cms.ru
*
* @license GPL v.2
*/
if (! defined('ACP'))
{
header('Location:index.php');
exit;
}
global $AVE_DB, $AVE_Template;
require(BASE_DIR . '/class/class.sysblocks.php');
5 years ago
new Sysblocks;
7 years ago
$AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/sysblocks.txt', 'sysblocks');
switch ($_REQUEST['action'])
{
5 years ago
// Список системных блоков
7 years ago
case '':
if (check_permission_acp('sysblocks_view'))
{
5 years ago
Sysblocks::startPage();
}
break;
// Список групп системных блоков
case 'groups':
if (check_permission_acp('sysblocks_view'))
{
Sysblocks::listGroups();
7 years ago
}
break;
5 years ago
// Создать новый системный блок
7 years ago
case 'new':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::newBlock();
7 years ago
}
break;
5 years ago
// Редактировать системный блок
7 years ago
case 'edit':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::editBlock();
7 years ago
}
break;
5 years ago
// Сохранить системный блок
7 years ago
case 'save':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::saveBlock();
7 years ago
}
break;
5 years ago
// Удалить системный блок
7 years ago
case 'del':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::delBlock();
7 years ago
}
break;
5 years ago
// Проверка алиаса
7 years ago
case 'alias':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
echo Sysblocks::aliasValidate($_REQUEST['alias'], (int)$_REQUEST['id']);
7 years ago
}
exit;
5 years ago
// Копирование системного блока
7 years ago
case 'multi':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::multiBlock();
7 years ago
}
}
?>