mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
This moves most of the logic of action.php into a separate file lib/dispatcher.lib.php and separates the actions into ladder-related actions and non-ladder-related actions. This is intended to make it possible to have a second action.php that handlers only ladder-related actions, which can run on the main server computer and allow that computer to make HTTP requests to `localhost`, which should help reduce ladder errors.
21 lines
409 B
PHP
21 lines
409 B
PHP
<?php
|
|
|
|
/*
|
|
|
|
License: GPLv2 or later
|
|
<http://www.gnu.org/licenses/gpl-2.0.html>
|
|
|
|
*/
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
include_once '../pokemonshowdown.com/lib/ntbb-session.lib.php';
|
|
include_once '../pokemonshowdown.com/config/servers.inc.php';
|
|
include_once 'lib/dispatcher.lib.php';
|
|
|
|
$dispatcher = new ActionDispatcher(array(
|
|
new DefaultActionHandler(),
|
|
new LadderActionHandler()
|
|
));
|
|
$dispatcher->executeActions();
|