apply initial-fixes-make-compatible-with-Debian-Ubuntu-php from https://github.com/zedzedtop/mailzu
This commit is contained in:
@@ -56,10 +56,10 @@ function showMessagesTable($content_type, $res, $page, $order, $vert, $numRows =
|
||||
|
||||
<form name="messages_process_form" action="messagesProcessing.php" method="POST">
|
||||
|
||||
<input type="hidden" name="ctype" value="<? echo $content_type; ?>">
|
||||
<input type="hidden" name="query_string" value="<? echo $query_string; ?>">
|
||||
<input type="hidden" name="ctype" value="<?php echo $content_type; ?>">
|
||||
<input type="hidden" name="query_string" value="<?php echo $query_string; ?>">
|
||||
|
||||
<? // Draw 'Release', 'Delete' and 'Delete All' buttons
|
||||
<?php // Draw 'Release', 'Delete' and 'Delete All' buttons
|
||||
printActionButtons((! CmnFns::didSearch() && ! ("Site Quarantine" == $_SESSION['sessionNav']) && !("Domain Quarantine" == $_SESSION['sessionNav'])) );
|
||||
// Draw 'Select All, Clear All' and multi pages links
|
||||
printSelectAndPager($pager_html);
|
||||
@@ -74,14 +74,12 @@ function showMessagesTable($content_type, $res, $page, $order, $vert, $numRows =
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="5" class="tableTitle">
|
||||
<? echo translate('Showing messages',
|
||||
array( number_format($page*$sizeLimit+1), number_format($page*$sizeLimit+$end_entry), $count )); ?>
|
||||
<?php echo translate('Showing messages', array( number_format($page*$sizeLimit+1), number_format($page*$sizeLimit+$end_entry), $count )); ?>
|
||||
</td>
|
||||
|
||||
<td class="tableTitle">
|
||||
<div align="right">
|
||||
<? $link->doLink('javascript: help(\'msg_index\');', '?', '', 'color: #FFFFFF;',
|
||||
translate('Help') . ' - ' . translate('My Quarantine')) ?>
|
||||
<?php $link->doLink('javascript: help(\'msg_index\');', '?', '', 'color: #FFFFFF;', translate('Help') . ' - ' . translate('My Quarantine')) ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -89,51 +87,50 @@ function showMessagesTable($content_type, $res, $page, $order, $vert, $numRows =
|
||||
|
||||
<!-- Print messages table -->
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
|
||||
<!-- Print table's headers -->
|
||||
<tr class="rowHeaders">
|
||||
<td width="3%"> </td>
|
||||
<? if ( (count($_SESSION['sessionMail']) > 1) || ((Auth::isMailAdmin() || Auth::isDomainAdmin()) &&
|
||||
<?php if ( (count($_SESSION['sessionMail']) > 1) || ((Auth::isMailAdmin() || Auth::isDomainAdmin()) &&
|
||||
("Site Quarantine" == $_SESSION['sessionNav'] || "Site Pending Requests" == $_SESSION['sessionNav'])
|
||||
||
|
||||
("Domain Quarantine" == $_SESSION['sessionNav'] || "Domain Pending Requests" == $_SESSION['sessionNav'])
|
||||
)) { ?>
|
||||
<td width="15%" <? echo "recip.email"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="15%" <?php echo "recip.email"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=recip.email&vert=' . $new_vert, translate('To'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<? } ?>
|
||||
<td width="15%" <? echo "from_addr"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<?php } ?>
|
||||
<td width="25%" <?php echo "from_addr"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=from_addr&vert=' . $new_vert, translate('From'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<td width="40%" <? echo "msgs.subject"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="33%" <?php echo "msgs.subject"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=msgs.subject&vert=' . $new_vert, translate('Subject'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<td width="10%" <? echo "msgs.time_num"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="10%" <?php echo "msgs.time_num"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=msgs.time_num&vert=' . $new_vert, translate('Date'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<td width="7%" <? echo "spam_level"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="5%" <?php echo "spam_level"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=spam_level&vert=' . $new_vert, translate('Score'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<td width="10%" <? echo "msgs.content"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="5%" <?php echo "msgs.content"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=msgs.content&vert=' . $new_vert, translate('Content Type'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<? if ( Auth::isMailAdmin() &&
|
||||
<?php if ( Auth::isMailAdmin() &&
|
||||
("Site Quarantine" == $_SESSION['sessionNav'] || "Site Pending Requests" == $_SESSION['sessionNav'])
|
||||
) { ?>
|
||||
<td width="10%" <? echo "mail_id"==$order?' class="reservedCell"':''; ?>>
|
||||
<? $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
<td width="10%" <?php echo "mail_id"==$order?' class="reservedCell"':''; ?>>
|
||||
<?php $link->doLink($_SERVER['PHP_SELF'] . '?' . CmnFns::querystring_exclude_vars( array('order','vert'))
|
||||
. '&order=mail_id&vert=' . $new_vert, translate('Mail ID'), '', '', $mouseover_text) ?>
|
||||
</td>
|
||||
<? } ?>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
<? // For each line in table, print message fields
|
||||
<?php // For each line in table, print message fields
|
||||
for ($i = $start_entry; $i < $end_entry; $i++) {
|
||||
$rs = $res[$i];
|
||||
// Make sure that there is a clickable subject
|
||||
@@ -202,16 +199,13 @@ function showMessagesTable($content_type, $res, $page, $order, $vert, $numRows =
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<? // Draw 'Select All, Clear All' and multi pages links
|
||||
<?php // Draw 'Select All, Clear All' and multi pages links
|
||||
printSelectAndPager($pager_html);
|
||||
// Draw 'Release', 'Delete' and 'Delete All' buttons
|
||||
printActionButtons((! CmnFns::didSearch() && ! ("Site Quarantine" == $_SESSION['sessionNav']) && !("Domain Quarantine" == $_SESSION['sessionNav'])), 0);
|
||||
|
||||
unset($res); ?>
|
||||
|
||||
</form>
|
||||
<? } else {
|
||||
<?php } else {
|
||||
echo '<table width="100%" border="0" cellspacing="1" cellpadding="0">';
|
||||
echo '<tr><td align="center">' . translate('There are no matching records.') . '</td></tr>';
|
||||
echo '</table>';
|
||||
@@ -331,25 +325,25 @@ function printSearchEngine($content_type, $submit_page, $full_search = false) {
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td class="tableTitle">
|
||||
<a href="javascript: void(0);" onclick="showHideSearch('search');">› <?=translate('Search')?></a>
|
||||
<a href="javascript: void(0);" onclick="showHideSearch('search');">› <?php echo translate('Search')?></a>
|
||||
</td>
|
||||
<td class="tableTitle">
|
||||
<div align="right">
|
||||
<? $link->doLink('javascript: help(\'search\');', '?', '', 'color: #FFFFFF;', translate('Help') . ' - ' . translate('My Re
|
||||
<?php $link->doLink('javascript: help(\'search\');', '?', '', 'color: #FFFFFF;', translate('Help') . ' - ' . translate('My Re
|
||||
servations')) ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div id="search" style="display: <?= getShowHide('search') ?>">
|
||||
<div id="search" style="display: <?php echo getShowHide('search') ?>">
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr class="cellColor"><td><center><? CmnFns::searchEngine($content_type, $submit_page, $full_search); ?></center></td></tr>
|
||||
<tr class="cellColor"><td><center><?php CmnFns::searchEngine($content_type, $submit_page, $full_search); ?></center></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
@@ -363,12 +357,12 @@ function printSelectAndPager($pager_html) {
|
||||
<table class="stdFont" width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a href="javascript:CheckAll(document.messages_process_form);"><? echo translate('Select All'); ?></a> |
|
||||
<a href="javascript:CheckNone(document.messages_process_form);"><? echo translate('Clear All'); ?></a>
|
||||
<a href="javascript:CheckAll(document.messages_process_form);"><?php echo translate('Select All'); ?></a> |
|
||||
<a href="javascript:CheckNone(document.messages_process_form);"><?php echo translate('Clear All'); ?></a>
|
||||
</td>
|
||||
<td>
|
||||
<div align="right">
|
||||
<?
|
||||
<?php
|
||||
// Draw the paging links if more than 1 page
|
||||
echo $pager_html . "\n";
|
||||
?>
|
||||
@@ -376,7 +370,7 @@ function printSelectAndPager($pager_html) {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -390,14 +384,14 @@ function printNoMesgWarning() {
|
||||
<tr><td class="tableBorder">
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr class="cellColor"><td>
|
||||
<center><? echo translate('No message was selected'); ?><br>
|
||||
<? $link->doLink('javascript: history.back();','‹‹ ' . translate('BackMessageIndex'), '', '',
|
||||
<center><?php echo translate('No message was selected'); ?><br>
|
||||
<?php $link->doLink('javascript: history.back();','‹‹ ' . translate('BackMessageIndex'), '', '',
|
||||
translate('BackMessageIndex')); ?></center>
|
||||
</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
</table>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -418,7 +412,7 @@ function showFailedMessagesTable($action, $content_type, $res) {
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr>
|
||||
<td colspan="5" class="tableTitle">
|
||||
<? if ( $action == translate('Release') || $action == translate('Release/Request release') )
|
||||
<?php if ( $action == translate('Release') || $action == translate('Release/Request release') )
|
||||
echo translate('A problem occured when trying to release the following messages');
|
||||
elseif ( $action == translate('Delete') || $action == translate('Delete All') )
|
||||
echo translate('A problem occured when trying to delete the following messages');
|
||||
@@ -426,7 +420,7 @@ function showFailedMessagesTable($action, $content_type, $res) {
|
||||
</td>
|
||||
<td class="tableTitle">
|
||||
<div align="right">
|
||||
<? $link->doLink('javascript: help(\'msg_index\');', '?', '', 'color: #FFFFFF;', translate('Help') ) ?>
|
||||
<?php $link->doLink('javascript: help(\'msg_index\');', '?', '', 'color: #FFFFFF;', translate('Help') ) ?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -435,17 +429,17 @@ function showFailedMessagesTable($action, $content_type, $res) {
|
||||
<!-- Print table headers -->
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
||||
<tr class="rowHeaders">
|
||||
<td width="20%"><? echo translate('From'); ?></td>
|
||||
<td width="30%"><? echo translate('Subject'); ?></td>
|
||||
<td width="10%"><? echo translate('Date'); ?></td>
|
||||
<? if ( 'S' == $content_type ) { ?>
|
||||
<td width="10%"><? echo translate('Score'); ?></td>
|
||||
<? } ?>
|
||||
<td width="30%"><? echo translate('Status'); ?></td>
|
||||
<td width="20%"><?php echo translate('From'); ?></td>
|
||||
<td width="30%"><?php echo translate('Subject'); ?></td>
|
||||
<td width="10%"><?php echo translate('Date'); ?></td>
|
||||
<?php if ( 'S' == $content_type ) { ?>
|
||||
<td width="10%"><?php echo translate('Score'); ?></td>
|
||||
<?php } ?>
|
||||
<td width="30%"><?php echo translate('Status'); ?></td>
|
||||
</tr>
|
||||
|
||||
<!-- Print table rows -->
|
||||
<?
|
||||
<?php
|
||||
for ($i = 0; is_array($res) && $i < count($res); $i++) {
|
||||
$rs = $res[$i];
|
||||
$subject = $rs['subject'] ? $rs['subject'] : '(none)';
|
||||
@@ -463,7 +457,7 @@ function showFailedMessagesTable($action, $content_type, $res) {
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<?
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user