Get info from the db!

This commit is contained in:
Yiğit Kerem Oktay 2020-08-17 12:56:57 +03:00 committed by GitHub
parent 349aa0e195
commit b6ed71bdb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,13 @@ require_once("template.php");
require_once("classes/constellation.php");
require_once("classes/subscriptions.php");
require_once("classes/telegram.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"));
$subscription = new Subscriptions();
$telegram = new Telegram();