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.
62 lines
1.5 KiB
62 lines
1.5 KiB
<?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'] = "© 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; |
|
|
|
} |
|
} |
|
?>
|