// Include library require_once 'Debug.php'; require_once 'Grf.php'; require_once 'Bmp.php'; require_once 'Client.php'; $CONFIGS = (require_once 'configs.php'); // Apply configs if ($CONFIGS['DEBUG']) { // Do not show debug if the request is from roBrowser if (empty($_SERVER['HTTP_X_APPLICATION']) || $_SERVER['HTTP_X_APPLICATION'] !== 'roBrowser') { Debug::enable(); } } Client::$path = ''; Client::$data_ini = $CONFIGS['CLIENT_RESPATH'] . $CONFIGS['CLIENT_DATAINI']; Client::$AutoExtract = $CONFIGS['CLIENT_AUTOEXTRACT']; // Initialize client ini_set('memory_limit', '1000M'); Client::init(); /** * SEARCH ACCESS * This features is only used in map/rsm/str/grf viewer * If you are not using them, you can comment this block */ if (isset($_POST['filter']) && is_string($_POST['filter'])) { header('Status: 200 OK', true, 200); header('Content-type: text/plain'); if (!$CONFIGS['CLIENT_ENABLESEARCH']) { exit; }
require_once __ROOT__ . 'core/class.Controller.php'; require_once __ROOT__ . 'core/class.Cache.php'; require_once __ROOT__ . 'core/class.Client.php'; require_once __ROOT__ . 'core/class.DB.php'; // Set on the debug //Debug::enable(); /// Configs --------------------------------------------------------- //- Cache Cache::$path = __ROOT__ . "cache/"; // Cache directory Cache::$time = 15 * 60; // cache for 15 mins (set to 0 if you want to disable cache). //- Client Client::$path = __ROOT__ . "client/"; // Define where your client path is (where you put your grfs, data, etc.) Client::$data_ini = "DATA.INI"; // The name of your DATA.INI (to locate your grfs, if not set: grfs will not be loaded) Client::$AutoExtract = true; // If true, client will save extracted files from GRF into the data folder. //- DB DB::$path = __ROOT__ . "db/"; // The db folder (where is located the lua likes files) //- Sql Controller::$hostname = "127.0.0.1"; // Mysql Host Controller::$database = "ragnarok"; // Database Name Controller::$username = "******"; // Database Username Controller::$password = "******"; // Database Pass