Example #1
0
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');";
	
	
	echo $html;
	
Example #2
0
    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}');
    $page = CurrentPageName();
    $include = file_get_contents("js/postfix-tls.js");
    $idmd = 'Stunnel4_';
    $html = "var {$idmd}timerID  = null;\nvar {$idmd}timerID1  = null;\nvar {$idmd}tant=0;\nvar {$idmd}reste=0;\n\n\tfunction {$idmd}demarre(){\n\t\tif(!YahooWin2Open()){return false;}\n\t\t{$idmd}tant = {$idmd}tant+1;\n\t\t{$idmd}reste=10-{$idmd}tant;\n\t\tif ({$idmd}tant < 10 ) {                           \n\t\t\t{$idmd}timerID = setTimeout(\"{$idmd}demarre()\",3000);\n\t      } else {\n\t\t\t{$idmd}tant = 0;\n\t\t\t{$idmd}ChargeLogs();\n\t\t\t{$idmd}demarre();                                \n\t   }\n\t}\n\t\n\t\tfunction {$idmd}start(){\n\t\t\tYahooWin2(750,'{$page}?popup=yes','{$title}');\n\t\t\tsetTimeout(\"{$idmd}ChargeLogs()\",1000);\n\t\t\tsetTimeout(\"{$idmd}demarre()\",1000);\n\t\t\n\t\t}\n\t\t\n\t\t\nfunction {$idmd}ChargeLogs(){\n\tLoadAjax('servinfos_stunnel','{$page}?stunnel-status=yes&hostname={$_GET["hostname"]}');\n\t}\t\n\t\t\n\t{$idmd}start();\n\t{$include}\n\t";
    echo $html;
}
function popup()
{