Get data from the db

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

View File

@ -6,7 +6,13 @@ require_once("classes/subscriber.php");
require_once("classes/subscriptions.php");
require_once("classes/mailer.php");
//require_once("libs/php_idn/idna.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"));
$mailer = new Mailer();
$subscriber = new Subscriber();
$subscription = new Subscriptions();