2016-10-11 22:57:36 +03:00

62 lines
1.5 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* AVE.cms - Модуль Настройки captcha
* @autor Repellent
* @package AVE.cms
* @subpackage editcaptcha
* @filesource
*/
if(!defined('BASE_DIR')) exit;
if (defined('ACP'))
{
$modul = array();
$modul['ModuleName'] = "Настройки captcha";
$modul['ModuleSysName'] = "editcaptcha";
$modul['ModuleVersion'] = "1.0";
$modul['ModuleDescription'] = "Модуль позволяет настроить визуальный вывод captcha";
$modul['ModuleAutor'] = "Repellent";
$modul['ModuleCopyright'] = "&copy; AVE.cms Team 2016";
$modul['ModuleStatus'] = 1;
$modul['ModuleIsFunction'] = 0;
$modul['ModuleTemplate'] = 0;
$modul['ModuleAdminEdit'] = 1;
$modul['ModuleFunction'] = 'editcaptcha';
$modul['ModuleTag'] = null;
$modul['ModuleTagLink'] = null;
$modul['ModuleAveTag'] = null;
$modul['ModulePHPTag'] = null;
}
/**
* Админка
*/
if (defined('ACP') && (isset($_REQUEST['moduleaction'])))
{
// класс
require_once(BASE_DIR . '/modules/editcaptcha/class.editcaptcha.php');
$captcha = new ModuleEditcaptcha;
// папка с шаблонами
$captcha->tpl_dir = BASE_DIR . '/modules/editcaptcha/templates/';
// ленги
$AVE_Template->config_load(BASE_DIR . '/modules/editcaptcha/lang/' . $_SESSION['admin_language'] . '.txt', 'admin');
$AVE_Template->assign('config_vars', $AVE_Template->get_config_vars());
switch($_REQUEST['moduleaction'])
{
case '1':
$captcha->editCaptcha();
break;
}
}
?>