예제 #1
0
 public function deleteEntry($upID)
 {
     $up = new UserPointEntry();
     $up->load($upID);
     $up->Delete();
     $this->redirect('/dashboard/users/points/', 'entry_deleted');
 }
예제 #2
0
파일: points.php 프로젝트: ceko/concrete5-1
 public function deleteEntry($upID)
 {
     if (!\Core::make('helper/validation/token')->validate('delete_community_points')) {
         $this->error = new Error();
         $this->error->add('Invalid Token');
         $this->view();
         return;
     }
     $up = new UserPointEntry();
     $up->load($upID);
     $up->Delete();
     $this->redirect('/dashboard/users/points/', 'entry_deleted');
 }