Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* [Bug] Fixed footer lookup PHP error for sending emails
* [Bug] Fixed changelog format
* [Bug] Fixed styling on content management page (#20)
* [API] Added API call for getting content management text
* [Project] Footers in the project are now generic
* [Project] Default configs do not reference UMA labels anymore

Expand Down
17 changes: 17 additions & 0 deletions webroot/api/content/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

header('Content-type: text/plain');

require_once "../../../resources/autoload.php";

if (isset($_GET["line_wrap"])) {
$CHAR_WRAP = $_GET["line_wrap"];
} else {
$CHAR_WRAP = 80;
}

if (!isset($_GET["content_name"])) {
die();
}

echo $SQL->getPage($_GET["content_name"])["content"];