Esempio n. 1
0
function section_Fetchmail_Daemon()
{
    $page = CurrentPageName();
    $yum = new usersMenus();
    for ($i = 1; $i < 60; $i++) {
        $hash[$i * 60] = $i;
    }
    $fetch = new fetchmail();
    $list = Field_array_Hash($hash, 'FetchmailPoolingTime', $fetch->FetchmailPoolingTime, null, null, null, 'width:90px');
    $fetchmail_daemon = RoundedLightGrey("\n\t\t<form name=ffmFetch>\n\t\t\t\t\t<center>\n\t\t\t\t\t\n\t\t\t\t\t<table>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right' nowrap><strong>{fetch_messages_every} </strong></td>\n\t\t\t\t\t\t<td align='left'>{$list}  (minutes)</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right'><strong>{postmaster}</strong></td>\n\t\t\t\t\t\t<td align='left'>" . Field_text('FetchmailDaemonPostmaster', $fetch->FetchmailDaemonPostmaster) . "</td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=2 align='right'><input type='button' value='{submit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('ffmFetch','{$page}',true);\"></td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t</table>\n\t\t\t\t</form>\n\t\t\t</center>");
    $title = "{fetchmail}";
    $status = fetchmail_status();
    $html = "<table style='width:600px'>\n\t\t<tr>\n\t\t<td valign='top'><img src='img/bg_fetchmail.jpg'>\n\t\t<td valign='top'>{$status}</td>\n\t\t</tr>\n\t\t<td colspan=2>\n\t\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t<td valign='top' width=60%>\n\t\t\t\t\t<H5>{fetchmail_daemon_settings}</H5>\n\t\t\t\t\t\t{$fetchmail_daemon}\n\t\t\t\t</td>\n\t\t\t\t<td valing='top'>" . applysettings("fetch") . "\n\t\t\t\t\n\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t\t</tr>\t\t\t\n\t\t\t\t\t</table>";
    $tpl = new template_users($title, $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
Esempio n. 2
0
}
if (isset($_GET["Kav4ProxyUploadLicense"])) {
    kav4proxy_upload_license();
    exit;
}
if (isset($_GET["Kav4ProxyLicenseDelete"])) {
    kav4proxy_delete_license();
    exit;
}
//fetchmail
if (isset($_GET["restart-fetchmail"])) {
    RestartFetchmail();
    exit;
}
if (isset($_GET["fetchmail-status"])) {
    fetchmail_status();
    exit;
}
if (isset($_GET["fetchmail-logs"])) {
    fetchmail_logs();
    exit;
}
//Ad importation
if (isset($_GET["ad-import-schedule"])) {
    AD_IMPORT_SCHEDULE();
    exit;
}
if (isset($_GET["ad-import-remove-schedule"])) {
    AD_REMOVE_SCHEDULE();
    exit;
}
Esempio n. 3
0

//Install/Uninstall
if(isset($_GET["organization-delete"])){organization_delete();exit;}
if(isset($_GET["uninstall-app"])){application_uninstall();exit;}
if(isset($_GET["AppliCenterGetDebugInfos"])){application_debug_infos();exit;}
if(isset($_GET["services-install"])){application_service_install();exit;}


if(isset($_GET["Kav4ProxyLicense"])){kav4proxy_license();exit;}
if(isset($_GET["Kav4ProxyUploadLicense"])){kav4proxy_upload_license();exit;}
if(isset($_GET["Kav4ProxyLicenseDelete"])){kav4proxy_delete_license();exit;}

//fetchmail
if(isset($_GET["restart-fetchmail"])){RestartFetchmail();exit;}
if(isset($_GET["fetchmail-status"])){fetchmail_status();exit;}
if(isset($_GET["fetchmail-logs"])){fetchmail_logs();exit;}


//Ad importation
if(isset($_GET["ad-import-schedule"])){AD_IMPORT_SCHEDULE();exit;}
if(isset($_GET["ad-import-remove-schedule"])){AD_REMOVE_SCHEDULE();exit;}
if(isset($_GET["ad-import-perform"])){AD_PERFORM();exit;}

if(isset($_GET["ou-ldap-import-schedules"])){LDAP_IMPORT_SCHEDULE();exit;}
if(isset($_GET["ou-ldap-import-schedules"])){LDAP_IMPORT_EXEC();exit;}


//exec.hamachi.php
if(isset($_GET["list-nics"])){TCP_LIST_NICS();exit;}
if(isset($_GET["virtuals-ip-reconfigure"])){TCP_VIRTUALS();exit;}