initial repo creation
This commit is contained in:
+54
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
// ---------------------------------------------------
|
||||
// Directories
|
||||
// ---------------------------------------------------
|
||||
define('ROOT', dirname(__FILE__) . "/");
|
||||
|
||||
if (!file_exists(ROOT.'/config.php')) {
|
||||
die('Missing config.php.');
|
||||
}
|
||||
require_once(ROOT.'/config.php');
|
||||
|
||||
$GLOBALS['DB'] = mysqli_connect(DB_HOST,
|
||||
DB_USER,
|
||||
DB_PASSWORD,
|
||||
DB_NAME
|
||||
);
|
||||
|
||||
// Check Kban DB connection
|
||||
if (!$GLOBALS['DB']) {
|
||||
die('Main Database Connection error: ' . mysqli_connect_error());
|
||||
}
|
||||
|
||||
$GLOBALS['SBPP'] = mysqli_connect( SBPP_DB_HOST,
|
||||
SBPP_DB_USER,
|
||||
SBPP_DB_PASSWORD,
|
||||
SBPP_DB_NAME);
|
||||
|
||||
// Check SBPP DB connection
|
||||
if (!$GLOBALS['SBPP']) {
|
||||
die('SBPP Database Connection error: ' . mysqli_connect_error());
|
||||
}
|
||||
|
||||
$GLOBALS['DB_PLAYTIME'] = mysqli_connect( DB_HOST_PLAYTIME,
|
||||
DB_USER_PLAYTIME,
|
||||
DB_PASSWORD_PLAYTIME,
|
||||
DB_NAME_PLAYTIME);
|
||||
|
||||
// Check Playtime DB connection
|
||||
if (!$GLOBALS['DB_PLAYTIME']) {
|
||||
die('Playtime Database Connection error: ' . mysqli_connect_error());
|
||||
}
|
||||
|
||||
$GLOBALS['SERVER_FORUM_NAME'] = SERVER_FORUM_NAME;
|
||||
$GLOBALS['SERVER_FORUM_URL'] = SERVER_FORUM_URL;
|
||||
$GLOBALS['SERVER_NAME'] = SERVER_NAME;
|
||||
$GLOBALS['SERVER_FASTDL'] = SERVER_FASTDL;
|
||||
$GLOBALS['STEAM_API_KEY'] = STEAM_API_KEY;
|
||||
$GLOBALS['STEAM_GROUP'] = STEAM_GROUP;
|
||||
$GLOBALS['DISCORD'] = DISCORD;
|
||||
$GLOBALS['SECRET_KEY'] = SECRET_KEY;
|
||||
|
||||
/* TIME ZONE */
|
||||
date_default_timezone_set('UTC');
|
||||
?>
|
||||
Reference in New Issue
Block a user