diff --git a/action.php b/action.php index 4dc5d90fd..fc8b68ea1 100644 --- a/action.php +++ b/action.php @@ -29,7 +29,7 @@ if (preg_match('/^http\\:\\/\\/[a-z0-9]+\\.psim\\.us\\//', $_SERVER['HTTP_REFERE // header("X-Debug: " . @$_SERVER['HTTP_REFERER']); require_once __DIR__ . '/lib/ntbb-session.lib.php'; -include_once __DIR__ . '/../pokemonshowdown.com/config/servers.inc.php'; +include_once __DIR__ . '/config/servers.inc.php'; include_once __DIR__ . '/lib/dispatcher.lib.php'; $dispatcher = new ActionDispatcher(array( diff --git a/crossdomain.php b/crossdomain.php index ebc462995..696a3ae38 100644 --- a/crossdomain.php +++ b/crossdomain.php @@ -19,7 +19,7 @@ $portType = ($protocol === 'http:' ? 'port' : 'httpsport'); if ($protocol === 'https:') $config['https'] = true; if ($config['host'] !== 'showdown') { - include_once '../pokemonshowdown.com/config/servers.inc.php'; + include_once __DIR__ . '/config/servers.inc.php'; $hyphenpos = strrpos($config['host'], '-'); if ($hyphenpos) { diff --git a/customcss.php b/customcss.php index e6fc53f20..7de6b2b5e 100644 --- a/customcss.php +++ b/customcss.php @@ -2,7 +2,7 @@ ini_set('max_execution_time', 60); // 1 minute -require_once __DIR__ . '/../pokemonshowdown.com/config/servers.inc.php'; +require_once __DIR__ . '/config/servers.inc.php'; require_once __DIR__ . '/config/config.inc.php'; spl_autoload_register(function ($class) { diff --git a/replays/index.php b/replays/index.php index e5bbe4562..b59b4cdd2 100644 --- a/replays/index.php +++ b/replays/index.php @@ -6,7 +6,7 @@ ini_set('display_startup_errors', TRUE); include 'theme/panels.lib.php'; // require_once '../../pokemonshowdown.com/lib/ntbb-database.lib.php'; -require_once '../../pokemonshowdown.com/config/servers.inc.php'; +require_once __DIR__ . '/../config/servers.inc.php'; $panels->setPageTitle('Replays'); $panels->setPageDescription('Watch replays of battles on Pokémon Showdown!'); diff --git a/website/index.php b/website/index.php index a32292efe..2fd265c5e 100644 --- a/website/index.php +++ b/website/index.php @@ -37,7 +37,7 @@ $lastmodified = @filemtime($serverbitscache); if ($lastmodified && (time() - $lastmodified < 60 * 10)) { $serverbits = file_get_contents($serverbitscache); } else { - include_once 'config/servers.inc.php'; + include_once __DIR__ . '/../config/servers.inc.php'; include_once 'lib/ntbb-database.lib.php'; $query = $psdb->query("SELECT `serverid`, `date`, `usercount` FROM `ntbb_userstats`"); $usercount = array(); diff --git a/website/servers.php b/website/servers.php index dc984fcfe..a154ea712 100644 --- a/website/servers.php +++ b/website/servers.php @@ -1,6 +1,6 @@