public_html/admin/moderation.php
branchHEAD
changeset 7379 d9ce993e1951
parent 7314 f2e37d3490c9
child 7473 e6207655d9cc
     1.1 --- a/public_html/admin/moderation.php	Mon Sep 14 16:10:32 2009 +0200
     1.2 +++ b/public_html/admin/moderation.php	Sat Oct 17 13:11:32 2009 +0200
     1.3 @@ -742,24 +742,28 @@
     1.4  // MAIN
     1.5  
     1.6  $display = '';
     1.7 -$display .= COM_siteHeader ('menu', $LANG29[34]);
     1.8 -$display .= COM_showMessageFromParameter();
     1.9  
    1.10 -if (isset ($_POST['mode']) && ($_POST['mode'] == 'moderation') && SEC_checkToken()) {
    1.11 +if (isset($_POST['mode']) && ($_POST['mode'] == 'moderation') &&
    1.12 +        SEC_checkToken()) {
    1.13      $action = array();
    1.14      if (isset($_POST['action'])) {
    1.15          $action = $_POST['action'];
    1.16      }
    1.17      if ($_POST['type'] == 'user') {
    1.18 -        $display .= moderateusers($_POST['id'], $action,
    1.19 -                                  COM_applyFilter($_POST['count'], true));
    1.20 +        $mod_result = moderateusers($_POST['id'], $action,
    1.21 +                                    COM_applyFilter($_POST['count'], true));
    1.22      } else {
    1.23 -        $display .= moderation($_POST['id'], $action, $_POST['type'],
    1.24 -                               COM_applyFilter ($_POST['count'], true));
    1.25 +        $mod_result = moderation($_POST['id'], $action, $_POST['type'],
    1.26 +                                 COM_applyFilter($_POST['count'], true));
    1.27      }
    1.28 +    $display .= COM_siteHeader('menu', $LANG29[34])
    1.29 +             .  COM_showMessageFromParameter()
    1.30 +             .  $mod_result;
    1.31  } else {
    1.32 -    $display .= security_check_reminder();
    1.33 -    $display .= commandcontrol(SEC_createToken());
    1.34 +    $display .= COM_siteHeader('menu', $LANG29[34])
    1.35 +             .  COM_showMessageFromParameter()
    1.36 +             .  security_check_reminder()
    1.37 +             .  commandcontrol(SEC_createToken());
    1.38  }
    1.39  
    1.40  $display .= COM_siteFooter();