コード例 #1
0
 public function deleteAction()
 {
     if (check_RequestMethod('GET')) {
         appsModel::deleteData((int) $_GET['id_application']);
         appsModel::deleteApp2PlatformData((int) $_GET['id_application']);
         appsModel::deleteLogData((int) $_GET['id_application']);
         header("Location: " . $this->makeURI(array('action' => 'list')));
         die;
     } else {
         _404();
     }
 }
コード例 #2
0
 public function deleteAction()
 {
     if (check_RequestMethod('GET')) {
         $user_apps_data = appsModel::getApps((int) $_GET['id_user']);
         if (is_array($user_apps_data)) {
             foreach ($user_apps_data as $v) {
                 appsModel::deleteData($v['id_application']);
                 appsModel::deleteApp2PlatformData($v['id_application']);
                 appsModel::deleteLogData($v['id_application']);
             }
         }
         userModel::deleteData((int) $_GET['id_user']);
         header("Location: " . $this->makeURI(array('action' => 'list')));
         die;
     } else {
         _404();
     }
 }