Esempio n. 1
0
 public function cleantimelapse()
 {
     $cr = ERROR_OK;
     $this->load->helper('zimapi');
     if (!CoreStatus_checkInPrinted()) {
         $cr = 403;
     } else {
         if (!ZimAPI_removeTimelapse()) {
             $cr = ERROR_INTERNAL;
         }
     }
     $this->_return_cr($cr);
     return;
 }
Esempio n. 2
0
 public function timelapse_end_ajax()
 {
     $status_code = 200;
     if (!CoreStatus_checkInPrinted()) {
         $status_code = 403;
     } else {
         if (!ZimAPI_removeTimelapse()) {
             $status_code = 500;
         }
     }
     $this->output->set_status_header($status_code);
     return;
 }