Make name configurable

This commit is contained in:
Robert Miles 2019-10-08 11:25:31 -04:00
parent d0a8fe748e
commit ed3bcb40ed
1 changed files with 4 additions and 3 deletions

View File

@ -2,20 +2,21 @@
include 'client/config.php';
include 'bbj.php';
$bbj = new BBJ(BBJ_HOST,BBJ_PORT);
$name = "tildeverse BBJ";
if (isset($_GET["thread_id"])) {
$thread = $bbj->thread_load($_GET["thread_id"]);
if ($thread["error"]!=null) {
$title = "Unknown Thread | ~team BBJ";
$title = "Unknown Thread | ".$name;
include 'client/header.php';
echo "\t\t<p>No such thread exists. <a href='/'>Go home.</a></p>";
include 'client/footer.php';
die();
} else {
$title = $thread["data"]["title"]." by ".$thread["usermap"][$thread["data"]["author"]]["user_name"]." | ~team BBJ";
$title = $thread["data"]["title"]." by ".$thread["usermap"][$thread["data"]["author"]]["user_name"]." | ".$name;
}
} else {
$title = "~team BBJ";
$title = $name;
}
include 'client/header.php';