Ejemplo n.º 1
0
 /**
  * User purges all messagas
  *
  * @return array data sent to client as JSON
  */
 public function action_clean()
 {
     if ($this->user->data['user_type'] != USER_FOUNDER || !check_form_key('mchat', -1)) {
         throw new \phpbb\exception\http_exception(403, 'MCHAT_NOACCESS');
     }
     $this->functions_mchat->mchat_action('clean');
     return array('clean' => true);
 }