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 /// ----------------------------------------------------------------- // No write access to directory ? disable cache. if (Cache::$time && !is_writable(Cache::$path)) { Cache::$time = 0; Debug::write('Disable Cache system, don\'t have write acess to "' . Cache::$path . '".', 'error'); } if (Client::$AutoExtract && !is_writable(Client::$path . 'data/')) { Client::$AutoExtract = false; Debug::write('Disable GRF auto-extract mode, don\'t have write access to "' . Client::$path . 'data/".', 'error'); }
Cache::$time = 0; // 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 = $settings['db_host']; // Mysql Host Controller::$database = $settings['db_name']; // Database Name Controller::$username = $settings['db_user']; // Database Username Controller::$password = $settings['db_pass']; // Database Pass /// ----------------------------------------------------------------- // No write access to directory ? disable cache. if (Cache::$time && !is_writable(Cache::$path)) { Cache::$time = 0; Debug::write('Disable Cache system, don\'t have write acess to "' . Cache::$path . '".', 'error'); } if (Client::$AutoExtract && !is_writable(Client::$path . 'data/')) { Client::$AutoExtract = false; Debug::write('Disable GRF auto-extract mode, don\'t have write access to "' . Client::$path . 'data/".', 'error'); }