Exemplo n.º 1
0
<?php

header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.mailboxes.inc';
include_once 'ressources/kav4mailservers.inc';
include_once 'ressources/class.cyrus.inc';
include_once 'ressources/class.html.pages.inc';
include_once 'ressources/class.cron.inc';
$tpl = new template_users();
$_GET["PRIVS"] = $tpl->_ParsePrivieleges($_SESSION["privileges"]["ArticaGroupPrivileges"]);
writequeries();
if (isset($_GET["delete_domain_confirm"])) {
    delete_domain_confirm();
    exit;
}
if (isset($_GET["add_domain_entity"])) {
    add_domain_entity();
    exit;
}
if (isset($_GET["ListDomainByEntity"])) {
    echo List_domains($_GET["ListDomainByEntity"]);
    exit;
}
if (isset($_GET["add_entity"])) {
    add_entity();
    exit;
}
Exemplo n.º 2
0
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.kas-filter.inc';
include_once 'ressources/class.groups.inc';
if ($_SESSION["uid"] != -100) {
    $tpl = new template_users();
    $priv = $tpl->_ParsePrivieleges($_SESSION["privileges"]["ArticaGroupPrivileges"]);
    if ($priv["AllowChangeKas"] != 'yes') {
        exit;
    }
}
if (!isset($_GET["tab"])) {
    $_GET["tab"] = 0;
}
if (isset($_GET["ACTION_SPAM_MODE"])) {
    SaveActions();
    exit;
}
if (isset($_GET["OPT_DNS_DNSBL"])) {
    SaveActionsRules();
    exit;
}
switch ($_GET["tab"]) {
    case 0:
        Actions_Group();
        exit;
        break;
    case 1:
        DNSSPFChecks();