} } switch ($_GET["arg"]) { case "list": DrawContentList($connection->real_escape_string($_GET["filter"])); break; case "ajax-populate-select": AJAXPopoulateSelect($connection->real_escape_string($_POST["container"])); break; case "ajax-save-content": $id = $connection->real_escape_string($_POST["id"]); $type = $connection->real_escape_string($_POST["type"]); $dispname = $connection->real_escape_string($_POST["dispname"]); $content_type = $connection->real_escape_string($_POST["content_type"]); $content = $_POST["content"]; AJAXSaveContent($id, $type, $content, $content_type, $dispname, $_POST["settings"]); break; case "ajax-manual-editor": $id = $connection->real_escape_string($_POST["id"]); GetEditorContent($id); break; case "ajax-special-carousel-preview": AJAXSpecialCarouselPreview($_POST["path"]); break; case "ajax-special-file-lister-preview": AJAXSpecialFileListerPreview($_POST["path"]); break; case "ajax-is-orphan": IsViewOrphan($connection->real_escape_string($_POST["id"]), $connection->real_escape_string($_POST["parent"])); break; case "ajax-orphans-views":
$id = $connection->real_escape_string($_POST["id"]); DeleteArticle($id); break; case "edit-article": $id = $connection->real_escape_string($_GET["id"]); DrawArticlesEditGUI($id); break; case "ajax-manual-editor": $id = $connection->real_escape_string($_POST["id"]); GetEditorContent($id); break; case "ajax-save-content": $id = $connection->real_escape_string($_POST["id"]); $title = $connection->real_escape_string($_POST["title"]); $content = $_POST["content"]; AJAXSaveContent($id, $title, $content); break; case "ajax-new-article": $blog_id = $connection->real_escape_string($_POST["blog_id"]); $title = $connection->real_escape_string($_POST["title"]); NewBlogArticle($title, $blog_id); break; case "ajax-add-blog-execute": $id = $connection->real_escape_string($_POST["id"]); GenerateBlogSYSRepresent($id); //Used for the newsfeed module, non content related, that is in content module break; } function DrawBlogsListGUI() { global $connection;