Example #1
0
function popup()
{
    $tpl = new templates();
    $logs = events();
    $html = "\n\t<H1>{APP_DHCP_EVENTS}</H1>\n\t" . RoundedLightWhite("\n\t<div style='width:100%;height:350px;overflow:auto' id='DHCPDL'>{$logs}</div>");
    echo $tpl->_ENGINE_parse_body($html);
}
Example #2
0
function popup()
{
    $form = "<table style='width=99%'>\n\t<tr>\n\t\t<th>{ip_address}</th>\n\t\t<th>{netmask}</th>\n\t\t<th>{gateway}</th>\n\t</tr>\n\t<tr>\n\t\t<td>" . Field_text("dhcpd_ip", null) . "</td>\n\t\t<td>" . Field_text("dhcpd_netmask", null) . "</td>\n\t\t<td>" . Field_text("dhcpd_gateway", null) . "</td>\n\t</tR>\n\t<tr>\n\t\t<td colspan=3 align='right'><hr><input type='button' OnClick=\"javascript:AddRouteDHCPD();\" value='{add}&nbsp;&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>\n\t";
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/computer-routes-128.png'></td>\n\t\t<td valign='top'>\n\t\t\t\t<div class=explain>{APP_DHCP_ROUTES_EXPLAIN}</div>\n\t\t\t\t{$form}\n\t\t\t\t<br>\n\t\t\t\t" . RoundedLightWhite("<div style='width:100%;height:120px;overflow:auto' id='dhcpdroutes'>" . popup_list() . "</div>") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #3
0
function user_amavis_front()
{
    $tpl = new templates();
    if (isset($_GET["userid"])) {
        $users = new usersMenus();
        if (!$users->AllowChangeAntiSpamSettings) {
            echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}')");
            exit;
        }
        $uid = $_GET["userid"];
        $button_admin = "<div style='text-align:center'>\n\t\t<input type='button' OnClick=\"javascript:GoBackDefaultAmavis('{$uid}')\" value='{back_to_defaults}&nbsp;&raquo;'></div>";
    } else {
        $uid = $_SESSION["uid"];
    }
    $user = new user($uid);
    $form = "\n<table style='width:100%'>\n<tr>\n\t<td class=legend>{amavisSpamLover}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisSpamLover', $user->amavisSpamLover, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisBadHeaderLover}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisBadHeaderLover', $user->amavisBadHeaderLover, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisBypassVirusChecks}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisBypassVirusChecks', $user->amavisBypassVirusChecks, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisBypassSpamChecks}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisBypassSpamChecks', $user->amavisBypassSpamChecks, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisBypassHeaderChecks}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisBypassHeaderChecks', $user->amavisBypassHeaderChecks, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisSpamModifiesSubj}:</td>\n\t<td>" . Field_TRUEFALSE_checkbox_img('amavisSpamModifiesSubj', $user->amavisSpamModifiesSubj, '{enable_disable}') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisSpamTagLevel}:</td>\n\t<td>" . Field_text('amavisSpamTagLevel', $user->amavisSpamTagLevel, 'width:90px') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisSpamTag2Level}:</td>\n\t<td>" . Field_text('amavisSpamTag2Level', $user->amavisSpamTag2Level, 'width:90px') . "</td>\n</tR>\n<tr>\n\t<td class=legend>{amavisSpamKillLevel}:</td>\n\t<td>" . Field_text('amavisSpamKillLevel', $user->amavisSpamKillLevel, 'width:90px') . "</td>\n</tR>\n<tr>\n\t<td colspan=2 align='right'><hr><input type='button' OnClick=\"javascript:SaveUserAmavis();\" value='{edit}&nbsp;&raquo;'></td>\n</tr>\n</table>\n";
    $form = RoundedLightWhite($form);
    $html = "\n<H1>{spam_rules}</H1>\n\n<table style='width:100%'>\n<td valign='top' width=1%>\n<img src='img/caterpillarkas.png'>\n<p class=caption>{amavis_user_text}</p>\n<hr>\n{$button_admin}\n</td>\n<td><div id='user-amavis'>{$form}</div>\n</td>\n</tr>\n</table>\n\n";
    /*	
    amavisSpamLover: FALSE
    amavisBadHeaderLover: FALSE
    amavisBypassVirusChecks: FALSE
    amavisBypassSpamChecks: FALSE
    
    amavisBypassHeaderChecks: FALSE
    amavisSpamTagLevel: -999
    amavisSpamTag2Level: 5
    amavisSpamKillLevel: 5
    amavisSpamModifiesSubj: TRUE
    */
    echo $tpl->_ENGINE_parse_body($html, 'amavis.index.php');
}
function popup_index()
{
    $main = new main_cf();
    $html = "\n<H1>{smtp_connection_cache_destinations}</H1>\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n" . RoundedLightWhite("<div style='text-align:justify;font-size:12px;height:200px;overflow:auto;width:99%'>{smtp_connection_cache_destinations_text}</div>") . "\n<br>\n" . RoundedLightWhite("\n<form name='FFMA'>\n<table style='width:500px'>\n\t<tr>\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_on_demand}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_yesno_checkbox_img('smtp_connection_cache_on_demand', $main->main_array["smtp_connection_cache_on_demand"], '{enable_disable}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_cache_time_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_cache_time_limit', $main->main_array["smtp_connection_cache_time_limit"], 'width:20%', null, null, '{smtp_connection_cache_time_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{smtp_connection_reuse_time_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connection_reuse_time_limit', $main->main_array["smtp_connection_reuse_time_limit"], 'width:20%', null, null, '{smtp_connection_reuse_time_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_ttl_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_ttl_limit', $main->main_array["connection_cache_ttl_limit"], 'width:20%', null, null, '{connection_cache_ttl_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap valign='top' nowrap><strong>{connection_cache_status_update_time}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('connection_cache_status_update_time', $main->main_array["connection_cache_status_update_time"], 'width:20%', null, null, '{connection_cache_status_update_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend nowrap colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:PostFixSaveServerCacheSettings();\"></td>\n\t\t\n\t</tr>\t\t\t\n\t\t\t\t\t\n\t\t\n</form>\t") . "\n\t\n\t<tr>\n\t\n\t\n\t\t<td class=legend nowrap><strong>{smtp_connection_cache_destinations_field}&nbsp;:</strong></td>\n\t\t<td align='left'><input type='button' value='{add_server_domain}&nbsp;&raquo;' OnClick=\"javascript:PostFixAddServerCache();\">\n\t</tr>\n</table>\t\n\n\n</td>\n</tr>\n</table><div id='ServerCacheList'>" . PostFixServerCacheList() . "</div>";
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #5
0
function popup()
{
    $dev = Buildicon64('DEF_ICO_DEVCONTROL');
    $html = "\n\t<H1>{SAMBA_USB_SHARE}</H1>\n\t\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td valign='top' width=1% align='right'>\n\t\t\t\t{$dev}<hr><img src='img/usb-share-128.png'>\n\t\t\t</td>\n\t\t\t<td valign='top' width=99%>\n\t\t\t<p class=caption>{usb_share_explain}</p>\n\t\t\t" . RoundedLightWhite("<div id='usb-list' style='height:200px;width:99%;overflow:auto'></div>") . "\n\t\t</tr>\n\t\t</table>\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'fileshares.index.php');
}
function popup()
{
    $page = CurrentPageName();
    $html = RoundedLightWhite("<div style='width:100%;height:250px;overflow:auto' id='APP_RSYNC_FOLDERS'></div>") . "\n\t<script>\n\tLoadAjax('APP_RSYNC_FOLDERS','{$page}?dev-list=yes');\n\t</script>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function out_of_office_start()
{
    $user = new user($_SESSION["uid"]);
    if ($user->vacationEnabled == "TRUE") {
        $vacation_active = 1;
    } else {
        $vacation_active = 0;
    }
    $vacationStart = $user->vacationStart;
    $vacationEnd = $user->vacationEnd;
    $vacationStart_time = date('m/d/Y', $vacationStart);
    $vacationEnd_time = date('m/d/Y', $vacationEnd);
    $activate = Paragraphe_switch_img("{ENABLE_OUT_OF_OFFICE}", "{ENABLE_OUT_OF_OFFICE_TEXT}", "vacationActive", $vacation_active);
    $activate = RoundedLightWhite($activate);
    if ($user->vacationActive == "TRUE") {
        $icon = "ok24.png";
        $textActive = "{enabled}";
    } else {
        $icon = "danger24.png";
        $textActive = "{disabled}";
    }
    $status = "\n<table style='width:100%' class=table_form>\n<tr>\n\t<td colspan=2><strong style='font-size:16px'>{status}</strong></td>\n\t<hr>\n</tr>\n<tr>\n\t<td width=1%><img src='img/{$icon}'></td>\n\t<td><strong style='width:12px'>{$textActive}</td>\n\t</tr>\n</table>";
    $form_time = "\n\n<table style='width:100%'>\n\t<tr>\n\t\t<td align='left' style='border-bottom:1px solid #CCCCCC'><span style='font-size:14px;font-weight:bold;text-transform: capitalize;'>{from}:</span></td>\n\t\t<td align='left' style='border-bottom:1px solid #CCCCCC'><span style='font-size:14px;font-weight:bold;text-transform: capitalize;'>{to}:</span></td>\n\t</tr>\n\t<tr>\n\t\t<td align='center' style='padding-left:10px;padding-top:5px'><div id='cal1Container'><img src='img/wait.gif'></div></td>\n\t\t<td align='center' style='padding-left:10px;padding-top:5px'><div id='cal2Container'><img src='img/wait.gif'></div></td>\n\t</tr>\t\n</table>\n<input type='hidden' id='vacationStart' value='{$vacationStart_time}'>\n<input type='hidden' id='vacationEnd' value='{$vacationEnd_time}'>\n<hr>\n<div style='text-align:right'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:SaveOutOfOffice();\"></div>\n";
    $form_time = RoundedLightWhite($form_time);
    $form = "\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>{$activate}<br>{$status}\n\t<hr>\n<div style='text-align:right'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:SaveOutOfOffice();\"></div></td>\n\t<td valign='top'>{$form_time}</td>\n</tr>\n</table>\n";
    $html = "\n<H1>{OUT_OF_OFFICE}</H1>\n<div style='float:right'><input type='button' value='{vacation_message}' OnClick=\"javascript:VacationMessage();\" ></div>\n<p class=caption>{OUT_OF_OFFICE_TEXT}</p>\n<div id='outofoff'>\n{$form}\n</div>\n\n\n";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
    //$timestamp = mktime(0, 0, 0, $month, $day, $year);
    //current=time
}
Example #8
0
function wizard()
{
    $tpl = new templates();
    $form = form1($error);
    $html = "<H1>{APP_CYRUS_MURDER}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>" . RoundedLightWhite("<img src='img/murder-1-128.png'>") . "</td>\n\t\t<td valign='top'>\n\t\t\t<p class=caption>{CYRUS_MURDER_CONNECT_BACKEND_TEXT}</p>\n\t\t\t" . RoundedLightWhite("<div id='form_murder_div'>{$form}</div>") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
Example #9
0
function index(){

	
	//$content=main_config(1);
	
	$html=RoundedLightWhite("
	
	<table style='width:100%'>
	<tr>
	<td width=1% valign='top'><img src='img/bg_perf.jpg'></td>
	<td valign='top'><div id='artica_perfomances_services_status'></div></td>
	</tr>
	</table>")."
	<table style='width:100%'>
	<tr>
		<td colspan=2 valign='top'><br>
		".RoundedLightWhite("<p style='font-size:14px'>{about_perf}</p>")."
		</td>
	</tr>
	</table>
	<script>ArticaProcessesChargeLogs()</script>	
	
	";
	
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
		
}
function popup_index()
{
    $main = new main_cf();
    $html = "<H1>{address_verify_map_minitext}</H1>" . RoundedLightWhite("<p class=caption>{address_verify_map_text}</p>") . "<br>\n\n\n<form name='FFMDBCache'>\n\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n\t\t" . RoundedLightWhite("\n\t\t<table style='width:100%;margin:10px'>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_map_field}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_map', str_replace('btree:', '', $main->main_array["address_verify_map"])) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_negative_cache}:</strong></td>\n\t\t\t\t<td>" . Field_yesno_checkbox_img('address_verify_negative_cache', $main->main_array["address_verify_negative_cache"], '{address_verify_negative_cache_text}') . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_count}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_count', $main->main_array["address_verify_poll_count"], 'width:30%', null, null, '{address_verify_poll_count_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_delay}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_delay', $main->main_array["address_verify_poll_delay"], 'width:30%', null, null, '{address_verify_poll_delay_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_sender}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_sender', $main->main_array["address_verify_sender"], 'width:30%', null, null, '{address_verify_sender_text}') . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_expire_time', $main->main_array["address_verify_negative_expire_time"], 'width:30%', null, null, '{address_verify_negative_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_refresh_time', $main->main_array["address_verify_negative_refresh_time"], 'width:30%', null, null, '{address_verify_negative_refresh_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_expire_time', $main->main_array["address_verify_positive_expire_time"], 'width:30%', null, null, '{address_verify_positive_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_refresh_time', $main->main_array["address_verify_positive_refresh_time"], 'width:30%', null, null, '{address_verify_positive_refresh_time_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\t\n\n\t\t\t\n\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' colspan=2><input type='button' value='{delete}&nbsp;&raquo;' OnClick=\"PostFixVerifyDatabaseDeleteSave();\">&nbsp;&nbsp;<input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"PostFixVerifyDatabaseSave();\"></td>\n\t\t\t</tr>\t\t\t\t\n\t\t</table>") . "\n</td>\n</tr>\n</table></form>";
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function popup_index()
{
    $html = "\n<table style='width:600px' align=center>\n<td valign='top' style='text-align:justify'>" . RoundedLightWhite("<p class=caption>{smtp_fallback_relay_tiny}<br>{smtp_fallback_relay_text}</p>") . "</td>\n</tr>\n</table>\n<table style='width:600px' align=center>\n<tr>\n<td align='center'><input type='button' value='{add_server}&nbsp;&raquo;' OnClick=\"javascript:PostfixAddFallBackServer();\"></td></tr>\n<tr>\n<td>" . RoundedLightWhite("<div id='table_list'>" . PostfixAddFallBackerserverList() . "</div>") . "</td></tr>\n</table>\n";
    $js["JS"][] = 'js/postfix-fallback.js';
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #12
0
function top_ressources_mem_generate()
{
    $sock = new sockets();
    $datas = $sock->getfile('dstattopressourcesmem');
    $tbl = explode("\n", $datas);
    if (is_array($tbl)) {
        while (list($num, $file) = each($tbl)) {
            if ($file == null) {
                continue;
            }
            if (preg_match('#dstat\\.topmem\\.([0-9]+)\\.(.+?)\\.png#', $file, $re)) {
                $arr[$re[1]] = "ressources/logs/{$file}";
            } else {
                echo "<br>{$file} !!";
            }
        }
    }
    if (!is_array($arr)) {
        return null;
    }
    rsort($arr);
    while (list($num, $file) = each($arr)) {
        $images = $images . "<div style='width:525px;padding:3px;margin:3px border:1px solid #CCCCCC;'>" . RoundedLightWhite("<img src='{$file}'>") . "</div><br>";
    }
    return $images;
}
Example #13
0
function popup()
{
    $dev = $_GET["dev"];
    $html = "<H1>{$dev}</h1>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top' width=1%><center><img src='img/database-connect-128.png'></center></td>\n\t\t<td valign='top' width=99%>\n\t\t\t<div id='fstab'><p class=caption>{CONNECT_HD_TEXT}</p>\n\t\t\t\t<table style='width:100%' class=table_form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td valign='middle' class=legend nowrap>{mount_point}:</td>\n\t\t\t\t\t<td nowrap>" . Field_text('mount_point', null, 'width:220px') . "" . button_browse('mount_point') . "</td>\n\t\t\t\t\t<td>" . button("{add}", "fstabAdd()") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t" . RoundedLightWhite("<div id='fslist' style='width:99%;height:220px;overflow:auto'>" . listfstab($dev) . "</div>") . "\n\t\t\t</div>\n\t\t</td>\n\t\t</tr>\n\t</table>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'system.internal.disks.php');
}
Example #14
0
function formulaire()
{
    $users = new usersMenus();
    $ldap = new clladp();
    $tpl = new templates();
    $page = CurrentPageName();
    if ($users->AsAnAdministratorGeneric) {
        $hash = $ldap->hash_get_ou(false);
    } else {
        $hash = $ldap->Hash_Get_ou_from_users($_SESSION["uid"], 1);
    }
    if (count($hash) == 1) {
        $org = $hash[0];
        $hash_groups = $ldap->hash_groups($org, 1);
        $hash_domains = $ldap->hash_get_domains_ou($org);
        $groups = Field_array_Hash($hash_groups, 'groupid');
        $domains = Field_array_Hash($hash_domains, 'domain');
    }
    $artica = new artica_general();
    $EnableVirtualDomainsInMailBoxes = $artica->EnableVirtualDomainsInMailBoxes;
    while (list($num, $ligne) = each($hash)) {
        $ous[$ligne] = $ligne;
    }
    $ou = Field_array_Hash($ous, 'organization', null, "ChangeFormValues()");
    $form = "\n\t\n\t<input type='hidden' id='EnableVirtualDomainsInMailBoxes' value='{$EnableVirtualDomainsInMailBoxes}'>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend>{organization}:</td>\n\t\t\t<td>{$ou}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend>{group}:</td>\n\t\t\t<td><span id='select_groups'>{$groups}</span>\n\t\t</tr>\n\t\t<tr>\n\t\t<tr>\n\t\t\t<td class=legend>{firstname}:</td>\n\t\t\t<td>" . Field_text('firstname', null, 'width:120px', null, 'ChangeFormValues()') . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td class=legend>{lastname}:</td>\n\t\t\t<td>" . Field_text('lastname', null, 'width:120px', null, "ChangeFormValues()") . "</td>\n\t\t</tr>\t\t\n\t\t\t\n\t\t<tr>\n\t\t\t<td class=legend>{email}:</td>\n\t\t\t<td>" . Field_text('email', null, 'width:120px', null, "ChangeFormValues()") . "@<span id='select_domain'>{$domains}</span></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend>{login}:</td>\n\t\t\t<td>" . Field_text('login', null, 'width:120px') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td class=legend>{password}:</td>\n\t\t\t<td>" . Field_password('password') . "</td>\n\t\t</tr>\t\n\t\t<tr><td colspan=2><hr></td></tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'>\n\t\t\t\t<input type='button' OnClick=\"javascript:SaveAddUser();\" value='{add}&nbsp;&raquo;'>\n\t\t\t</td>\n\t\t</tr>\n\t\t\n\t\t</table>\n\t";
    $form = RoundedLightWhite($form);
    $html = "<h1>{add_user}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><div id='ffform'><img src='img/identity-add-96.png'></div></td>\n\t\t<td valign='top'>{$form}</div></td>\n\t</tr>\n\t</table>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
Example #15
0
function popup()
{
    $virslist = viruslist();
    $html = "<H1>{VIRUS_EVENTS}</H1>\n\t<div style='text-align:right;margin-top:-25px'><input type='button' OnClick=\"javascript:VirusEventsAllAsRead();\" value=\"{mark_all_events_has_read}\"></div>\n\t" . RoundedLightWhite("\n\t<div id='virusevents' style='width:100%;height:400px;overflow:auto'>{$virslist}</div>\n\t");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #16
0
function popup()
{
    $priv = new usersMenus();
    $ct = new user($_GET["popup"]);
    $sock = new sockets();
    $lvm = new lvm_org($ct->ou);
    $array = $lvm->disklist;
    $paths["/home/{$ct->uid}"] = "/home/{$ct->uid} ({system_disk})";
    if (is_array($array)) {
        while (list($num, $val) = each($array)) {
            $sock = new sockets();
            $results = $sock->getFrameWork("cmd.php?fstab-get-mount-point=yes&dev={$num}");
            $array2 = unserialize(base64_decode($results));
            while (list($num, $mounted) = each($array2)) {
                $paths[trim("{$mounted}/{$ct->uid}")] = dirname(trim($mounted . '/' . $ct->uid) . "({dedicated_storage})");
            }
        }
    }
    $loginShell_hidden = Field_hidden('loginShell', $us->loginShell) . Field_hidden('uidNumber', $us->uidNumber);
    $loginShell = "<tr>\n\t\t\t\t\t<td align='right' nowrap class=legend {$styleTDRight}>{loginShell}:</strong>\n\t\t\t\t\t<td {$styleTDLeft}>\n\t\t\t\t\t\t\t<table style='width:100%;margin-left:-4px;'>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align=left width=1%>" . Field_text('loginShell', $us->loginShell, 'width:90px') . "</td>\n\t\t\t\t\t\t\t<td align=left>" . help_icon('{loginShellText}', true) . "</td>\n\t\t\t\t\t\t\t<td class=legend nowrap>{UidNumber}:</td>\n\t\t\t\t\t\t\t<td align=left width=1%>" . Field_text('uidNumber', $us->uidNumber, 'width:90px') . "</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t\t</tr>";
    $dotclear = "<tr>\n\t\t<td class=legend nowrap>{DotClearUserEnabled}:</td>\n\t\t<td align=left width=1%>" . Field_numeric_checkbox_img('DotClearUserEnabled', $us->DotClearUserEnabled) . "</td>\n\t\t<td align=left>" . help_icon('{DotClearUserEnabledText}', true) . "</td>\n\t</tr>";
    $form = Field_hidden('USER_SYSTEM_INFOS_UID', $ct->uid) . "\n\t<div style='text-align:right;margin-top:-5px;margin-bottom:9px;'><code>{home}:{$ct->homeDirectory}</code></div>\n\t<div id='ChangeUserPasswordID'>\n\t<table style='width:100%'>\n\t\n\t<tr>\n\t\t<td class=legend nowrap>{loginShell}:</td>\n\t\t<td align=left width=1%>" . Field_text('loginShell', $ct->loginShell, 'width:190px') . "</td>\n\t\t<td align=left>" . help_icon('{loginShellText}', true) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend nowrap>{homeDirectory}:</td>\n\t\t<td align=left width=1%>" . Field_array_Hash($paths, 'homeDirectory', $ct->homeDirectory) . "</td>\n\t\t<td align=left>" . help_icon('{homeDirectoryText}', true) . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend nowrap>{UidNumber}:</td>\n\t\t<td align=left width=1%>" . Field_text('UidNumber', $ct->uidNumber, 'width:90px') . "</td>\n\t\t<td align=left>" . help_icon('{UidNumberText}', true) . "</td>\n\t</tr>\n\t\t\n\t\t\n\t<tr><td colspan=3><hr></td></tr>\n\t<tr>\n\t\t<td colspan=3 align='right'>" . button("{edit}", "UserSystemInfosSave()") . "\n\t</tr>\n\t</table>\n\t</div>\n\t";
    $form = RoundedLightWhite($form);
    $safebox = Paragraphe("safe-box-64.png", "{coffrefort}", "{coffrefort_create_user}", "javascript:Loadjs('domains.edit.user.safebox.php?uid={$ct->uid}')");
    if (!$priv->CRYPTSETUP_INSTALLED) {
        $safebox = null;
    }
    $html = "<H1>{UserSystemInfos}</H1>\n\t<div style='margin-top:-35px;text-align:right;margin-bottom:30px;width:95%'>\n\t\t<i style='font-size:16px;font-weight:bold;padding-bottom:4px;color:white'>{$ct->DisplayName}</i>\n\t</div>\n\t<div id='UserSystemInfosSave'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t{$safebox}\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t{$form}\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #17
0
function dmidecode()
{
    $sock = new sockets();
    $datas = $sock->getfile("dmidecode");
    $tbl = explode("\n", $datas);
    if (is_array($tbl)) {
        $a[] = "<table>";
        while (list($num, $line) = each($tbl)) {
            if (trim($line) == null) {
                continue;
            }
            if (preg_match('#^([a-zA-Z]+)#', $line)) {
                $a[] = "<tr><td style='font-size:14px;font-weight:bold;border-bottom:1px solid #CCCCCC;padding-top:10px' colspan=2>{$line}</td></tr>";
                continue;
            }
            if (preg_match('#\\s+(.+?):(.+)#', $line, $re)) {
                $a[] = "<tr>\n\t\t\t\t\t<td class=legend>{$re[1]}</td><td><strong>{$re[2]}</strong></td></tr>";
                continue;
            }
            if (preg_match("#^\t\t([a-zA-Z]+)#", $line)) {
                $a[] = "<tr>\n\t\t\t\t\t<td class=legend></td><td><li>{$line}</li></td></tr>";
                continue;
            }
        }
    }
    $a[] = "</table>";
    $html = "<H1>{dmidecode}</H1>\n\t<p class=caption>{dmidecode_text}</p>\n\t" . RoundedLightWhite("<div style='width:100%;height:300px;overflow:auto'>" . implode("\n", $a));
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #18
0
function database_infos()
{
    $database = $_GET["database"];
    $list = TABLE_LIST($database);
    $html = "<H1>{tables_list}:: {$database}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%>{$warn}{$refresh}<br>{$add}<br>{$DEF_ICO_REMOTE_STORAGE}</td>\n\t<td valign='top'>\n\t\t<p class=caption>{browse_mysql_server_text}</p>\n\t\t" . RoundedLightWhite("<div id='tablemysqllist' style='width:100%;height:250px;overflow:auto'>{$list}</div>") . "\n\t</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'mysql.index.php');
}
Example #19
0
function popup()
{
    $ldap = new clladp();
    $cyruspass = $ldap->CyrusPassword();
    $html = "<H1>{cyrus password}</H1>\n\t<div id='change_cyrus_password'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%><img src='img/cyrus-password-120.png'></td>\n\t\t<td valign='top'><p class=caption>{change_cyrus_password}</p>\n\t\t<br>" . RoundedLightWhite("\n\t\t\t<table style='width:99%'>\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{password}:</td>\n\t\t\t\t<td>" . Field_password('cyruspassword', $cyruspass) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'><hr><input type='button' Onclick=\"javascript:SaveCyrusPassword();\" value='{edit}&nbsp;'></td>\n\t\t\t</tr>\n\t\t</table>") . "\n\t\t</td>\n\t\t</tr>\n\t\t</table></div>";
    $tp = new templates();
    echo $tp->_ENGINE_parse_body($html, 'cyrus.index.php');
}
Example #20
0
function img()
{
    $sock = new sockets();
    $date = date('YmdHis');
    $sock->getfile("dstatpostfix:/usr/share/artica-postfix/ressources/logs/web/dstat-postfix-{$date}.png");
    $img = RoundedLightWhite("\n<input type='hidden' id='postfix-memid' value='{$date}'>\n<center>\n<img src='ressources/logs/web/dstat-postfix-{$date}.png' style='margin:3px;border:1px solid #CCCCCC'></center>");
    return $img;
}
function popup()
{
    $list = SHARED_FOLDERS_LIST($_GET["popup"]);
    $gp = new groups($_GET["popup"]);
    $html = "<H1>{shared_folders} {$gp->groupName}</H1>\n\t<p class=caption>{add_shared_folder_text}</p>\n\t<table style='width:100%' class=table_form>\n\t<tr>\n\t\t<td valign='top' class=legend>{path}:</td>\n\t\t<td valign='top'>" . Field_text('SharedPath', null) . "</td>\n\t\t<td valign='top'><input type='button' style='margin:0px' OnClick=\"javascript:Loadjs('SambaBrowse.php?t=&homeDirectory=&no-shares=yes&field=SharedPath&without-start=no')\" value='{browse}...'></td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'><input type='button' OnClick=\"javascript:SharedPathAdd();\" value='{add_shared_folder}&nbsp;&raquo;'>\n\t</tr>\n\t</table>\n\t<br>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' width=1%>" . Paragraphe('64-refresh.png', '{rebuild_shared}', '{rebuild_shared_text}', "javascript:SharedFolderRebuild()") . "\n\t\t<br>\n\t\t" . Buildicon64('DEF_ICO_AUTOFS_RESTART') . "\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t" . RoundedLightWhite("<div style='width:100%;height:200px;overflow:auto' id='SharedDiv'>{$list}</div>") . "\n\t\t</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, "domains.edit.group.php");
}
function popup_index()
{
    $main = new main_cf();
    $page = CurrentPageName();
    $html = "<table style='width:600px' align=center>\n<tr>\n<td valign='top'><div style='width:100%;height:400px;overflow:auto'>\n<form name='FFMAP'>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_1}</H5></td></tr>\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_1_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_error_sleep_time}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_error_sleep_time', $main->main_array["smtpd_error_sleep_time"], 'width:20%', null, null, '{smtpd_error_sleep_time_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n\n\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_2}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_2_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_soft_error_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_soft_error_limit', $main->main_array["smtpd_soft_error_limit"], 'width:20%', null, null, '{smtpd_soft_error_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_hard_error_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_hard_error_limit', $main->main_array["smtpd_hard_error_limit"], 'width:20%', null, null, '{smtpd_hard_error_limit_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_3}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_3_text}') . "</td></tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_connection_count_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_connection_count_limit', $main->main_array["smtpd_client_connection_count_limit"], 'width:20%', null, null, '{smtpd_client_connection_count_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_connection_rate_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_connection_rate_limit', $main->main_array["smtpd_client_connection_rate_limit"], 'width:20%', null, null, '{smtpd_client_connection_rate_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_message_rate_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_message_rate_limit', $main->main_array["smtpd_client_message_rate_limit"], 'width:20%', null, null, '{smtpd_client_message_rate_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_recipient_rate_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_recipient_rate_limit', $main->main_array["smtpd_client_recipient_rate_limit"], 'width:20%', null, null, '{smtpd_client_recipient_rate_limit_text}') . "\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_new_tls_session_rate_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_new_tls_session_rate_limit', $main->main_array["smtpd_client_new_tls_session_rate_limit"], 'width:20%', null, null, '{smtpd_client_new_tls_session_rate_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_client_event_limit_exceptions}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_client_event_limit_exceptions', $main->main_array["smtpd_client_event_limit_exceptions"], 'width:70%', null, null, '{smtpd_client_event_limit_exceptions_text}') . "\n\t</tr>\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\t\t\t\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_4}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_4_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{in_flow_delay}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('in_flow_delay', $main->main_array["in_flow_delay"], 'width:10%', null, null, '{in_flow_delay_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_connect_timeout}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_connect_timeout', $main->main_array["smtp_connect_timeout"], 'width:50%', null, null, '{smtp_connect_timeout_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_helo_timeout}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_helo_timeout', $main->main_array["smtp_helo_timeout"], 'width:50%', null, null, '{smtp_helo_timeout_text}') . "\n\t</tr>\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\n\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_8}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_8_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{initial_destination_concurrency}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('initial_destination_concurrency', $main->main_array["initial_destination_concurrency"], 'width:50%', null, null, '{initial_destination_concurrency_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_destination_concurrency_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('default_destination_concurrency_limit', $main->main_array["default_destination_concurrency_limit"], 'width:50%', null, null, '{default_destination_concurrency_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{local_destination_concurrency_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('local_destination_concurrency_limit', $main->main_array["local_destination_concurrency_limit"], 'width:50%', null, null, '{local_destination_concurrency_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtp_destination_concurrency_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtp_destination_concurrency_limit', $main->main_array["smtp_destination_concurrency_limit"], 'width:80%', null, null, '{smtp_destination_concurrency_limit_text}') . "\n\t</tr\t\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_5}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_5_text}') . "</td></tr>\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_destination_recipient_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('default_destination_recipient_limit', $main->main_array["default_destination_recipient_limit"], 'width:50%', null, null, '{default_destination_recipient_limit_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{smtpd_recipient_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('smtpd_recipient_limit', $main->main_array["smtpd_recipient_limit"], 'width:50%', null, null, '{smtpd_recipient_limit_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\n</table>") . "<br>\n" . RoundedLightWhite("<table style='width:500px'>\n\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_6}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_6_text}') . "</td></tr>\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{queue_run_delay}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('queue_run_delay', $main->main_array["queue_run_delay"], 'width:50%', null, null, '{queue_run_delay_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{minimal_backoff_time}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('minimal_backoff_time', $main->main_array["minimal_backoff_time"], 'width:50%', null, null, '{minimal_backoff_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{queue_run_delay}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('maximal_backoff_time', $main->main_array["maximal_backoff_time"], 'width:50%', null, null, '{maximal_backoff_time_text}') . "\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{maximal_queue_lifetime}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('maximal_queue_lifetime', $main->main_array["maximal_queue_lifetime"], 'width:50%', null, null, '{maximal_queue_lifetime_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{bounce_queue_lifetime}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('bounce_queue_lifetime', $main->main_array["bounce_queue_lifetime"], 'width:50%', null, null, '{bounce_queue_lifetime_text}') . "\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('qmgr_message_recipient_limit', $main->main_array["qmgr_message_recipient_limit"], 'width:50%', null, null, '{qmgr_message_recipient_limit_text}') . "\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{qmgr_message_recipient_minimum}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('qmgr_message_recipient_minimum', $main->main_array["qmgr_message_recipient_minimum"], 'width:50%', null, null, '{qmgr_message_recipient_minimum_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\t\t\t\n<tr><td colspan=2 ><H5 style='margin:0px;font-size:13px'>{title_postfix_tuning_7}</H5></td></tr>\t\n<tr><td colspan=2 >" . helpCoolapse('{title_postfix_tuning_7_text}') . "</td></tr>\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{default_process_limit}&nbsp;:</strong></td>\n\t\t<td align='left'>" . Field_text('default_process_limit', $main->main_array["default_process_limit"], 'width:50%', null, null, '{default_process_limit_text}') . "\n\t</tr>\t\t\n<tr><td align='right' colspan='2' style='border-top:1px solid #CCCCCC'><input type='button' value='{edit}&nbsp;&raquo;' OnClick=\"javascript:ParseForm('FFMAP','{$page}',true,true);\"></td></tr>\t\t\t\t\n</form>\t\n</table>") . "\t\n\n</div>\n</td>\n</tr>\n</table>";
    $tpl = new Templates();
    echo $tpl->_ENGINE_parse_body($html);
}
function popup()
{
    $os = new os_system();
    $mem = $os->html_Memory_usage();
    $html = "<H1>{task_manager}</H1>\n\t<table style=width:100%>\n\t<tr>\n\t<td valign='top'>\n\n\t\t<div id='CurrentSystemTaskManagerCPU'></div>\t\n\t</td>\t\n\t<td valign='top'>\n\t\t<div id='CurrentSystemTaskManager'>{$mem}</div>\n\t</td>\n\t</tr>\n\t</table>\n\t" . RoundedLightWhite("\n\t<table><tr>\n\t\t\t<td class=legend width=1%>{refresh}:</td>\n\t\t\t<td width=99%>" . Field_text('refreshTask', 5, 'width:35px') . "&nbsp;seconds</td>\n\t\t</tr></table>\t\n\t<div style='width:100%;height:350px;overflow:auto' id='taskslist'><center><img src=img/wait_verybig.gif></center></div>");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #24
0
function popup()
{
    $page = CurrentPageName();
    $icon = Buildicon64('DEF_ICO_NTPOL_HOWTO');
    $html = "<H1>{NTconfig}</H1>\n<p class=caption>{NTconfig_text}</p>\n<p class=caption>{NTconfig_howto}</p>\n<table style='width:100%'>\n<tr>\n<td valign='top'>\n" . RoundedLightWhite("\n<iframe src='{$page}?iframe=yes' style='width:100%;height:120px;border:0px'></iframe>\n\n") . "</td>\n<td valign='top'>{$icon}</td>\n</tr>\n</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, "fileshares.index.php");
}
function PagePostFixQueue_2()
{
    $main = new main_cf();
    $save = "<input type='button' value='{submit}&raquo;' OnClick=\"javascript:ParseForm('ffmStorageQueue','tree.listener.postfix.php',true);\">";
    $html = "\n\t\t<div id=tablist>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(1)\">{bounce_messages_rules}</a></li>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(2)\"  id=tab_current>{queue_settings}</a></li>\n\t\t</div>\n\t\t<H5 style='margin:0px;margin-bottom:4px;font-size:14px;'>{queue_settings}</H5>\n\t\t" . RoundedLightWhite("<div style='width:100%;height:400px;overflow:auto'>\n\t\t<form name='ffmStorageQueue'>\n\t\t<input type='hidden' name='save_bounce_maincf' value='yes'>\n\t\t<table>\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t\t<tr>\n\t\t\t    <td nowrap align='right' class=legend>{maximal_queue_lifetime}</strong>:</td>\n\t\t\t    <td>" . Field_text('maximal_queue_lifetime', $main->main_array["maximal_queue_lifetime"], 'width:40%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{maximal_queue_lifetime_text}</td>\n\t\t</tr>\n\t\t<!-- -- --- --->\t\t\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t</table>\n\t\t</form></div>");
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
Example #26
0
function popup()
{
    $tpl = new templates();
    $PostfixAutoBlockDenyAddWhiteList = $tpl->_ENGINE_parse_body("{PostfixAutoBlockDenyAddWhiteList}", "postfix.index.php");
    $add_whitelist = Paragraphe("64-bind9-add-zone.png", "{$PostfixAutoBlockDenyAddWhiteList}", "{PostfixAutoBlockDenyAddWhiteList_explain}", "javascript:PostfixAutoBlockDenyAddWhiteList();");
    $html = "<H1>{PostfixAutoBlockDenyAddWhiteList}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t" . RoundedLightWhite("<div style='width:100%;height:300px;overflow:auto' id='BlockDenyAddWhiteList'>" . WhiteList() . "</div>") . "\t\n\t\t\n\t</td>\n\t<td valign='top' width=2%>\n\t{$add_whitelist}\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
Example #27
0
function logs()
{
    $page = CurrentPageName();
    $dd = logs_datas();
    $html = "<H1>{icap_logs}</H1>\n\t<p class=caption>{icap_logs_text}</p>\n\t\n\t" . RoundedLightWhite("<div style='width:99%;height:300px;overflow:auto'>{$dd}</div>");
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #28
0
function popup()
{
    $html = "<H1>{REPLICATE_YOUR_MAILBOXES}</H1>\n\t\n\t\n\t" . RoundedLightWhite("<div style='width:100%;height:300px;overflow:auto' id='CyrsSynchroDiv'></div>");
    $tpl = new templates();
    $sock = new sockets();
    $sock->getfile('CyrusMasterSyncClient');
    echo $tpl->_ENGINE_parse_body($html, "cyrus.clusters.php");
}
Example #29
0
function popup()
{
    $div = "<div style='width:100%;height:350px;overflow:auto' id='phpevents'></div>";
    $div = RoundedLightWhite($div);
    $html = "<H1>{PHP_EVENTS}</h1>\n\t\t<p class=caption>{PHP_EVENTS_TEXT}</p>\n\t\t<br>\n\t\t{$div}\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Example #30
0
function sommaire()
{
    $add = Paragraphe("my-address-book-user-add.png", '{add_new_contact}', '{add_new_contact_text}', "javascript:Loadjs('contact.php')");
    $left = RoundedLightWhite($add);
    $html = "<H1>{my_address_book}</H1>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$left}\n\t\t</td>\n\t\t\n\t\t<td valign='top'>\n\t\t</td>\n\t</tr>\n\t</table>\n\t\t\t\t\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}