Wbl patch

This commit is contained in:
Mikko Husari
2008-12-10 20:19:59 +02:00
parent 773cf4217a
commit 7f07671b68
9 changed files with 611 additions and 44 deletions

View File

@@ -13,6 +13,7 @@
/**
* Include Template class
*/
include_once('lib/Template.class.php');
/**
* Include Quarantine functions
@@ -40,13 +41,15 @@ $t = new Template(translate('Message Processing'));
$t->printHTMLHeader();
$t->printWelcome();
$t->startMain();
// Break table into 2 columns, put quick links on left side and all other tables on the right
startQuickLinksCol();
showQuickLinks(); // Print out My Quick Links
startDataDisplayCol();
global $conf;
$action = CmnFns::get_action();
$w_action = CmnFns::get_wb_action('w_action');
$b_action = CmnFns::get_wb_action('b_action');
$content_type = CmnFns::get_ctype();
$query_string = CmnFns::get_query_string();
$mail_id_array = CmnFns::getGlobalVar('mail_id_array', POST);
@@ -86,10 +89,12 @@ if ( ! isset($mail_id_array) && $action != translate('Delete All') )
printNoMesgWarning();
elseif ( isset( $action ) ) {
switch ( $action ) {
case translate('Release'):
case translate('Release/Request release'):
if ($w_action != "" ) {
updateWblist('W', $_SESSION['sessionMail'], $mail_id_array, $w_action);
}
$failed_array = releaseMessages($_SESSION['sessionMail'], $mail_id_array);
if ( is_array($failed_array) && !empty($failed_array) ) {
showFailedMessagesTable($action, $content_type, $failed_array);
@@ -109,7 +114,11 @@ elseif ( isset( $action ) ) {
CmnFns::redirect_js($referral . '?' . $query_string);
}
break;
case translate('Delete'):
if ($b_action != "" ) {
updateWblist('B', $_SESSION['sessionMail'], $mail_id_array, $b_action);
}
$failed_array = updateMessages('D', $content_type, $_SESSION['sessionMail'], $mail_id_array);
if ( is_array($failed_array) && !empty($failed_array) ) {
showFailedMessagesTable($action, $content_type, $failed_array);