Exemplo n.º 1
0
<?php

/**
 * AVE.cms
 *
 * @package AVE.cms
 * @subpackage admin
 * @filesource
 */
if (!defined('ACP')) {
    header('Location:index.php');
    exit;
}
global $AVE_Template;
require BASE_DIR . '/class/class.settings.php';
$AVE_Settings = new AVE_Settings();
$AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/settings.txt', 'settings');
switch ($_REQUEST['action']) {
    case '':
        if (check_permission_acp('gen_settings')) {
            switch ($_REQUEST['sub']) {
                case '':
                    $AVE_Settings->settingsShow();
                    break;
                case 'case':
                    $AVE_Settings->settingsCase();
                    break;
                case 'save':
                    if ($_REQUEST['dop']) {
                        $AVE_Settings->settingsCase();
                    } else {
Exemplo n.º 2
0
<?php

/**
 * AVE.cms
 *
 * @package AVE.cms
 * @subpackage admin
 * @filesource
 */
if (!defined('ACP')) {
    header('Location:index.php');
    exit;
}
global $AVE_Template;
require BASE_DIR . '/class/class.settings.php';
$AVE_Settings = new AVE_Settings();
switch ($_REQUEST['action']) {
    case '':
        if (check_permission_acp('gen_settings')) {
            switch ($_REQUEST['sub']) {
                case '':
                    $AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/settings.txt', 'settings');
                    $AVE_Settings->settingsShow();
                    break;
                case 'case':
                    $AVE_Template->config_load(BASE_DIR . '/admin/lang/' . $_SESSION['admin_language'] . '/settings.txt', 'settings');
                    $AVE_Settings->settingsCase();
                    break;
                case 'save':
                    if ($_REQUEST['dop']) {
                        $AVE_Settings->settingsCase();