2016-01-10 11:01:49 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// This file contains the main configuration for a LegacyWorlds game
|
|
|
|
// engine instance
|
|
|
|
|
|
|
|
$config = array(
|
|
|
|
// Path and URL to static contents
|
2024-12-31 17:41:29 +01:00
|
|
|
"staticdir" => __DIR__ . "/../site/static",
|
|
|
|
"staticurl" => "http://localhost/static",
|
2016-01-10 11:01:49 +01:00
|
|
|
|
|
|
|
// Path to game scripts
|
2024-12-31 17:41:29 +01:00
|
|
|
"scriptdir" => __DIR__,
|
2016-01-10 11:01:49 +01:00
|
|
|
|
|
|
|
// Path to the cache
|
|
|
|
"cachedir" => "/tmp/lwcache",
|
|
|
|
|
|
|
|
// Debugging level
|
|
|
|
"debug" => 2,
|
|
|
|
|
|
|
|
// Maintenance mode
|
|
|
|
"maintenance" => null,
|
|
|
|
/*
|
|
|
|
"maintenance" => array(
|
|
|
|
// Hour/Minutes/Seconds/Month/Day/Year
|
|
|
|
"until" => mktime(10, 20, 0, 1, 11, 2007),
|
|
|
|
"reason" => "Upgrading the MySQL server."
|
|
|
|
),
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Version numbers to make us feel good
|
|
|
|
"v_engine" => "0.85a",
|
|
|
|
"v_game" => "Beta 5",
|
|
|
|
"v_rev" => "2284",
|
|
|
|
|
|
|
|
// Control script fifo and directory
|
|
|
|
"cs_fifo" => "/tmp/.lwFifo",
|
|
|
|
"cs_path" => "/tmp/.lwControl",
|
|
|
|
|
|
|
|
// Trace users?
|
|
|
|
"trace" => array(),
|
|
|
|
|
|
|
|
// Do we need to actually send emails?
|
|
|
|
"sendmails" => false
|
|
|
|
);
|
|
|
|
|
|
|
|
if (file_exists($config['cachedir'] . "/maintenance.ser")) {
|
|
|
|
$__maintenanceFile = fopen($config['cachedir'] . "/maintenance.ser", "r");
|
|
|
|
$config['maintenance'] = unserialize(fgets($__maintenanceFile));
|
|
|
|
fclose($__maintenanceFile);
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|