Exemplo n.º 1
0
 private function crop()
 {
     if ($_POST) {
         $testimonial = $this->get_testimonial();
         if (1 == $testimonial->lock) {
             die('This testimonial is locked and can no longer be edited.');
         }
         die($testimonial->save_crop($this->owner->apikey, explode('|', $_POST['params'])));
     }
     # display the crop view.
     die(t_build::crop_view($this->owner->apikey, $this->form_url . "&a=crop"));
 }
Exemplo n.º 2
0
 public function crop()
 {
     if ($_POST) {
         echo $this->get_testimonial()->save_crop($this->owner->apikey, explode('|', $_POST['params']));
         die;
     }
     # display the crop view.
     die(t_build::crop_view($this->owner->apikey));
 }