|
|
@ -13,7 +13,7 @@ if ($_SESSION['loggedin'] != true) {
|
|
|
|
require_once __DIR__ . "/pages.php";
|
|
|
|
require_once __DIR__ . "/pages.php";
|
|
|
|
|
|
|
|
|
|
|
|
$pageid = "home";
|
|
|
|
$pageid = "home";
|
|
|
|
if (isset($_GET['page']) && !is_empty($_GET['page'])) {
|
|
|
|
if (!empty($_GET['page'])) {
|
|
|
|
$pg = strtolower($_GET['page']);
|
|
|
|
$pg = strtolower($_GET['page']);
|
|
|
|
$pg = preg_replace('/[^0-9a-z_]/', "", $pg);
|
|
|
|
$pg = preg_replace('/[^0-9a-z_]/', "", $pg);
|
|
|
|
if (array_key_exists($pg, PAGES) && file_exists(__DIR__ . "/pages/" . $pg . ".php")) {
|
|
|
|
if (array_key_exists($pg, PAGES) && file_exists(__DIR__ . "/pages/" . $pg . ".php")) {
|
|
|
@ -68,7 +68,7 @@ header("Link: <static/js/bootstrap.bundle.min.js>; rel=preload; as=script", fals
|
|
|
|
if (!empty($_GET['msg'])) {
|
|
|
|
if (!empty($_GET['msg'])) {
|
|
|
|
if (array_key_exists($_GET['msg'], MESSAGES)) {
|
|
|
|
if (array_key_exists($_GET['msg'], MESSAGES)) {
|
|
|
|
// optional string generation argument
|
|
|
|
// optional string generation argument
|
|
|
|
if (!isset($_GET['arg']) || is_empty($_GET['arg'])) {
|
|
|
|
if (empty($_GET['arg'])) {
|
|
|
|
$alertmsg = $Strings->get(MESSAGES[$_GET['msg']]['string'], false);
|
|
|
|
$alertmsg = $Strings->get(MESSAGES[$_GET['msg']]['string'], false);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$alertmsg = $Strings->build(MESSAGES[$_GET['msg']]['string'], ["arg" => strip_tags($_GET['arg'])], false);
|
|
|
|
$alertmsg = $Strings->build(MESSAGES[$_GET['msg']]['string'], ["arg" => strip_tags($_GET['arg'])], false);
|
|
|
|