print Editor::DeleteModule($_POST['module_id']);
                exit;
                // Saves page and module placing
            // Saves page and module placing
            case 'page_save':
                Editor::SavePage($_POST['page_data']);
                exit;
                // Create new page
            // Create new page
            case 'page_update':
                Editor::UpdatePage($_POST['data']);
                exit;
                // Delete page
            // Delete page
            case 'page_delete':
                Editor::DeletePage($_POST['page_id']);
                exit;
                // Set default page
            // Set default page
            case 'page_default':
                Editor::SetDefaultPage($_POST['page_id']);
                exit;
            default:
                exit;
        }
    } else {
        print Editor::GetPage($pageid);
    }
} else {
    $pagename = isset($_GET['page']) ? $_GET['page'] : 'index';
    print Content::GetPage($pageid);