Пример #1
0
 function deleteDBSubmission()
 {
     $result = Input::get('delete');
     if ($result != 'Y-E-S') {
         $data['response'] = '<span style="color:red">DB reset has failed. Y-E-S was not entered.</span>';
         return View::make('deleteKohlsDBForm', $data);
     } else {
         PackingList::truncate();
         if (Input::get('deleteLocal') != null) {
             $this->rrmdir(storage_path() . '/Kohlspos');
             $this->rrmdir(public_path() . '/Kohlspos');
         }
         $data['response'] = '<span style="color:red">All items in the Kohls DB have been cleared.</span>';
         return View::make('deleteKohlsDBForm', $data);
     }
 }