applications/dashboard/controllers/class.logcontroller.php
public function Confirm($Action, $LogIDs = '') {
      $this->Permission('Garden.Moderation.Manage');
      
      $this->Form->InputPrefix = '';
      $this->Form->IDPrefix = 'Confirm_';

      if (trim($LogIDs))
         $LogIDArray = explode(',', $LogIDs);
      else
         $LogIDArray = array();
      
      // We also want to collect the users from the log.
      $Logs = $this->LogModel->GetIDs($LogIDArray);
      $Users = array();
      foreach ($Logs as $Log) {
         $UserID = $Log['RecordUserID'];
         if (!$UserID)
            continue;
         $Users[$UserID] = array('UserID' => $UserID);
      }
      Gdn::UserModel()->JoinUsers($Users, array('UserID'));
      $this->SetData('Users', $Users);

      $this->SetData('Action', $Action);
      $this->SetData('ActionUrl', Url("/log/$Action?logids=".urlencode($LogIDs)));
      $this->SetData('ItemCount', count($LogIDArray));

      $this->Render();
   }
public function Confirm($Action, $LogIDs = '') {
      $this->Permission('Garden.Moderation.Manage');
      
      $this->Form->InputPrefix = '';
      $this->Form->IDPrefix = 'Confirm_';

      if (trim($LogIDs))
         $LogIDArray = explode(',', $LogIDs);
      else
         $LogIDArray = array();
      
      // We also want to collect the users from the log.
      $Logs = $this->LogModel->GetIDs($LogIDArray);
      $Users = array();
      foreach ($Logs as $Log) {
         $UserID = $Log['RecordUserID'];
         if (!$UserID)
            continue;
         $Users[$UserID] = array('UserID' => $UserID);
      }
      Gdn::UserModel()->JoinUsers($Users, array('UserID'));
      $this->SetData('Users', $Users);

      $this->SetData('Action', $Action);
      $this->SetData('ActionUrl', Url("/log/$Action?logids=".urlencode($LogIDs)));
      $this->SetData('ItemCount', count($LogIDArray));

      $this->Render();
   }
public function Confirm ( $ Action , $ LogIDs = '' ) { $ this -> Permission ( 'Garden.Moderation.Manage' ) ; $ this -> Form -> InputPrefix = '' ; $ this -> Form -> IDPrefix = 'Confirm_' ; if ( trim ( $ LogIDs ) ) $ LogIDArray = explode ( ',' , $ LogIDs ) ; else $ LogIDArray = array ( ) ; // We also want to collect the users from the log. $ Logs = $ this -> LogModel -> GetIDs ( $ LogIDArray ) ; $ Users = array ( ) ; foreach ( $ Logs as $ Log ) { $ UserID = $ Log [ 'RecordUserID' ] ; if ( ! $ UserID ) continue ; $ Users [ $ UserID ] = array ( 'UserID' => $ UserID ) ; } Gdn :: UserModel ( ) -> JoinUsers ( $ Users , array ( 'UserID' ) ) ; $ this -> SetData ( 'Users' , $ Users ) ; $ this -> SetData ( 'Action' , $ Action ) ; $ this -> SetData ( 'ActionUrl' , Url ( "/log/$Action?logids=" . urlencode ( $ LogIDs ) ) ) ; $ this -> SetData ( 'ItemCount' , count ( $ LogIDArray ) ) ; $ this -> Render ( ) ; }
Confirmation page.

@since 2.0.?
@access public

@param string $Action Type of action.
@param array $LogIDs Numeric IDs of items to confirm.
Confirmation page .