Пример #1
0
$usersmenus=new usersMenus();
if(!$usersmenus->AsPostfixAdministrator){
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');");
	die();
}

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}');
Пример #2
0
    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"])) {