mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Update paths for servers.inc.php
This commit is contained in:
parent
2105dc8e57
commit
47a454cd16
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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!');
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
include_once 'config/servers.inc.php';
|
||||
include_once __DIR__ . '/../config/servers.inc.php';
|
||||
include_once '../play.pokemonshowdown.com/lib/ntbb-session.lib.php';
|
||||
include 'style/wrapper.inc.php';
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ $page = 'servers';
|
|||
$pageTitle = "Servers";
|
||||
|
||||
function saveservers() {
|
||||
file_put_contents('config/servers.inc.php', '<?php
|
||||
file_put_contents(__DIR__ . '/../config/servers.inc.php', '<?php
|
||||
|
||||
/* if ((substr($_SERVER[\'REMOTE_ADDR\'],0,11) === \'69.164.163.\') ||
|
||||
(@substr($_SERVER[\'HTTP_X_FORWARDED_FOR\'],0,11) === \'69.164.163.\')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user