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

8 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;
8 years ago
$AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/sysblocks.txt', 'sysblocks');
switch ($_REQUEST['action'])
{
5 years ago
// Список системных блоков
8 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();
8 years ago
}
break;
5 years ago
// Создать новый системный блок
8 years ago
case 'new':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::newBlock();
8 years ago
}
break;
5 years ago
// Редактировать системный блок
8 years ago
case 'edit':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::editBlock();
8 years ago
}
break;
5 years ago
// Сохранить системный блок
8 years ago
case 'save':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::saveBlock();
8 years ago
}
break;
5 years ago
// Удалить системный блок
8 years ago
case 'del':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
Sysblocks::delBlock();
8 years ago
}
break;
5 years ago
// Проверка алиаса
8 years ago
case 'alias':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
echo Sysblocks::aliasValidate($_REQUEST['alias'], (int)$_REQUEST['id']);
8 years ago
}
exit;
5 years ago
// Копирование системного блока
8 years ago
case 'multi':
if (check_permission_acp('sysblocks_edit'))
{
5 years ago
//
8 years ago
}
}
?>