<?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();
예제 #2
0
<?php

$pdo = new PDO('sqlite:db.sqlite') or die('Cannot open the database');
require '../debugger/tracyLoader.php';
require 'classes/Building.php';
require 'classes/Player.php';
require 'classes/BuildingRender.php';
require 'classes/ActionDispatcher.php';
$actionDispatcher = new ActionDispatcher($pdo);
$actionDispatcher->run();
$testVariable = 'GIT test 2';
예제 #3
0
include_once "action/rss/SaveBookmarkAction.php";
include_once "action/rss/DeleteBookmarkAction.php";
include_once "action/rss/SaveFavouriteWebsiteAction.php";
include_once "action/rss/ViewPlaylistPageAction.php";
include_once "action/web/ViewWebHomePageAction.php";
include_once "action/web/ViewPlaylistWebPageAction.php";
include_once "action/web/ViewScraperMegavideoPageAction.php";
include_once "action/web/SetupXvodPageAction.php";
include_once "action/web/ViewCookiePageAction.php";
include_once "action/web/ViewScraperPageAction.php";
include_once "action/web/ViewFavouritePageAction.php";
include_once "action/web/ViewInformationPageAction.php";
//Megavideo scraper
include_once "scraper/megavideo/MegavideoDatabase.php";
include_once "scraper/megavideo/MegavideoLinkBean.php";
//Update action, if needed
if (UPDATE_DB) {
    include_once "config/update.php";
}
//Get action and dispatch
if (isset($_GET["action"])) {
    $action = $_GET["action"];
} else {
    if (isset($_GET["web"])) {
        $action = ViewWebHomePageAction::getActionName();
    } else {
        $action = ViewHomePageAction::getActionName();
    }
}
$actionDispatcher = new ActionDispatcher();
$actionDispatcher->dispatchAction($action);