mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-24 13:41:52 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
17 lines
452 B
PHP
17 lines
452 B
PHP
<?php
|
|
|
|
class UOJConfig {
|
|
public static $data;
|
|
|
|
public static function mergeConfig($extra) {
|
|
mergeConfig(self::$data, $extra);
|
|
}
|
|
}
|
|
|
|
if (is_file($_SERVER['DOCUMENT_ROOT'].'/app/.config.php')) {
|
|
UOJConfig::$data = include $_SERVER['DOCUMENT_ROOT'].'/app/.config.php';
|
|
UOJConfig::mergeConfig(include $_SERVER['DOCUMENT_ROOT'].'/app/.default-config.php');
|
|
} else {
|
|
UOJConfig::$data = include $_SERVER['DOCUMENT_ROOT'].'/app/.default-config.php';
|
|
}
|