コード例 #1
0
function INDEX()
{
    $ave = new kav4mailservers_single($_GET["ou"]);
    $html = "\n<table style='width:100%'>\n<tr>\n<td width=1%><img src='img/tank.jpg'></td>\n<td>\n<form name='ffm1' method=get>\n<input type='hidden' name='ou' value='{$_GET["ou"]}'>\n<div class='caption'>{aveserver_intro_global}</div>\n<table style='width:100%'>\n\n\t\t<tr><td colspan=2><h4>{when_found_virus}</H4></td></tr>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{delete_mail}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('DeleteDetectedVirus', $ave->main_array["DeleteDetectedVirus"], '{enable_disable}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{ArchiveMail}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('ArchiveMail', $ave->main_array["ArchiveMail"], '{enable_disable}') . "</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyFrom}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('NotifyFrom', $ave->main_array["NotifyFrom"], '{enable_disable}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyTo}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('NotifyTo', $ave->main_array["NotifyTo"], '{enable_disable}') . "</td>\n\t\t</tr>\n\t\t\t\n</table>\n\n\n</td>\n</tr>\n<tr>\n<td colspan=2>\n<table style='width:100%'>\n<tr><td colspan=2><h4>{NotifyMessage}</H4></td></tr>\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyFromAddress}:</strong></td>\n\t\t\t<td>" . Field_text('NotifyFromAddress', $ave->main_array["NotifyFromAddress"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyMessageSubject}:</strong></td>\n\t\t\t<td>" . Field_text('NotifyMessageSubject', $ave->main_array["NotifyMessageSubject"]) . "</td>\n\t\t</tr>\t\t\n\t\t<tr><td colspan=2>" . TinyMce('NotifyMessageTemplate', $ave->main_array["NotifyMessageTemplate"]) . "</td></tr>\t\t\t\t\t\n\t\t<tr><td colspan=2 align='right'><input type='submit' value='{apply}&nbsp;&raquo;'></td></tr>\n</table>\n</td>\n</tr>\n</table></form>";
    $tpl = new template_users('{antivirus_engine}', $html);
    echo $tpl->web_page;
}
コード例 #2
0
ファイル: vacation.php プロジェクト: brucewu16899/artica
function content()
{
    $user = new user($_SESSION["uid"]);
    $tiny = TinyMce('vacationInfo', stripslashes($user->vacationInfo));
    $tpl = new templates();
    $html = "\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t{$tiny}\n\t<center>\n\t<hr>" . button("{edit}", "document.forms['tinymcedisclaimer'].submit();") . "</center>\n\t</form>\n\t\n\t";
    $page = $tpl->_ENGINE_parse_body($html);
    echo $tpl->PopupPage($page);
}
コード例 #3
0
function FormTemplate()
{
    $tpl = new templates();
    $q = new mysql();
    $sql = "SELECT TEMPLATE_DATA FROM squid_templates WHERE TEMPLATE_NAME='{$_GET["TEMP"]}'";
    $ligne = @mysql_fetch_array($q->QUERY_SQL($sql, 'artica_backup'));
    $tpl = new templates();
    $button = $tpl->_ENGINE_parse_body("<input type='submit' value='{apply}'>");
    $tiny = TinyMce('TEMPLATE_DATA', $ligne["TEMPLATE_DATA"]);
    $html = "\n\t<html>\n\t<head>\n\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_forms.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t<script type='text/javascript' language='JavaScript' src='mouse.js'></script>\n\t<script type='text/javascript' language='javascript' src='XHRConnection.js'></script>\n\t<script type='text/javascript' language='javascript' src='default.js'></script>\n\t\t\n\t</head>\n\t<body width=100% style='background-color:#005447;margin:0px;padding:0px'> \n\t<form name='FFM1' METHOD=POST style='margin:0px;padding:0px'>\n\t<input type='hidden' name='TEMPLATE_NAME' value='{$_GET["TEMP"]}'>\n\t<div style='text-align:center;width:100%;background-color:white;margin-bottom:10px;padding:10px'>{$button}<br></div>\n\t<center>\n\t<div style='width:750px;height:650px'>{$tiny}</div>\n\t</center>\n\t<div style='text-align:center;width:100%;background-color:white;margin-top:10px;padding:10px'>{$button}<br></div>\n\t\n\t</form>\n\t</body>\n\t\n\t</html>";
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #4
0
ファイル: altermime.php プロジェクト: BillTheBest/1.6.x
function altermime_disclaimer()
{
    $sock = new sockets();
    if (isset($_POST["AlterMimeHTMLDisclaimer"])) {
        writelogs("Saving disclaimer size=" . strlen($_POST["AlterMimeHTMLDisclaimer"]), __FUNCTION__, __FILE__);
        $sock->SaveConfigFile($_POST["AlterMimeHTMLDisclaimer"], "AlterMimeHTMLDisclaimer");
        $AlterMimeHTMLDisclaimer = $_POST["AlterMimeHTMLDisclaimer"];
    } else {
        $AlterMimeHTMLDisclaimer = $sock->GET_INFO("AlterMimeHTMLDisclaimer");
    }
    if ($AlterMimeHTMLDisclaimer == null) {
        $AlterMimeHTMLDisclaimer = $DisclaimerExample;
        $sock->SaveConfigFile($DisclaimerExample, "AlterMimeHTMLDisclaimer");
    }
    $tpl = new templates();
    $tiny = TinyMce('AlterMimeHTMLDisclaimer', $AlterMimeHTMLDisclaimer);
    $page = CurrentPageName();
    $html = "\n\t<H1>{edit_disclaimer}</H1>\n\t<p class=caption>{edit_disclaimer_text}</p>\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t{$tiny}\n\t</form>\n\t\n\t\n\t";
    $tpl = new template_users('{edit_disclaimer}', $html, 0, 1, 1);
    echo $tpl->web_page;
}
コード例 #5
0
include_once 'ressources/class.squid.inc';
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "<H1>" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "</H1>";
    exit;
}
if (isset($_POST["DansGuardianWhiteListIntro"])) {
    save();
}
$sock = new sockets();
$DansGuardianWhiteListIntro = $sock->GET_INFO("DansGuardianWhiteListIntro");
if (strlen($DansGuardianWhiteListIntro) < 2) {
    $DansGuardianWhiteListIntro = "\n\t\t<strong style=\"font-size:14px\">Unlock this Website</strong><hr><br><i style=\"font-size:14px\">Access to this site is restricted because it is not classified in any category selected by our company policy.<br>If you think that this website is safe and help your work for company objectives, you are free to save this website into categories listed bellow.</i><hr>";
}
$tpl = new templates();
$button = $tpl->_ENGINE_parse_body("<input type='submit' value='{apply}'>");
$tiny = TinyMce('DansGuardianWhiteListIntro', $DansGuardianWhiteListIntro);
$html = "\n\t<html>\n\t<head>\n\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_forms.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t<script type='text/javascript' language='JavaScript' src='mouse.js'></script>\n\t<script type='text/javascript' language='javascript' src='XHRConnection.js'></script>\n\t<script type='text/javascript' language='javascript' src='default.js'></script>\n\t\t\n\t</head>\n\t<body width=100%> \n\t<form name='FFM1' METHOD=POST>\n\t<div style='text-align:center;width:100%;background-color:white;margin-bottom:10px;padding:5px;'><br></div>\n\t<center>\n\t<div style='width:750px;height:900px'>{$tiny}</div>\n\t</center>\n\t<div style='text-align:center;width:100%;background-color:white;maring-top:10px'>{$button}</div>\n\t\n\t</form>\n\t</body>\n\t\n\t</html>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
function save()
{
    $sock = new sockets();
    $_POST["DansGuardianWhiteListIntro"] = stripslashes($_POST["DansGuardianWhiteListIntro"]);
    $sock->SaveConfigFile($_POST["DansGuardianWhiteListIntro"], "DansGuardianWhiteListIntro");
}
コード例 #6
0
function charter_content()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $q = new mysql_squid_builder();
    $ID = $_GET["ID"];
    $t = time();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT * FROM itcharters WHERE ID='{$ID}'"));
    $ChartContent = trim($ligne["ChartContent"]);
    if (strlen($ChartContent) < 10) {
        $ChartContent = @file_get_contents("ressources/databases/DefaultAcceptableUsePolicy.html");
    }
    $button = $tpl->_ENGINE_parse_body(button("{apply}", "Save{$t}()", 18));
    $button2 = $tpl->_ENGINE_parse_body(button("{apply}", "Save2{$t}()", 18));
    $tiny = TinyMce('ChartContent', $ChartContent, true);
    $html = "\t\n\t\t<div id='{$t}'></div>\n\t\t<center>\n\t\t<div style='text-align:center;width:100%;background-color:white;margin-bottom:10px;padding:5px;'>{$button}<br></div>\n\t\t<div style='width:750px;height:auto'>{$tiny}</div>\n\t\t<div style='text-align:center;width:100%;background-color:white;margin-top:10px'>{$button2}</div>\n\t\t</center>\n\t<script>\n\tvar xSave{$t}= function (obj) {\n\t\tvar res=obj.responseText;\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\tif(res.length>3){alert(res);return;}\n\t\t\n\t}\nfunction Save2{$t}(){ Save{$t}();}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('ID', '{$ID}');\n\tAnimateDiv('{$t}');\n\tXHR.appendData('ChartContent', encodeURIComponent(tinymce.get('ChartContent').getContent()));\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\t\n}\n</script>";
    echo $html;
}
コード例 #7
0
ファイル: amavis.index.php プロジェクト: brucewu16899/artica
function altermime_disclaimer()
{
    $sock = new sockets();
    if (isset($_POST["AlterMimeHTMLDisclaimer"])) {
        writelogs("Saving disclaimer size=" . strlen($_POST["AlterMimeHTMLDisclaimer"]), __FUNCTION__, __FILE__);
        $sock->SaveConfigFile($_POST["AlterMimeHTMLDisclaimer"], "AlterMimeHTMLDisclaimer");
        $AlterMimeHTMLDisclaimer = $_POST["AlterMimeHTMLDisclaimer"];
    } else {
        $AlterMimeHTMLDisclaimer = $sock->GET_INFO("AlterMimeHTMLDisclaimer");
    }
    $DisclaimerExample = "<p style=\"font-size:12px\"><i>This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed.<br>\n\t\t Any views or opinions expressed are solely those of the author and do not necessarily represent those of &laquo;[business name]&raquo;.<br>\n\t\tIf you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.<br>\n\t\t<br><br>Please contact the sender if you believe you have received this email in error.</i></p>";
    if ($AlterMimeHTMLDisclaimer == null) {
        $AlterMimeHTMLDisclaimer = $DisclaimerExample;
        $sock->SaveConfigFile($DisclaimerExample, "AlterMimeHTMLDisclaimer");
    }
    $tpl = new templates();
    $tiny = TinyMce('AlterMimeHTMLDisclaimer', $AlterMimeHTMLDisclaimer);
    $page = CurrentPageName();
    $html = "\n\t<H1>{edit_disclaimer}</H1>\n\t<p class=caption>{edit_disclaimer_text}</p>\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t{$tiny}\n\t</form>\n\t\n\t\n\t";
    $tpl = new template_users('{edit_disclaimer}', $html, 0, 1, 1);
    echo $tpl->web_page;
}
コード例 #8
0
ファイル: quarantine.ou.php プロジェクト: brucewu16899/artica
function Loadtemplate()
{
    $ou = $_GET["ou"];
    $template_name = $_GET["template"];
    writequeries();
    $ldap = new clladp();
    $dn = "cn=artica_quarantine_settings,ou={$ou},dc=organizations,{$ldap->suffix}";
    if (isset($_GET["ArticaMaxDayTemplate"])) {
        $template_data = "<SUBJECT>{$_GET["subject"]}</SUBJECT>\n\t\t<FROM>{$_GET["from"]}</FROM>\n\t\t<TEMPLATE>{$_GET["ArticaMaxDayTemplate"]}</TEMPLATE>";
        $upd[$template_name][0] = $template_data;
        if (!$ldap->Ldap_modify($dn, $upd)) {
            echo "<H2>{$ldap->ldap_last_error}</H2>";
            exit;
        }
    }
    if (!$ldap->ExistsDN($dn)) {
        $upd["cn"][] = "artica_quarantine_settings";
        $upd["objectClass"][] = 'top';
        $upd["objectClass"][] = 'ArticaQuarantineTemplates';
        $upd["{$template_name}"][] = "DEFAULT";
        $ldap->ldap_add($dn, $upd);
        $template_data = "DEFAULT";
    } else {
        $hash = $ldap->Ldap_read($dn, '(ObjectClass=ArticaQuarantineTemplates)', array(strtolower($template_name)));
        if (!is_array($hash[0][strtolower($template_name)])) {
            unset($upd);
            $upd[$template_name] = "DEFAULT";
            $ldap->Ldap_add_mod($dn, $upd);
            $hash = $ldap->Ldap_read($dn, '(ObjectClass=ArticaQuarantineTemplates)', array(strtolower($template_name)));
        }
        $template_data = $hash[0][strtolower($template_name)][0];
    }
    if ($template_data == "DEFAULT") {
        $template_data = file_get_contents("ressources/databases/{$template_name}.cf");
    }
    if (preg_match('#<SUBJECT>(.+?)</SUBJECT>\\s+<FROM>(.+?)</FROM>\\s+<TEMPLATE>(.+?)</TEMPLATE>#is', $template_data, $reg)) {
        $subject = $reg[1];
        $from = $reg[2];
        $template_d = $reg[3];
    }
    $tiny = TinyMce('ArticaMaxDayTemplate', $template_d);
    $html = "\n\t<html>\n\t<head>\n\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_forms.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t<script type='text/javascript' language='JavaScript' src='mouse.js'></script>\n\t<script type='text/javascript' language='javascript' src='XHRConnection.js'></script>\n\t<script type='text/javascript' language='javascript' src='default.js'></script>\n\t<script type='text/javascript' language='javascript' src='js/quarantine.ou.js'></script>\t\n\t</head>\n\t<body width=100% style='background-color:white'> \n\t\t<H5>{" . "{$template_name}}</H5>\n\t<form name='FFM1'>\n\t<table style='width:100%;margin:10px'>\n\t<tr>\n\t<td align='right'><strong>{from}:</strong></td>\n\t<td><input type='text' name='from' value='{$from}'></td>\n\t</tr>\n\t<tr>\n\t<td align='right'><strong>{subject}:</strong></td>\n\t<td><input type='text' name='subject' value='{$subject}'></td>\n\t</tr>\t\n\t</table>\n\t<div style='width:450px'>{$tiny}</div>\n\t<p class=caption>{template_token}</p>\n\t<input type='hidden' name='ou' value='{$ou}'>\n\t<input type='hidden' name='template' value='{$template_name}'>\n\t</form>\n\t</body>\n\t</html>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
コード例 #9
0
ファイル: user.messaging.php プロジェクト: BillTheBest/1.6.x
function altermime_disclaimer()
{
    $user = new user($_SESSION["uid"]);
    writelogs("user_disclaimer:: user_disclaimer({$user->ou},{$user->uid})", __FUNCTION__, __FILE__, __LINE__);
    $dd = new user_disclaimer($user->ou, $user->uid);
    if (isset($_POST["DisclaimerContent"])) {
        $dd->DisclaimerActivate = $_POST["DisclaimerActivate"];
        $dd->DisclaimerOutbound = $_POST["DisclaimerOutbound"];
        $dd->DisclaimerInbound = $_POST["DisclaimerInbound"];
        $dd->DisclaimerContent = $_POST["DisclaimerContent"];
        $dd->uid = $_SESSION["uid"];
        $dd->ou = $user->ou;
        $dd->SaveDislaimerParameters();
    }
    if ($dd->DisclaimerContent == null) {
        $dd->DisclaimerContent = $dd->DisclaimerExample;
    }
    $tpl = new templates();
    $tiny = TinyMce('DisclaimerContent', stripslashes($dd->DisclaimerContent));
    $page = CurrentPageName();
    $html = "\n\t<H1>{$user->ou}/{$user->DisplayName}</H1>\n\t<p class=caption>{edit_disclaimer_text}</p>\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t<div style='background-color:white;margin:5px'>\n\t<table style='width:99%' class=form style='background-color:white'>\n\t<tr>\n\t\t<td class=legend>{enable_disclaimer}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerActivate", $dd->DisclaimerActivate, "{enable_disable}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{enable_outbound}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerOutbound", $dd->DisclaimerOutbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{enable_inbound}:</td>\n\t\t<td>" . Field_TRUEFALSE_checkbox_img("DisclaimerInbound", $dd->DisclaimerInbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "document.forms['tinymcedisclaimer'].submit();") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t{$tiny}\n\t<hr>\n\t<center>" . button("{apply}", "document.forms['tinymcedisclaimer'].submit();") . "</center>\n\t</form>\n\t\n\t\n\t";
    $tpl = new templates();
    $page = $tpl->_ENGINE_parse_body($html);
    echo $tpl->PopupPage($page);
}
コード例 #10
0
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "<H1>" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "</H1>";
    exit;
}
if (isset($_POST["DansGuardianHTMLTemplate"])) {
    save();
}
$sock = new sockets();
$DansGuardianHTMLTemplate = $sock->GET_INFO("DansGuardianHTMLTemplate");
if (strlen($DansGuardianHTMLTemplate) < 50) {
    $DansGuardianHTMLTemplate = $sock->getFrameWork("cmd.php?dansguardian-get-template=yes");
}
$tpl = new templates();
$button = $tpl->_ENGINE_parse_body("<input type='submit' value='{apply}'>");
$tiny = TinyMce('DansGuardianHTMLTemplate', $DansGuardianHTMLTemplate);
$html = "\n\t<html>\n\t<head>\n\t<link href='css/styles_main.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_header.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_middle.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_forms.css' rel=\"styleSheet\" type='text/css' />\n\t<link href='css/styles_tables.css' rel=\"styleSheet\" type='text/css' />\n\t<script type='text/javascript' language='JavaScript' src='mouse.js'></script>\n\t<script type='text/javascript' language='javascript' src='XHRConnection.js'></script>\n\t<script type='text/javascript' language='javascript' src='default.js'></script>\n\t\t\n\t</head>\n\t<body width=100%> \n\t<form name='FFM1' METHOD=POST>\n\t<div style='text-align:center;width:100%;background-color:white;margin-bottom:10px;padding:5px;'>{$squidguard_form}{$button}<br></div>\n\t<center>\n\t<div style='width:750px;height:900px'>{$tiny}</div>\n\t</center>\n\t<div style='text-align:center;width:100%;background-color:white;maring-top:10px'>{$button}</div>\n\t\n\t</form>\n\t</body>\n\t\n\t</html>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
function save()
{
    $sock = new sockets();
    $_POST["DansGuardianHTMLTemplate"] = stripslashes($_POST["DansGuardianHTMLTemplate"]);
    $sock->SaveConfigFile($_POST["DansGuardianHTMLTemplate"], "DansGuardianHTMLTemplate");
    $sock->getFrameWork("cmd.php?dansguardian-template=yes");
}
コード例 #11
0
function page_body()
{
    if (!isset($_GET["ID"])) {
        $_GET["ID"] = 0;
    }
    $ID = $_GET["ID"];
    $q = new mysql_squid_builder();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT body FROM nginx_error_pages WHERE ID='{$_GET["ID"]}'"));
    $page = CurrentPageName();
    $t = time();
    $tpl = new templates();
    $button = $tpl->_ENGINE_parse_body(button("{apply}", "Save{$t}()", 18));
    $button2 = $tpl->_ENGINE_parse_body(button("{apply}", "Save2{$t}()", 18));
    if (strlen($ligne["body"]) < 10) {
        $ligne["body"] = "<table class=\"w100 h100\">\n\t\t<tr>\n\t\t<td class=\"c m\">\n\t\t<table style=\"margin:0 auto;border:solid 1px #560000\">\n\t\t<tr>\n\t\t<td class=\"l\" style=\"padding:1px\">\n\t\t<div style=\"width:346px;background:#E33630\">\n\t\t<div style=\"padding:3px\">\n\t\t<div style=\"background:#BF0A0A;padding:8px;border:solid 1px #FFF;color:#FFF\">\n\t\t<div style=\"background:#BF0A0A;padding:8px;border:solid 1px #FFF;color:#FFF\">\n\t\t<h1>{TITLE}</h1>\n\t\t</div>\n\t\t<div class=\"c\" style=\"font:bold 13px arial;text-transform:uppercase;color:#FFF;padding:8px 0\">\n\t\t{TITLE}\n\t\t\t\t</div>\n\t\t\t\t<div style=\"background:#F7F7F7;padding:20px 28px 36px\">\n\t\t\t\t<div id=\"titles\">\n\t\t\t\t<h1>Request not allowed</h1> <h2>{uid}</h2>\n\t\t\t\t</div> <hr>\n\t\t\t\t<div id=\"content\">\n\t\t\t\t<blockquote id=\"error\"> <p><b>{explain}</b></p> </blockquote>\n\t\t\t\t<p>The request:<a href=\"{uri}\">{uri}</a> cannot be displayed<br>\n\t\t\t\tPlease contact your service provider if you feel this is incorrect.\n\t\t\t\t</p>  <p>Generated by Artica Reverse Proxy <a href=\"http://www.articatech.net\">artica.fr</a></p>\n\t\t\t <br> </div>  <hr> <div id=\"footer\"> <p>Artica version: {ARTICA_VERSION}</p> <!-- %c --> </div> </div></div>\n\t\t\t </div>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t </table>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t</table>";
    }
    $tiny = TinyMce("body-{$t}", $ligne["body"], true);
    $tokens = $tpl->_ENGINE_parse_body("<div class=text-info><strong>{tokens}:") . "</strong>{TITLE},{ARTICA_VERSION},{uid},\n\t{error_code},{error_desc},{uri}</div>";
    $html = "{$tokens}\n\t<div id='{$t}'></div>\t\n\t<div style='text-align:center;width:100%;background-color:white;margin-bottom:10px;padding:5px;'>{$button}<br></div>\n\t<center>\n\t<div style='width:750px;height:auto'>{$tiny}</div>\n\t</center>\n\t<div style='text-align:center;width:100%;background-color:white;margin-top:10px'>\n\t\t{$button2}\n\t</div>\n\t\n\t<script>\nvar xSave{$t}= function (obj) {\n\tvar res=obj.responseText;\n\tdocument.getElementById('{$t}').innerHTML='';\n\tif(res.length>3){alert(res);return;}\n\t\n}\nfunction Save2{$t}(){ Save{$t}();}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('SaveBody', '{$ID}');\n\tAnimateDiv('{$t}');\n\tXHR.appendData('body', encodeURIComponent(tinymce.get('body-{$t}').getContent()));\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\t\n}\n\n</script>\n";
    echo $html;
}
コード例 #12
0
function altermime_disclaimer()
{
    $domain = $_GET["domain"];
    $ou = $_GET["ou"];
    $dd = new domains_disclaimer($ou, $domain);
    if (isset($_POST["DisclaimerContent"])) {
        $dd->DisclaimerContent = $_POST["DisclaimerContent"];
        $dd->SaveDisclaimer();
    }
    $tpl = new templates();
    $tiny = TinyMce('DisclaimerContent', $dd->DisclaimerContent);
    $page = CurrentPageName();
    $html = "\n\t<H1>{edit_disclaimer} {$domain}</H1>\n\t<p class=caption>{edit_disclaimer_text}</p>\n\t<form name='tinymcedisclaimer' method='post' action=\"{$page}\">\n\t<input type='hidden' name='ou' id='ou' value='{$ou}'>\n\t<input type='hidden' name='domain' id='domain' value='{$domain}'>\n\t{$tiny}\n\t\n\t</form>\n\t\n\t\n\t";
    $tpl = new template_users('{edit_disclaimer}', $html, 0, 1, 1);
    echo $tpl->web_page;
}