本文整理汇总了PHP中CellRollOver函数的典型用法代码示例。如果您正苦于以下问题:PHP CellRollOver函数的具体用法?PHP CellRollOver怎么用?PHP CellRollOver使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CellRollOver函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: today
function today()
{
if (isset($_GET["today"])) {
$user = $_GET["today"];
$t = "today";
$Q1 = " AND DATE_FORMAT( zdate, '%Y-%m-%d' )=DATE_FORMAT( NOW(), '%Y-%m-%d' )";
}
if (isset($_GET["week"])) {
$t = "week";
$user = $_GET["week"];
$Q1 = " AND WEEK( zdate)=WEEK( NOW()) AND YEAR(zdate)=YEAR(NOW())";
}
if (isset($_GET["month"])) {
$t = "month";
$user = $_GET["month"];
$Q1 = " AND MONTH( zdate)=MONTH( NOW()) AND YEAR(zdate)=YEAR(NOW())";
}
$dansguardian_events = "dansguardian_events_" . date('Ym');
$sql = "SELECT SUM(QuerySize) as tsize, sitename FROM {$dansguardian_events} WHERE CLIENT='{$user}'{$Q1} GROUP BY sitename ORDER BY SUM(QuerySize) DESC";
$html = "\n\t<br>\n\t<center>\n\t<table style='width:500px;border:1px solid #CCCCCC'>\n\t<tr>\n\t\t<th colspan=2>{website}</th>\n\t\t<th>size</th>\n\t</tr>\n\t";
$q = new mysql();
$results = $q->QUERY_SQL($sql, "artica_events");
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$js = "Loadjs('squid.uris.stats.php?domain={$ligne["sitename"]}&user={$user}&t={$t}')";
$html = $html . "\n\t<tr" . CellRollOver() . ">\n\t\t<td width=1%><img src='img/web-22.png'></td>\n\t\t<td style='font-size:13px' " . CellRollOver($js, "{display_queries_list}") . ">{$ligne["sitename"]}</td>\n\t\t<td style='font-size:13px'>" . FormatBytes($ligne["tsize"] / 1024) . "</td>\n\t</tr>\n\t";
}
$html = $html . "</table></center>";
echo $html;
}
示例2: search
function search()
{
$ocs = new ocs();
$page = CurrentPageName();
$sql = $ocs->COMPUTER_SEARCH_QUERY($_GET["search"]);
$q = new mysql();
$FILEID = $_GET["FILEID"];
$results = $q->QUERY_SQL($sql, "ocsweb");
if (!$q->ok) {
echo "<p> </p><p style='font-size:15px'>{$q->mysql_error}<hr>{$sql}</p>";
return;
}
$html = "\n\t<table style='width:100%;'>\n\t<tr>\n\t\t<th colspan=2>{computer}</th>\n\t\t<th>{ip_address}</th>\n\t\t<th>{affected}</th>\n\t</tr>";
$hash = $ocs->PACKAGE_HASH_AFFECTED_COMPUTERS($FILEID);
while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
if ($ligne["IPADDRESS"] == "0.0.0.0") {
continue;
}
$HARDWARE_ID = $ligne["ID"];
$html = $html . "\n\t\t<tr " . CellRollOver() . ">\n\t\t<td width=1%><img src='img/laptop-32.png'></td>\n\t\t\t<td style='font-size:13px'>{$ligne["NAME"]}</td>\n\t\t\t<td style='font-size:13px'>{$ligne["IPSRC"]}</td>\n\t\t\t<td>" . Field_checkbox("ID_{$HARDWARE_ID}", 1, $hash[$HARDWARE_ID], "OCSPackageAffectID({$HARDWARE_ID})") . "</td>\n\t\t</tr>\n\t\t";
}
$html = $html . "</table>\n\t<script>\n\t\tvar x_OCSPackageAffectID=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif (results.length>0){\n\t\t\t\talert(results);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(document.getElementById('packages-list')){\n\t\t\t\tRefreshOCSPackageList();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfunction OCSPackageAffectID(HARDWARE_ID){\n\t\t\t\tvar XHR = new XHRConnection();\n\t\t\t\tif(document.getElementById('ID_'+HARDWARE_ID).checked){\n\t\t\t\t\tXHR.appendData('AffectPackageToValue','1');\n\t\t\t\t}else{\n\t\t\t\t\tXHR.appendData('AffectPackageToValue','0');\n\t\t\t\t}\n\t\t\t\tXHR.appendData('FILEID','{$FILEID}');\n\t\t\t\tXHR.appendData('HARDWARE_ID',HARDWARE_ID);\n\t\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_OCSPackageAffectID);\n\t\t}\t\n\t\n\t</script>\n\t\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例3: popup_list
function popup_list()
{
$tpl = new templates();
$sock = new sockets();
$array = unserialize(base64_decode($sock->getFrameWork("cmd.php?samba-events-list=yes")));
if (!is_array($array)) {
echo $tpl->_ENGINE_parse_body("<H2>{error_no_datas}</H2>");
exit;
}
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<th> </th>\n\t\t<th>{filename}</th>\n\t\t<th>{size}</th>\n\t\t<th> </th>\n\t</tr>\n\t";
while (list($filename, $size) = each($array)) {
$img = "30-computer.png";
if (preg_match("#log\\.(.+)\$#", $filename, $re)) {
$hostname = $re[1];
}
$text_addon = null;
if (preg_match("#winbindd#", $filename)) {
$img = "30-logs.png";
$text_addon = " ({APP_SAMBA_WINBIND})";
}
if (preg_match("#nmbd#", $filename)) {
$img = "30-logs.png";
$text_addon = " ({APP_SAMBA_NMBD})";
}
if (preg_match("#smbd#", $filename)) {
$img = "30-logs.png";
$text_addon = " ({APP_SAMBA_SMBD})";
}
$html = $html . "\n\t\t<tr " . CellRollOver() . ">\n\t\t\t<td width=1%>" . imgtootltip($img, "{download}", "SambaDownloadEvent('{$filename}')") . "</td>\n\t\t\t<td><strong style='font-size:13px'>" . texttooltip("{$hostname}{$text_addon}", "{download}", "SambaDownloadEvent('{$filename}')", null, 0, "font-size:13px") . "</td>\n\t\t\t<td><strong style='font-size:13px'>" . FormatBytes($size) . "</td>\n\t\t\t<td width=1%>" . imgtootltip("delete-30.png", "{delete}", "SambaDeleteEvent('{$filename}')") . "</td>\n\t\t</tr>\n\t\t";
}
$html = $html . "</table>";
echo $tpl->_ENGINE_parse_body($html);
}
示例4: ParseSqlresults
function ParseSqlresults($results)
{
$html = "\n<div style='height:400px;overflow:auto;margin-top:5px'>\n<table style='width:99%' class=table_form>\n\t<tr " . CellRollOver() . ">\n\t<th> </th>\n\t<th><strong>{time}</strong></th>\n\t<th><strong>{mail_from}</th>\n\t<th><strong>{subject}</th>\n\t<th> </th>\n\t</tr>";
writelogs("LastQuarantines -> Query sql end", __FUNCTION__, __FILE__);
while ($ligne = @mysql_fetch_array($results)) {
$count = $ligne["ID"];
writelogs("{$count}", __FUNCTION__, __FILE__);
$file = basename($ligne["message_path"]);
$delete = imgtootltip('x.gif', '{delete}', "QuarantineMessageDelete('{$ligne["ID"]}')");
$ligne["subject"] = htmlentities($ligne["subject"]);
$tooltip = "<H4>{view}</H4><ul style=font-size:13px><li><b>Date:</b>{$ligne["zDate"]}</li><li><b>From:</b>{$ligne["mailfrom"]}</li></ul>";
if (strlen($ligne["mailfrom"]) > 30) {
$ligne["mailfrom"] = substr($ligne["mailfrom"], 0, 27) . "...";
}
if (strlen($ligne["subject"]) > 34) {
$ligne["subject"] = substr($ligne["subject"], 0, 31) . "...";
}
$ligne["subject"] = substr($ligne["subject"], 0, 500);
$edit = "OnClick=\"javascript:Loadjs('domains.quarantine.php?message-id={$ligne["MessageID"]}')\"";
if ($color == "#CCCCCC") {
$color = "#FFFFFF";
} else {
$color = "#CCCCCC";
}
$html = $html . "\n\t\t<tr id='line{$count}' style='background-color:{$color};font-size:12px' " . CellRollOver_black(null, $tooltip, $color) . ">\n\t\t\t<td valign='top' style='padding:3px'><img src='img/fw_bold.gif'></td>\t\n\t\t\t<td nowrap style='font-size:12px;padding:3px' {$edit}>{$ligne["tdate"]}</a></td>\n\t\t\t<td nowrap style='font-size:12px;padding:3px' {$edit}>{$ligne["mailfrom"]}</a></td>\n\t\t\t<td nowrap style='font-size:12px;padding:3px' {$edit}>{$ligne["subject"]}</td>\n\t\t\t<td>{$delete}</td>\n\t\t</tr>\n\t\t\n\t\t";
}
$html = $html . "</table></div>";
return RoundedLightGrey($html);
}
示例5: autmount_list
function autmount_list()
{
$samba = new samba();
$ldap = new clladp();
$dn = "ou=auto.automounts,ou=mounts,{$ldap->suffix}";
$filter = "(&(ObjectClass=automount)(automountInformation=*))";
$attrs = array("automountInformation", "cn");
$html = "<table style='width:99%'>";
$sr = @ldap_search($ldap->ldap_connection, $dn, $filter, $attrs);
if ($sr) {
$hash = ldap_get_entries($ldap->ldap_connection, $sr);
if ($hash["count"] > 0) {
for ($i = 0; $i < $hash["count"]; $i++) {
$path = $hash[$i]["cn"][0];
$automountInformation = $hash[$i][strtolower("automountInformation")][0];
$js = "ShareDevice('{$path}');";
$delete = " ";
if (is_array($samba->main_array[$path])) {
$delete = imgtootltip('ed_delete.gif', '{delete}', "DeleteUsbShare('{$path}')");
$js = "FolderProp('{$path}')";
}
$html = $html . "\n\t\t\t\t\t<tr " . CellRollOver($js) . ">\n\t\t\t\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t\t\t\t<td colspan=2 ><code style='font-size:13px;font-weight:bold'>{$path}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t\t<td ><code style='font-size:1Opx;font-weight:bold'>{$automountInformation}</td>\n\t\t\t\t\t\t<td width=1%>{$delete}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr><td colspan=3><hr></td></tr>\t";
}
}
}
$html = $html . "</table>";
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html);
}
示例6: main_rules_categories_list
function main_rules_categories_list($rule_main, $noecho = 0)
{
$dans = new dansguardian_rules();
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<th>{category}</th>\n\t\t<th colspan=2>{enabled}</th>\n\t</tr>";
$q = new mysql();
$sql = "SELECT * FROM dansguardian_files WHERE filename='bannedsitelist' AND RuleID={$rule_main}";
$results = $q->QUERY_SQL($sql, "artica_backup");
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$val = $ligne["pattern"];
$array_selected[$val] = $ligne["ID"];
}
$array_cat = $dans->array_blacksites;
while (list($num, $val) = each($array_cat)) {
if ($array_selected[$num] > 0) {
$enabled = 1;
} else {
$enabled = 0;
}
$md = md5($num);
$html = $html . "\n\t\t<tr " . CellRollOver() . ">\n\t\t\t<td><strong style='font-size:11px'>{$val}</td>\n\t\t\t<td>" . Field_checkbox("{$md}", 1, $enabled, "DansCategoryEnable('{$md}','{$num}','{$array_selected[$num]}','{$rule_main}')") . "</td>\n\t\t\t<td>{$num}</td>\n\t\t\t\n\t\t</tr> \n\t\t\n\t\t";
}
$categ = "<div style='width:100%;height:600px;overflow:auto'>{$html}</div>";
$tpl = new templates();
if ($noecho == 1) {
return $tpl->_ENGINE_parse_body($categ);
}
echo $tpl->_ENGINE_parse_body("{$categ}");
}
示例7: getlist
function getlist()
{
$sock = new sockets();
$res = base64_decode($sock->getFrameWork("cmd.php?etc-hosts-open=yes"));
writelogs($res, __FUNCTION__, __FILE__, __LINE__);
$datas = unserialize($res);
while (list($num, $ligne) = each($datas)) {
if (preg_match("#^([0-9\\.\\:]+)\\s+(.+?)\\s+(.+?)\$#", $ligne, $re)) {
$array[] = array("name" => $re[2], "alias" => $re[3], "ip" => $re[1], "md" => md5($ligne));
continue;
}
if (preg_match("#^([0-9\\.\\:]+)\\s+(.+?)\$#", $ligne, $re)) {
$array[] = array("name" => $re[2], "ip" => $re[1], "md" => md5($ligne));
continue;
}
}
if (!is_array($array)) {
return null;
}
$html = "<table style='width:98%' class=table_form>\n\t<tr>\n\t\t<th> </th>\n\t\t<th>{ip_address}</th>\n\t\t<th>{servername}</th>\n\t\t<th>{alias}</th>\n\t\t<th> </th>\n\t</tr>\n\t";
while (list($num, $ligne) = each($array)) {
$html = $html . "<tr " . CellRollOver() . ">\n\t\t\t<td width=1% nowrap><img src='img/base.gif'></td>\n\t\t\t<td width=1% nowrap>{$ligne["ip"]}</td>\n\t\t\t<td width=60% nowrap>{$ligne["name"]}</td>\n\t\t\t<td width=1% nowrap>{$ligne["alias"]}</td>\n\t\t\t<td width=1% nowrap>" . imgtootltip("ed_delete.gif", "{delete}", "etc_hosts_del('{$ligne["md"]}')") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
}
$html = $html . "</table>";
$tpl = new templates();
return $tpl->_ENGINE_parse_body("{$html}");
}
示例8: section_rules_list
function section_rules_list()
{
if ($_GET["tab"] == 1) {
section_config();
exit;
}
$fetch = new Fetchmail_settings();
$rules = $fetch->LoadAllRules();
$html = section_tabs() . "<br><H5>{fetchmail_rules}</H5>";
$rd = "<table style='width:1OO%' class=table_form>";
while (list($num, $hash) = each($rules)) {
$uid = $hash["uid"];
$user = new user($uid);
if ($hash["enabled"] == 0) {
$img = 'status_ok-grey.gif';
} else {
$img = "status_ok.gif";
}
$link = CellRollOver("UserFetchMailRule('{$num}','{$uid}')", '{edit}');
$rd = $rd . "<tr {$link}>\n\t\t<td width=1% valign='top'><img src='img/{$img}'></td>\n\t\t<td valign='top'><strong>{$user->mail}</strong></td>\n\t\t<td ><strong>{$hash["poll"]}</strong></td>\n\t\t<td ><strong>{$hash["proto"]}</strong></td>\n\t\t<td ><strong>{$hash["user"]}</strong></td>\n\t\t\n\t\t</tr>";
}
$rd = $rd . "</table>";
$rd = "<div style='width:100%;height:400px;overflow:auto'>{$rd}</div>";
$tpl = new templates();
if (isset($_GET["ajax"])) {
return $tpl->_ENGINE_parse_body($html . $rd);
}
echo $tpl->_ENGINE_parse_body($html . $rd);
}
示例9: main_extensions_bannedextensionslist_list
function main_extensions_bannedextensionslist_list($rule_main = null, $noecho = 0)
{
$q = new mysql();
if ($rule_main == null) {
$rule_main = $_GET["rule_main"];
}
$dans = new dansguardian_rules(null, $rule_main);
writelogs("Loading RuleID={$rule_main}", __FUNCTION__, __FILE__);
$sql = "SELECT * FROM dansguardian_files WHERE filename='bannedextensionlist' AND RuleID={$rule_main}";
writelogs("{$sql}", __FUNCTION__, __FILE__);
$results = $q->QUERY_SQL($sql, "artica_backup");
$style = CellRollOver();
$categ = "\n\t<table style='width:99%' class=form>";
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$num = $ligne["ID"];
$onoff = Field_checkbox("bannedextensionlist_id_{$num}", 1, $ligne["enabled"], "bannedextensionlist_switch('{$num}')");
$ext = $ligne["pattern"];
$ext = str_replace('.', '', $ext);
$img = "img/ext/def_small.gif";
if (file_exists("img/ext/{$ext}_small.gif")) {
$img = "img/ext/{$ext}_small.gif";
}
$categ = $categ . "<tr {$style}>\n\t\t<td width=1%><IMG SRC='{$img}' id='image_{$num}'></td>\n\t\t<td width=1%>{$onoff}</td>\n\t\t<td width=1% style='font-size:12px'> <strong id='pattern_{$num}'>{$ligne["pattern"]}</strong></td>\n\t\t<td width=98% style='font-size:12px'><strong id='info_{$num}'>{$ligne["infos"]}</strong></td>\n\t\t<td width=1%>" . imgtootltip('ed_delete.gif', '{delete}', "bannedextensionlist_del('{$hostname}','{$rule_main}','{$num}')") . "</td>\n\t\t</tr>\n\t\t";
}
$categ = $categ . "</table>";
$tpl = new templates();
$categ = $tpl->_ENGINE_parse_body($categ);
if ($noecho == 1) {
return $categ;
}
echo $categ;
}
示例10: LoadRblist
function LoadRblist($ou)
{
$ldap = new clladp();
$oudat = $ldap->OUDatas($ou);
if (!is_array($oudat["SURBLServers"])) {
echo " ";
exit;
}
$cell = CellRollOver() . " style='font-size:12px'";
$serverlist = RblForm(1);
$html = "\n\t<H5>{rbl_servers}</H5>\n\t<table style='width:90%'>";
while (list($num, $val) = each($oudat["SURBLServers"])) {
if (strpos($val, ':') > 0) {
$tb = explode(":", $val);
$rbl = $tb[0];
$purc = $tb[1];
$count = $count + $purc;
} else {
$country = $val;
$action = "delete";
}
$html = $html . "\n\t\t\t<tr>\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td {$cell}><strong>{$rbl}</strong></td>\n\t\t\t<td {$cell} width=1%'><img src='img/i16.gif'></td>\n\t\t\t<td {$cell}><strong><a href='{$serverlist["{$rbl}"]["uri"]}' target='_new'>{$serverlist["{$rbl}"]["name"]}</a></strong></td>\n\t\t\t<td {$cell}><strong>" . Field_text("{$num}", $purc, 'width:50px', null, 'EditSurblRblServer(this)') . "</strong></td>\n\t\t\t<td {$cell} width=1%>" . imgtootltip('x.gif', '{delete}', "SURblDelete({$num})") . "</td>\n\t\t\t</tr>";
}
$html = $html . "<tr><td colspan=4 align='right' style='color:#005447;font-size:12px;border-top:1px solid black;padding:5px'><strong>{$count}%</strong></td></tr>";
$tpl = new templates();
echo "<br>" . RoundedLightGrey($tpl->_ENGINE_parse_body($html . "</table>"));
}
示例11: PostfixLogs
function PostfixLogs()
{
include_once 'ressources/class.mysql.inc';
$sql = "SELECT * FROM events WHERE event_id={$_GET["event"]} ORDER BY zDate DESC LIMIT 0,100";
$my = new mysql();
$html = "<table style='width:100%'>";
$html = $html . "<tr style='background-color:#005447'>\n\t <td width=1%> </td>\n\t <td width=1% nowrap> </td>\n\t <td> </td>\n\t </tr>";
$resultat = $my->QUERY_SQL($sql, 'artica_events');
while ($ligne = @mysql_fetch_array($resultat, MYSQL_ASSOC)) {
switch ($ligne["event_type"]) {
case 0:
$img = "icon_mini_warning.gif";
break;
case 1:
$img = "icon-mini-ok.gif";
break;
case 2:
$img = "icon-mini-info.gif";
break;
default:
$img = "icon-mini-info.gif";
break;
}
$html = $html . "<tr " . CellRollOver() . ">\n\t <td width=1%><img src='img/{$img}' style='margin:2px'></td>\n\t <td width=1% nowrap>{$ligne["zDate"]}</td>\n\t <td>{$ligne["text"]}</td>\n\t </tr>";
}
$html = $html . "</table>";
$html = RoundedLightGrey($html);
$page = $html;
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($page);
}
示例12: main_rules_exceptionsitelist_list
function main_rules_exceptionsitelist_list($rule_main, $noecho = 0)
{
$dans = new dansguardian_rules($_GET["hostname"], $rule_main);
$sql = "SELECT * FROM dansguardian_files WHERE filename='exceptionsitelist' AND RuleID={$rule_main} ORDER BY ID DESC";
$q = new mysql();
$results = $q->QUERY_SQL($sql, "artica_backup");
$style = CellRollOver();
$categ = "\n\t<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n\t<thead class='thead'>\n\t\t<tr>\n\t\t<th width=99% colspan=2> </th>\n\t\t</tr>\n\t</thead>\n\t<tbody class='tbody'>";
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
if ($classtr == "oddRow") {
$classtr = null;
} else {
$classtr = "oddRow";
}
$num = $ligne["ID"];
$pattern = $ligne["pattern"];
$categ = $categ . "<tr class={$classtr}>\n\t\t<td width=99%><strong style='font-size:16px'>{$pattern}</strong></td>\n\t\t<td width=1%>" . imgtootltip('delete-32.png', '{delete}', "exceptionsitelist_del('{$hostname}','{$rule_main}','{$num}')") . "</td>\n\t\t</tr>\n\t\t";
}
$categ = $categ . "</table>";
$tpl = new templates();
if ($noecho == 1) {
return $tpl->_ENGINE_parse_body("{$categ}");
}
echo $tpl->_ENGINE_parse_body("{$categ}");
$tpl = new templates();
}
示例13: smtpd_client_restrictions_popup
function smtpd_client_restrictions_popup()
{
$sock = new sockets();
$users = new usersMenus();
$EnablePostfixAntispamPack_value = $sock->GET_INFO('EnablePostfixAntispamPack');
$EnableGenericrDNSClients = $sock->GET_INFO("EnableGenericrDNSClients");
$reject_forged_mails = $sock->GET_INFO('reject_forged_mails');
$EnablePostfixInternalDomainsCheck = $sock->GET_INFO('EnablePostfixInternalDomainsCheck');
$RestrictToInternalDomains = $sock->GET_INFO('RestrictToInternalDomains');
$reject_unknown_client_hostname = $sock->GET_INFO('reject_unknown_client_hostname');
$reject_unknown_reverse_client_hostname = $sock->GET_INFO('reject_unknown_reverse_client_hostname');
$reject_unknown_sender_domain = $sock->GET_INFO('reject_unknown_sender_domain');
$reject_invalid_hostname = $sock->GET_INFO('reject_invalid_hostname');
$reject_non_fqdn_sender = $sock->GET_INFO('reject_non_fqdn_sender');
$disable_vrfy_command = $sock->GET_INFO('disable_vrfy_command');
if ($EnablePostfixInternalDomainsCheck == null) {
$EnablePostfixInternalDomainsCheck = 0;
}
$whitelists = Paragraphe("routing-domain-relay.png", "{PostfixAutoBlockDenyAddWhiteList}", "{PostfixAutoBlockDenyAddWhiteList_explain}", "javascript:Loadjs('postfix.iptables.php?white-js=yes')");
$rollover = CellRollOver();
if (!$users->POSTFIX_PCRE_COMPLIANCE) {
$EnableGenericrDNSClients = 0;
$EnableGenericrDNSClientsDisabled = 1;
$EnableGenericrDNSClientsDisabledText = "<br><i><span style='color:red;font-size:11px'>{EnableGenericrDNSClientsDisabledText}</span></i>";
}
$t = time();
$page = CurrentPageName();
$html = "\n\n\n\n\n\t<div class=text-info style='font-size:18px'>{smtpd_client_restrictions_text}</div>\n\t<input type='hidden' id='EnableGenericrDNSClientsDisabled' value='{$EnableGenericrDNSClientsDisabled}'>\n\t<div id='smtpd_client_restrictions_div' style='width:98%' class=form>\n\t\n\t" . Paragraphe_switch_img("{disable_vrfy_command}", "{disable_vrfy_command_text}", "disable_vrfy_command-{$t}", $disable_vrfy_command, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_client_hostname}", "{reject_unknown_client_hostname_text}", "reject_unknown_client_hostname-{$t}", $reject_unknown_client_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_reverse_client_hostname}", "{reject_unknown_reverse_client_hostname_text}", "reject_unknown_reverse_client_hostname-{$t}", $reject_unknown_reverse_client_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_unknown_sender_domain}", "{reject_unknown_sender_domain_text}", "reject_unknown_sender_domain-{$t}", $reject_unknown_sender_domain, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_invalid_hostname}", "{reject_invalid_hostname_text}", "reject_invalid_hostname-{$t}", $reject_invalid_hostname, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_non_fqdn_sender}", "{reject_non_fqdn_sender_text}", "reject_non_fqdn_sender-{$t}", $reject_non_fqdn_sender, null, 900) . "\n\t" . Paragraphe_switch_img("{reject_forged_mails}", "{reject_forged_mails_text}", "reject_forged_mails-{$t}", $reject_forged_mails, null, 900) . "\n\t" . Paragraphe_switch_img("{EnablePostfixAntispamPack}", "{EnablePostfixAntispamPack_text}", "EnablePostfixAntispamPack-{$t}", $EnablePostfixAntispamPack_value, null, 900) . "\n\t" . Paragraphe_switch_img("{EnableGenericrDNSClients}", "{EnableGenericrDNSClients_text}", "EnableGenericrDNSClients-{$t}", $EnableGenericrDNSClients, null, 900) . "\n\t" . Paragraphe_switch_img("{EnablePostfixInternalDomainsCheck}", "{EnablePostfixInternalDomainsCheck_text}", "EnablePostfixInternalDomainsCheck-{$t}", $EnablePostfixInternalDomainsCheck, null, 900) . "\n\t" . Paragraphe_switch_img("{RestrictToInternalDomains}", "{RestrictToInternalDomains_text}", "RestrictToInternalDomains-{$t}", $RestrictToInternalDomains, null, 900) . "\n\t\t\t\n\t\n\t\t\t\t\t\t\n\t</table>\n\t</div>\n\n\t<div style='width:100%;text-align:right'><hr>\n\t" . button("{apply}", "Save{$t}()", 26) . "\n\t\n\t</div>\n<script>\nvar xSave{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tYahooWin2Hide();\n\tif(document.getElementById('main_config_postfix_security')){\n\t\tRefreshTab('main_config_postfix_security');\n\t}\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\t\n\t\tXHR.appendData('reject_unknown_client_hostname',document.getElementById('reject_unknown_client_hostname-{$t}').value);\n\t\tXHR.appendData('reject_unknown_reverse_client_hostname',document.getElementById('reject_unknown_reverse_client_hostname-{$t}').value);\n\t\tXHR.appendData('reject_unknown_sender_domain',document.getElementById('reject_unknown_sender_domain-{$t}').value);\n\t\tXHR.appendData('reject_invalid_hostname',document.getElementById('reject_invalid_hostname-{$t}').value);\n\t\tXHR.appendData('reject_non_fqdn_sender',document.getElementById('reject_non_fqdn_sender-{$t}').value);\n\t\tXHR.appendData('EnablePostfixAntispamPack',document.getElementById('EnablePostfixAntispamPack-{$t}').value);\n\t\tXHR.appendData('reject_forged_mails',document.getElementById('reject_forged_mails-{$t}').value);\n\t\tXHR.appendData('EnableGenericrDNSClients',document.getElementById('EnableGenericrDNSClients-{$t}').value);\n\t\tXHR.appendData('EnablePostfixInternalDomainsCheck',document.getElementById('EnablePostfixInternalDomainsCheck-{$t}').value);\n\t\tXHR.appendData('RestrictToInternalDomains',document.getElementById('RestrictToInternalDomains-{$t}').value);\n\t\tXHR.appendData('disable_vrfy_command',document.getElementById('disable_vrfy_command-{$t}').value);\n\t\tXHR.sendAndLoad('{$page}', 'GET',xSave{$t});\t\n\t}\n</script>\t\t\t\n\t";
//smtpd_client_connection_rate_limit = 100
//smtpd_client_recipient_rate_limit = 20
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "postfix.index.php");
}
示例14: query
function query()
{
$direction = $_GET["direction"];
$uid = $_SESSION["uid"];
$email = $_GET["email"];
$subject = $_GET["subject"];
$body = $_GET["body"];
writelogs("found direction={$direction},uid={$uid},email={$email},subject={$subject}", __FUNCTION__, __FILE__);
$ldap = new clladp();
$user = new user($uid);
$back = new backup_query($uid);
$mymails = $back->sql_mymails;
if ($body != null) {
$bodyf = " ,MATCH (`storage`.MessageBody) AGAINST ('{$body}') AS bod";
$body = " AND MATCH (`storage`.MessageBody) AGAINST ('{$body}')>0";
$order = " bod DESC,";
}
$sql_start = "SELECT `storage`.MessageID,`storage`.zDate,`storage`.subject{$bodyf} FROM `storage`,storage_recipients WHERE \n\t\t`storage`.MessageID=storage_recipients.MessageID ";
//$sq_direction="OR (`storage`.mailfrom='{$user->mail}')";
if ($email != null) {
$email_sql = " AND `storage`.mailfrom LIKE '%{$email}%'";
if ($direction == null) {
$sq_direction = "AND (`storage`.mailfrom LIKE '%{$email}%')";
}
}
if ($subject != null) {
$subject = " AND (`storage`.subject LIKE '%{$subject}%')";
}
switch ($direction) {
case null:
$sql = "{$sql_start} AND ({$mymails}) {$sq_direction} {$subject} {$body}";
break;
case "TO":
$sql = "{$sql_start} AND ({$mymails}) {$email_sql} {$subject} {$body}";
break;
case "FROM":
$email_sql = " AND (`storage_recipients`.recipient LIKE '%{$email}%')";
$sql = "{$sql_start} AND (`storage`.mailfrom='{$user->mail}') {$email_sql} {$subject} {$body}";
break;
}
$sql = $sql . " ORDER BY {$order}`storage`.zDate DESC LIMIT 0,50";
writelogs($sql, __FUNCTION__, __FILE__);
$s = new mysql();
$results = $s->QUERY_SQL($sql, "artica_backup");
while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
$arr[$ligne["MessageID"]] = array($ligne["zDate"], $ligne["subject"]);
}
if (!is_array($arr)) {
echo "None...<br><br><code>{$sql}</code>";
exit;
}
$html = "<table style='width:100%'>\n<tr>\n\t<th>{date}</th>\n\t<th>{subject}</th>\n</tr>\n\n";
while (list($num, $array) = each($arr)) {
$html = $html . "\n\t<tr " . CellRollOver("ShowBackupMail('{$num}')") . " >\n\t<td nowrap valign='top' style='border-bottom:1px dotted #CCCCCC;padding:3px'>{$array[0]}</td>\n\t<td style='border-bottom:1px dotted #CCCCCC;padding:3px'>{$array[1]}</td>\n\t</tr>\n\t\n\t";
}
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html . "</table><br><br><code>{$sql}</code>");
}
示例15: popup
function popup()
{
$ou = base64_decode($_GET["ou"]);
$main = new maincf_multi($_GET["hostname"], $ou);
$page = CurrentPageName();
$tpl = new templates();
$PostFixEnableAiguilleuse = $main->GET("PostFixEnableAiguilleuse");
$enable = Paragraphe_switch_img("{PostFixEnableAiguilleuse}", "{PostFixEnableAiguilleuse_text}", "PostFixEnableAiguilleuse", $PostFixEnableAiguilleuse, null, 350);
$html = "\n<table style='width:100%'>\n<td valign='top' width=1%>\n<center>\n\t<img src='img/128-nodes.png' id='128-nodes'>\n</center>\n\t\t<table style='width:100%;margin-top:10px;padding:10px;width:220px'>\n\t\t<tr " . CellRollOver("PostFixEnableAiguilleuseAdd()") . ">\n\t\t\t<td valign=top width=1% style='padding:5px'><img src='img/48-network-server-add.png'></td>\n\t\t\t<td valign='top' style='padding:5px'>\n\t\t\t<div>\n\t\t\t\t<strong style='font-size:13px'>{add_mail_server}</strong>\n\t\t\t</div>\n\t\t\t<div><i style='font-size:11px'>{postfix_multi_add_aiguilleuse_server}</i></div>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t</table>\n</td>\n<td valign='top' width=99%>\n{$enable}\n<div style='margin:12px;text-align:right'>\t\n\t" . button("{apply}", "PostFixEnableAiguilleuseSave()") . "<hr>\n</div>\n<div id='PostFixEnableAiguilleuse-list' style='height:250px;width:100%;overflow:auto'>\t\n\n\n\n<script>\n\nvar x_PostFixEnableAiguilleuseSave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);}\n\tdocument.getElementById('PostFixEnableAiguilleuse').src='img/128-nodes.png';\n\t}\n\t\n\t\n\tfunction PostFixEnableAiguilleuseSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('PostFixEnableAiguilleuse',document.getElementById('PostFixEnableAiguilleuse').value);\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tdocument.getElementById('PostFixEnableAiguilleuse').src='img/img/wait_verybig.gif';\n\t\tXHR.sendAndLoad('{$page}', 'GET',x_PostFixEnableAiguilleuseSave);\n\t\n\t}\n\n\tfunction RefreshPostfixAiguilleuseList(){\n\t\tLoadAjax('PostFixEnableAiguilleuse-list','{$page}?PostFixEnableAiguilleuse-list=yes&ou={$_GET["ou"]}&hostname={$_GET["hostname"]}');\n\t}\n\t\n\tRefreshPostfixAiguilleuseList();\n</script>\n";
echo $tpl->_ENGINE_parse_body($html);
}