コード例 #1
0
ファイル: admin_delete.php プロジェクト: rhertzog/lcs
             if ($arguments['fieldOrder'] == 'name') {
                 $selector->setFieldOrder(UserStrategy::ORDER_BY_NAME);
             } else {
                 $selector->setFieldOrder(UserStrategy::ORDER_BY_USERNAME);
             }
         }
         //namesearch
         $selector->setSearch($arguments['search']);
         //paging
         if (isset($_REQUEST['page'])) {
             $page = max(array(1, $_REQUEST['page']));
             $page = min(array($page, $userList->getNumberOfPage()));
             $arguments['page'] = $page;
             $selector->setPageToDisplay($page);
         }
         $userList->setSelector($selector);
     }
 }
 if ('exFromUser' == $_REQUEST['cmd'] && !is_null($userId)) {
     $subTitle = get_lang('Delete all user\'s messages');
     $box = new AdminMessageBox();
     $box->deleteAllMessageFromUser($userId);
     $displayRemoveFromUserValidated = TRUE;
 }
 // delete older than
 if ('rqOlderThan' == $_REQUEST['cmd']) {
     $subTitle = get_lang('Delete messages older than');
     $displayRemoveOlderThanConfirmation = TRUE;
 }
 if ('exOlderThan' == $_REQUEST['cmd'] && isset($_REQUEST['date'])) {
     $subTitle = get_lang('Delete messages older than');