Example #1
0
    exit;
}
if (isset($_GET["events"])) {
    FetchLogsPop();
    exit;
}
if (isset($_GET["getFetchlogs"])) {
    fetch_events();
    exit;
}
if (isset($_GET["fetch_status"])) {
    FetchMailStatus();
    exit;
}
if (isset($_GET["reload-fetchmail"])) {
    reloadfetchmail();
    exit;
}
page();
function page()
{
    $usersmenus = new usersMenus();
    $page = CurrentPageName();
    if ($usersmenus->AsPostfixAdministrator == true) {
    } else {
        header('location:users.index.php');
        exit;
    }
    $html = "<table style='width:600px' align=center>\n<tr>\n<td width=50% valign='top' class='caption' style='text-align:justify'>\n<img src='img/bg_fetchmail.jpg'><p>\n{fetchmail_about}</p></td>\n<td valign='top'>\n\t<table>";
    //folder-fetchmail-64.jpg
    if ($usersmenus->AsPostfixAdministrator == true) {
Example #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.fetchmail.inc');
	if(isset($_GET["ajax"])){echo fetch_js();exit;}
	if(isset($_GET["popup"])){echo fetch_popup();exit;}
	if(isset($_GET["status"])){echo FetchMailStatus();exit;}
	if(isset($_GET["enable_fetchmail"])){fetch_enable_save();exit;}
	if(isset($_GET["events"])){FetchLogsPop();exit;}
	if(isset($_GET["getFetchlogs"])){fetch_events();exit;}
	if(isset($_GET["fetch_status"])){FetchMailStatus();exit;}
	if(isset($_GET["reload-fetchmail"])){reloadfetchmail();exit;}

page();	
function page(){
$usersmenus=new usersMenus();
$page=CurrentPageName();
if($usersmenus->AsPostfixAdministrator==true){}else{header('location:users.index.php');exit;}	
$html="<table style='width:600px' align=center>
<tr>
<td width=50% valign='top' class='caption' style='text-align:justify'>
<img src='img/bg_fetchmail.jpg'><p>
{fetchmail_about}</p></td>
<td valign='top'>
	<table>";
//folder-fetchmail-64.jpg
if($usersmenus->AsPostfixAdministrator==true){
		$html=$html . "<tr><td valign='top' ><div id=status></div><br>" . applysettings("fetch")  . "<br></td></tr>
		<tr><td valign='top' >".Paragraphe('folder-tools-64.jpg','{daemon_settings}','{daemon_settings_text}','fetchmail.daemon.settings.php') ."</td></tr>
		<tr><td valign='top'>  ".Paragraphe('folder-logs-64.jpeg','{events}','{events_text}','fetchmail.daemon.events.php') ."</td></tr>";