This repository has been archived on 2026-02-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
module-editcaptcha/editcaptcha/module.php

41 lines
805 B
PHP
Raw Permalink 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') && (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;
}
}
?>