Skip to content

Commit

Permalink
Update paths for servers.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Jul 27, 2020
1 parent 2105dc8 commit 47a454c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
// 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(
Expand Down
2 changes: 1 addition & 1 deletion crossdomain.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
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) {
Expand Down
2 changes: 1 addition & 1 deletion customcss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion replays/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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!');
Expand Down
2 changes: 1 addition & 1 deletion website/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function servercmp($a, $b) {
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();
Expand Down
4 changes: 2 additions & 2 deletions website/servers.php
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -22,7 +22,7 @@
$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.\')) {
Expand Down

0 comments on commit 47a454c

Please sign in to comment.