コード例 #1
0
ファイル: fetchmail.index.php プロジェクト: rsd/artica-1.5
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>";
		}

		

		
$html=$html . "</table>
</td>
</tr>
</table>
<script>LoadAjax('status','$page?status=yes');</script>
";
$tpl=new template_users('Fetchmail',$html);
echo $tpl->web_page;
	
	
	
}
コード例 #2
0
function PAGE()
{
    $LocalFetchMailRc = LocalFetchMailRc();
    $fetchmail_explain = "<div style='padding:2px;margin:5px'>\n<table>\n<tr>\n<td valign='top'>\n<img src='img/fetchmail_explain.png'>\n</td>\n<td valign='top'><div class=explain>{fetchmail_explain}</div></td>\n</tr>\n</table>";
    $return = RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>");
    $html = "\n<table style='width:100%'>\n<tr>\n<td width=50% valign='top'>\n\t<span id='fetchmailbuttons'>{$LocalFetchMailRc}</span>\n\t<br>\n\t<div id='left'></div>\n\t</td>\n<td width=50% valign='top'>{$return}<br>" . applysettings("fetch") . "{$fetchmail_explain}<br>" . RightMenu() . "</td>\n</tr>\n</table>\n";
    $CFG["JS"][] = 'js/wizard.fetchmail.js';
    $tpl = new template_users('{get_mails_isp}', $html, 0, 0, 0, 0, $CFG);
    echo $tpl->web_page;
}
コード例 #3
0
ファイル: mailman.lists.php プロジェクト: BillTheBest/1.6.x
function page()
{
    $page = CurrentPageName();
    //mailman-add.png
    $gb = bouton_globalsettings();
    $html = "\n<input type='hidden' id='ou' value='{$_GET["ou"]}'>\n<input type='hidden' id='add_mailman_prompt' value='{add_mailman_prompt}'>\n<input type='hidden' id='MailManListAdminPassword_text' value='{MailManListAdminPassword_text}'>\n<input type='hidden' id='MailManListAdministrator_text' value='{MailManListAdministrator_text}'>\n<input type='hidden' id='are_you_sure_to_delete' value='{are_you_sure_to_delete}'>\n<table style=width:100%'>\n<tr>\n\t\n\t<td valign='top' width=60%>\n\t\t<H5>{mailman_lists}</H5>\n\t\t\t<div id=mailman_lists></div>\n\t\t\t<div style='text-align:right'>" . imgtootltip('20-refresh.png', '{refresh}', "LoadAjax('mailman_lists','{$page}?LoadLists=yes');") . "</div>\n\t</td>\n\t<td valign='top'>" . bouton_add() . applysettings("mailman") . $gb . bouton_gourl() . "</td>\n\t\n</tr>\n\n</table>\n\n\n\n\n<script>LoadAjax('mailman_lists','{$page}?LoadLists=yes&ou={$_GET[ou]}');</script>\n";
    $JS["JS"][] = "js/mailman.js";
    $tpl = new template_users('{manage_mailman_lists} (in construction don\'t use)', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}
コード例 #4
0
ファイル: sqlgrey.index.php プロジェクト: BillTheBest/1.6.x
function main_page()
{
    if ($_GET["hostname"] == null) {
        $user = new usersMenus();
        $_GET["hostname"] = $user->hostname;
    }
    $html = "<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'><img src='img/bg_sqlgrey.jpg'>\t<p class=caption>{about}</p></td>\n\t<td>\n\t" . applysettings("sqlgrey") . "<br>" . main_status() . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'><br>\n\t\t\t<div id='main_config'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>LoadAjax('main_config','{$page}?main=yes');</script>\n\t\n\t";
    $cfg["JS"][] = 'js/sqlgrey.js';
    $tpl = new template_users('{APP_SQLGREY}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
コード例 #5
0
ファイル: pureftp.index.php プロジェクト: brucewu16899/artica
function main_page()
{
    if ($_GET["hostname"] == null) {
        $user = new usersMenus();
        $_GET["hostname"] = $user->hostname;
    }
    $html = "<table style='width:100%'>\n\t<tr>\n\t<td width=1% valign='top'>\n\t\t<img src='img/pure-ftpd.png' style='margin-right:50px;margin-left:50px'><br><br>\n\t\t" . applysettings("pure-ftpd") . "\n\t</td>\n\t<td valign='top'>\n\t " . main_status() . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 valign='top'>\n\t\t\t<div id='main_config_pureftpd'></div>\n\t\t</td>\n\t</tr>\n\t</table>\n\t<script>LoadAjax('main_config_pureftpd','{$page}?main=yes');</script>\n\t\n\t";
    $cfg["JS"][] = 'js/pureftpd.js';
    $tpl = new template_users('{APP_PUREFTPD}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
コード例 #6
0
function Page()
{
    $main = new main_cf();
    $page = CurrentPageName();
    $intro = RoundedLightGreen('<img src="img/infowarn-64.png" align=left style="margin:3px">{send_isp_relay_text3}');
    $form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>\n\t\t<H5>{servername}</H5>\n\t\t<br>\n\t\t{send_isp_relay_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_ip', $main->main_array["relayhost"]) . "</td>\n\t\t</tr>\t\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditRelayhost();\" value='{edit}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>") . "\n\t<br>";
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' style='width:50%'>\n\n\t{$form}</td>\n\t<td valign='top'>\n\t\t" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>" . applysettings("postfix") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
    $cfg["LANG_FILE"] = "artica.wizard.php";
    $cfg["JS"][] = "js/postfix-sasl.js";
    $tpl = new template_users('{send_isp_relay}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
コード例 #7
0
function Page()
{
    $main = new main_cf();
    $smtp_sasl_auth_enable = $main->main_array["smtp_sasl_auth_enable"];
    $page = CurrentPageName();
    $intro = applysettings("postfix") . RoundedLightBlue('<p style="text-align:justify;"><img src="img/infowarn-64.png" align=left style="margin:3px">{smtp_sasl_auth_enable_text}</p>');
    $intro = $intro . "<br>" . "" . "<script>LoadAjax('sasllist','{$page}?loadsaslList=yes');</script>";
    $form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Field_yesno_checkbox_img('smtp_sasl_auth_enable', $smtp_sasl_auth_enable, '{enable_disable}') . "</td>\n\t<td>\n\t\t<H5>{smtp_sasl_auth_enable}</H5>\n\t\t<br>\n\t\t{smtp_sasl_auth_enable_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditSasl();\" value='{apply}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>") . "\n\t<br>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/klakcon_285.png'></td>\n\t<td>\n\t\t<H5>{add_credentials}</H5>\n\t<br>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td colspan=2><strong>{isp_server_name}:</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_name', null) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td width=1% nowrap align='right'><strong>{username}:</strong></td>\n\t\t\t<td>" . Field_text('username', null) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right'><strong>{password}:</strong></td>\n\t\t\t<td>" . Field_text('password', null) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' value='{add}&nbsp;&raquo;' OnClick=\"javascript:sasl_add_isp_relay();\">\n\t\t</tr>\t\t\t\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>") . "<br>" . RoundedLightGrey("<H5>{table}</H5><div id='sasllist'></div>");
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=50%>\t\n\t{$form}</td>\n\t<td valign='top'  width=50%>" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
    $cfg["LANG_FILE"] = "artica.wizard.php";
    $cfg["JS"][] = "js/postfix-sasl.js";
    $tpl = new template_users('{send_to_isp}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}
コード例 #8
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;
}
コード例 #9
0
function main_rules_apply_conf()
{
    if ($_GET["hostname"] == null) {
        $users = new usersMenus();
        $_GET["hostname"] = $users->hostname;
    }
    $dans = new dansguardian($_GET["hostname"]);
    $dans->SaveSettings();
    if (is_array($dans->Master_rules_index)) {
        while (list($num, $line) = each($dans->Master_rules_index)) {
            $rules = new dansguardian_rules($hostname, $num);
            $rules->SaveConfigFiles();
        }
    }
    $squid = new squidbee();
    $squid->SaveToLdap();
    $squid->SaveToServer();
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body(applysettings("dansguardian", "ApplyDansGuardianSettings('{$_GET["hostname"]}')"));
}
コード例 #10
0
function RightInfos()
{
    $kas = new kas_filter();
    $st = RoundedLightGrey($kas->KasStatus() . "</table>");
    $html = applysettings("kas") . "<br>{$st}";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #11
0
ファイル: squid.simple.php プロジェクト: brucewu16899/1.6.x
function main_page(){
	
	switch ($_GET["main"]) {
			case "network":main_network();exit;break;
			case "Safe_ports":main_Safe_ports();exit;break;
			case "config":main_configfile();exit;break;
			case "Safe_ports_list":echo main_Safe_ports_list();exit;break;
			case "deny_ext":main_denyext();exit;break;
			case "deny_ext_list":echo main_denyext_list();exit;break;
			case "kavav":echo main_kav4proxy();exit;break;
			case "info":echo main_infos();exit;break;			
			default:
				break;
		}	
		
		

	if($_GET["hostname"]==null){$user=new usersMenus();$hostname=$user->hostname;$_GET["hostname"]=$hostname;}else{$hostname=$_GET["hostname"];}
$apply=applysettings("squid","SQUID_APPLY('{$_GET["hostname"]}')");
	
	
	$html=
	"
<script language=\"JavaScript\">       
var timerID  = null;
var timerID1  = null;
var tant=0;
var reste=0;

function demarre(){
   tant = tant+1;
   reste=10-tant;
	if (tant < 10 ) {                           
      timerID = setTimeout(\"demarre()\",5000);
      } else {
               tant = 0;
               //document.getElementById('wait').innerHTML='<img src=img/wait.gif>';
               ChargeLogs();
               demarre();                                //la boucle demarre !
   }
}


function ChargeLogs(){
	var status='status';
	
	if(document.getElementById('statusid')){
		status=document.getElementById('statusid').value;
	}
	LoadAjax('services_status','squid.index.php?status='+ status+'&hostname={$_GET["hostname"]}');
	}
</script>		
	<table style='width:100%'>
	<tr>
	<td width=1% valign='top'><img src='img/bg_squid.jpg'><p class=caption>{squid_simple_intro}</p></td>
	<td valign='top'>
	<div id='services_status'></div>
	</td>
	</tr>
	<tr>
		<td colspan=2 valign='top'>
			<div id='squid_main_config'></div>
		</td>
	</tr>
	</table>
	<script>LoadAjax('squid_main_config','$page?main=network');</script>
	<script>demarre();</script>
	<script>ChargeLogs();</script>
	";
	
	
	$cfg["JS"][]='js/squid.js';
	$cfg["JS"][]='js/icap.js';
	
	
	
	$tpl=new template_users('Squid',$html,0,0,0,0,$cfg);
	
	echo $tpl->web_page;
	
	
	
}
コード例 #12
0
function main_services()
{
    $html = main_tabs() . "<br>\n\t<H5>{services}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=50%></td>\n\t<td width=50% valing='top'>" . applysettings("kav4proxy") . "</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html, 'milter.index.php');
}
コード例 #13
0
function main_status_saveconf()
{
    $apply = applysettings("squid", "SQUID_APPLY('{$_GET["hostname"]}')");
    $tpl = new templates();
    $html = main_status_tab() . RoundedLightGrey($apply);
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html . "<br>");
}
コード例 #14
0
function section_config()
{
    $fetch = new fetchmail();
    if (isset($_GET["build"])) {
        $fetch->Save();
        $fetch = new fetchmail();
    }
    $fetchmailrc = $fetch->fetchmailrc;
    $FetchGetLive = $fetch->FetchGetLive;
    $save = Paragraphe('disk-save-64.png', '{generate_config}', '{generate_config_text}', "javascript:LoadAjax(\"fetchmail_daemon_rules\",\"fetchmail.daemon.rules.php?Showlist=yes&tab=1&build=yes\")");
    $fetchmailrc = htmlentities($fetchmailrc);
    $fetchmailrc = nl2br($fetchmailrc);
    $FetchGetLive = htmlentities($FetchGetLive);
    $FetchGetLive = nl2br($FetchGetLive);
    $tpl = new templates();
    $html = section_tabs() . "<br><H5>{see_config}</H5><br>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=75% valign='top'>" . RoundedLightGreen("<code>{$fetchmailrc}</code>") . "<br>" . RoundedLightGreen("<code>{$FetchGetLive}</code>") . "</td>\n\t<td valign='top'>{$save}<br>" . applysettings("fetch") . "</td>\n\t</tr>\n\t</table>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #15
0
function RightInfos()
{
    $kas = new kas_filter();
    $st = RoundedLightGrey($kas->KasStatus() . "</table>");
    $perf = Paragraphe('proxy-64.png', '{update_now}', '{update_now}', "javascript:KasUpdates();");
    $pref_force = Paragraphe('proxy-delete-64.png', '{clean_update}', '{clean_update}', "javascript:KasforceUpdates();");
    $perf = RoundedLightGrey($perf);
    $pref_force = RoundedLightGrey($pref_force);
    $html = applysettings("kas") . "{$perf}<br>{$pref_force}<br>{$st}";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}