Ejemplo n.º 1
0
             $text = $admin->editContent($_GET['id']);
             if ($text == "") {
                 $error = "Something went wrongo!";
             } else {
                 break;
             }
         } else {
             if ($_GET['action'] == "unlink") {
                 if ($admin->unlinkContent($_GET['id'])) {
                     $success = "Unlinked the content with id: " . $_GET['id'];
                 } else {
                     $error = "Could not unlink the content with id: " . $_GET['id'];
                 }
             } else {
                 if ($_GET['action'] == "remove") {
                     if ($admin->removeContent($_GET['id'])) {
                         $success = "Removed the content with id: " . $_GET['id'];
                     } else {
                         $error = "Could not remove the content with id: " . $_GET['id'];
                     }
                 }
             }
         }
     }
 }
 $pagearray = $admin->getSiteMenuArray(true);
 $pages = "";
 foreach ($pagearray as $v) {
     $pages .= "\n    <option value='" . $v['id'] . "'>" . $v['name'] . "</option>\n";
 }
 $typearray = $admin->getContentTypesArray();