Create options.php

This commit is contained in:
Yiğit Kerem Oktay 2020-08-17 16:52:20 +03:00 committed by GitHub
parent 827b96c49b
commit 169b165b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
admin/options.php Normal file
View File

@ -0,0 +1,26 @@
<?php
if (!file_exists("../config.php"))
{
header("Location: ../");
}
else{
require_once("../config.php");
require_once("../classes/constellation.php");
require_once("../classes/mailer.php");
require_once("../classes/notification.php");
require_once("../template.php");
require_once("../libs/parsedown/Parsedown.php");
require_once("../classes/queue.php");
require_once("../classes/db-class.php");
$db = new SSDB();
define("NAME", $db->getSetting($mysqli,"name"));
define("TITLE", $db->getSetting($mysqli,"title"));
define("WEB_URL", $db->getSetting($mysqli,"url"));
define("MAILER_NAME", $db->getSetting($mysqli,"mailer"));
define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email"));
Template::render_header(_("Options"), true);
?>
<div class="text-center">
<h2>Server Status Options</h2>
</div>