Example #1
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.sockets.inc';
include_once 'ressources/kav4mailservers.inc';
include_once 'ressources/class.kas-filter.inc';
include_once 'ressources/class.main_cf.inc';
include_once "ressources/class.main_cf_filtering.inc";
include_once "ressources/class.html.pages.inc";
include_once "ressources/class.artica.inc";
include_once "ressources/class.cyrus.inc";
include_once "ressources/class.system.network.inc";
if (isset($_GET["ApplyConfig"])) {
    ApplyConfig();
    exit;
}
if (isset($_GET["operations"])) {
    operations();
    exit;
}
if (isset($_GET["TreeSystemInstall"])) {
    TreeSystemInstall();
    exit;
}
if (isset($_GET["TreeSystemInstallCheck"])) {
    TreeSystemInstallCheck();
    exit;
}
if (isset($_GET["TreeSystemInstallContinue"])) {
    TreeSystemInstallContinue();
Example #2
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["save_step"])) {
    echo save_step();
    exit;
}
if (isset($_GET["stunnel-status"])) {
    echo main_stunnel_status();
    exit;
}
if (isset($_GET["ApplyConfig"])) {
    echo ApplyConfig();
    exit;
}
if (isset($_GET["FillSenderForm"])) {
    echo FillSenderForm();
    exit;
}
if (isset($_POST["smtp_sender_dependent_authentication_email"])) {
    smtp_sender_dependent_authentication_submit();
    exit;
}
page();
function js()
{
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body('{APP_STUNNEL}');
Example #3
0
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;}
if(isset($_GET["js"])){js();exit;}
if(isset($_GET["popup"])){tabs();exit;}

if(isset($_GET["stunnel"])){stunnel();exit;}
if(isset($_GET["enable_stunnel"])){stunnel_save();exit;}

if(isset($_GET["relayhost"])){relayhost();exit;}
if(isset($_GET["server"])){relayhost_save();exit;}

if(isset($_GET["popup-auth-mech"])){smtp_sasl_mechanism_filter();exit;}
if(isset($_GET["plain"])){smtp_sasl_mechanism_filter_save();exit;}


if(isset($_GET["stunnel-status"])){echo main_stunnel_status();exit;}
if(isset($_GET["ApplyConfig"])){echo ApplyConfig();exit;}
if(isset($_GET["FillSenderForm"])){echo FillSenderForm();exit;}
if(isset($_POST["smtp_sender_dependent_authentication_email"])){smtp_sender_dependent_authentication_submit();exit();}


function js(){
	
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body('{smtps_relayhost}');
	$page=CurrentPageName();	
	$include=file_get_contents("js/postfix-tls.js");
	
	
	$html="YahooWin2(750,'$page?popup=yes','$title');";
	
	
Example #4
0
function remove_cache($cacheenc)
{
    $unix = new unix();
    $nohup = $unix->find_program("nohup");
    $sock = new sockets();
    $PidFile = "/etc/artica-postfix/pids/" . md5("remove-{$cacheenc}") . ".pid";
    $pid = $unix->get_pid_from_file($PidFile);
    if ($unix->process_exists($pid, basename(__FILE__))) {
        WriteToSyslogMail("remove_cache():: Another artica script running pid {$pid}, aborting ...", basename(__FILE__));
        return;
    }
    $directory = base64_decode($cacheenc);
    if (!is_dir($directory)) {
        WriteToSyslogMail("remove_cache():: {$directory} no such directory", basename(__FILE__));
        return;
    }
    $rm = $unix->find_program("rm");
    shell_exec("{$rm} -rf {$directory}");
    ApplyConfig();
    shell_exec('/etc/init.d/artica-postfix restart squid-cache');
    caches_infos();
}