/** * View spam logs. * * @since 2.0.? * @access public * * @param int $Page Page number. */ public function Spam($Page = '') { $this->Permission('Garden.Moderation.Manage'); list($Offset, $Limit) = OffsetLimit($Page, 10); $this->SetData('Title', T('Spam Queue')); $Where = array('Operation' => array('Spam')); $RecordCount = $this->LogModel->GetCountWhere($Where); $this->SetData('RecordCount', $RecordCount); if ($Offset >= $RecordCount) { $Offset = $RecordCount - $Limit; } $Log = $this->LogModel->GetWhere($Where, 'LogID', 'Desc', $Offset, $Limit); $this->SetData('Log', $Log); if ($this->DeliveryType() == DELIVERY_TYPE_VIEW) { $this->View = 'Table'; } $this->AddSideMenu('dashboard/log/spam'); $this->Render(); }