2024-04-04 23:15:58 +00:00
|
|
|
<?php
|
|
|
|
// USER CONFIGURATION ITEMS
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Which security model should the application use?
|
|
|
|
* - 0 = single-user, no password
|
|
|
|
* - 1 = single-user with password
|
|
|
|
* - 2 = multi-user (all users require passwords)
|
|
|
|
*
|
|
|
|
* (NOTE THAT 1 AND 2 HAVE NOT YET BEEN IMPLEMENTED)
|
|
|
|
*/
|
|
|
|
const SECURITY_MODEL = 0;
|
|
|
|
|
|
|
|
/** The name of the database file where users and feeds should be kept */
|
|
|
|
const DATABASE_NAME = 'frc.db';
|
|
|
|
|
|
|
|
// END USER CONFIGURATION ITEMS
|
|
|
|
// (editing below this line is not advised)
|
|
|
|
|
|
|
|
include 'lib/Data.php';
|
2024-04-05 00:49:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Render the page title
|
|
|
|
* @param string $title The title of the page being displayed
|
|
|
|
*/
|
|
|
|
function page_head(string $title): void {
|
|
|
|
?><!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<title><?=$title?> | Feed Reader Central</title>
|
|
|
|
</head>
|
|
|
|
<body><?php
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Render the end of the page
|
|
|
|
*/
|
|
|
|
function page_foot(): void {
|
|
|
|
?></body></html><?php
|
|
|
|
}
|