<?php
/*
The following information is to access the mysql instance, make sure the user can access all server schemas
*/
define('DB_SERVER', 'localhost:3306');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '');
define("DB_ESM", "exile_server_manager");
/*
Community information. Feel free to customize to your liking
*/
define('COMMUNITY_NAME', "Arcas Industries");
define('WELCOME_MESSAGE',
'We are excited to announce the launch of this site.
We will be able to give the players of our servers an edge as they can see their in game stats live, be able to make base maintenance payments, and so much more!');
// relative path to your community logo. This is relative to the root directory
define('COMMUNITY_LOGO', "img/exile_logo.jpg");
/*
Any servers you are currently running. If the user's player doesn't exist on that server, they will only be able to access the leaderboards and server info.
*/
$SERVERS =
[
"XXXX" =>
[
"ip" => "",
"port" => 2302,
"mods" =>
[
[
"name" => "",
"version" => "",
"link" => ""
]
],
"restart_schedule" => "",
"rules" => "",
"database_schema" => ""
]
];
/*
Your Steam WebAPI-Key found at http://steamcommunity.com/dev/apikey
*/
define("STEAM_API_KEY", "");
/*
The main URL of your website displayed in the login page, also this is the domain it will forward to
*/
define("STEAM_DOMAIN_NAME", "localhost");
/*
Page to redirect to after a successful logout, relative to the root of the website
*/
define("STEAM_LOGOUT_PAGE", "login/index.php");
/*
Page to redirect to after a successful login, relative to the root of the website
*/
define("STEAM_LOGIN_PAGE", "index.php");
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!!! ////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Assign the database
$exile_db = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD);
$esm_db = mysqli_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD, DB_ESM);
// Homage to Exile error codes
define("RESULT_FAILED", 0);
define("RESULT_SUCCESS", 1);
define("FAILED_QUERY", "Failed to query! Please inform the webmaster");
define("INVALID_PERMS", "You do not have permissions to do that");
define("ADD_REMOVE_SELF", "You cannot add/kick yourself");
define("NOT_IN_BUILD_RIGHTS", "You do not have build rights");
define("NOT_IN_MODERATORS", "You do not have moderator rights");
define("PROMOTE_DEMOTE_SELF", "You cannot promote/demote yourself");
define("KICKING_OWNER", "You cannot kick the owner");
define("ALREADY_MEMBER", "This player is already a member");
define("FLAG_STOLEN", "Your flag has been stolen!");
define("TERRITORY_HIGHEST_LEVEL", "Your territory is already at it's highest level");
define("POOR_PLAYER", "You do not have enough pop tabs in your locker!");
?>