Beispiel #1
0
             $areaId = 'media';
             $model = new ae_MediaModel();
             $model->load($_GET['media']);
         } else {
             if (isset($_GET['page']) && ae_Validate::id($_GET['page'])) {
                 $editArea = 'Page';
                 $areaId = 'page';
                 $model = new ae_PageModel();
                 $model->load($_GET['page']);
             } else {
                 if (isset($_GET['post']) && ae_Validate::id($_GET['post'])) {
                     $editArea = 'Post';
                     $areaId = 'post';
                     $model = new ae_PostModel();
                     $model->load($_GET['post']);
                     $model->loadCategoryIds();
                 } else {
                     if (isset($_GET['user']) && ae_Validate::id($_GET['user'])) {
                         $editArea = 'User';
                         $areaId = 'user';
                         $model = new ae_UserModel();
                         $model->load($_GET['user']);
                     } else {
                         header('Location: admin.php?error=unknown_edit_area');
                         exit;
                     }
                 }
             }
         }
     }
 }