public function run() { $this->configure(); \yapaf\DevServer::handle(); $requestHandler = new RequestHandler($this->configuration); return $requestHandler->handle(); }
WOT Game is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. WOT Game is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with WOT Game. If not, see <http://www.gnu.org/licenses/>. */ if (!defined('RELATIVE_LW_DIR')) { define('RELATIVE_LW_DIR', ''); } if (!defined('RELATIVE_WCF_DIR')) { define('RELATIVE_WCF_DIR', RELATIVE_LW_DIR . '../wcf/'); } //require_once('./global.php'); if (!defined('INSIDE')) { define('INSIDE', true); } $ugamela_root_path = dirname(__FILE__) . '/../'; require_once '../extension.inc'; require_once '../common.php'; if (!isset($_GET['page']) && !isset($_GET['form']) && !isset($_GET['action'])) { header('Location: http://xen251.linea7.net/game'); } RequestHandler::handle(array(LW_DIR . 'lib/', WCF_DIR . 'lib/'));
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['htUsername'])) { $this->htUsername = $_REQUEST['htUsername']; } if (isset($_REQUEST['htPassword'])) { $this->htPassword = $_REQUEST['htPassword']; } if (isset($_REQUEST['saveAuthData'])) { $this->saveAuthData = intval($_REQUEST['saveAuthData']); } if (isset($_REQUEST['packageUpdateServerID'])) { $this->packageUpdateServerID = intval($_REQUEST['packageUpdateServerID']); } if (!empty($_REQUEST['requestedPage']) || !empty($_REQUEST['requestedForm']) || !empty($_REQUEST['requestedAction'])) { // get update server require_once WCF_DIR . 'lib/acp/package/update/UpdateServerEditor.class.php'; $updateServer = new UpdateServerEditor($this->packageUpdateServerID); if (!$updateServer->packageUpdateServerID) { throw new IllegalLinkException(); } // update update server if ($this->saveAuthData) { $updateServer->update($updateServer->server, $this->htUsername, $this->htPassword); } // save auth data in session $authData = array('authType' => 'Basic', 'htUsername' => $this->htUsername, 'htPassword' => $this->htPassword); // session data $packageUpdateAuthData = WCF::getSession()->getVar('packageUpdateAuthData'); if ($packageUpdateAuthData === null) { $packageUpdateAuthData = array(); } $packageUpdateAuthData[$this->packageUpdateServerID] = $authData; WCF::getSession()->register('packageUpdateAuthData', $packageUpdateAuthData); // remove form=PackageUpdateAuth unset($_REQUEST['form'], $_GET['form'], $_POST['form']); // set page/form/action if (!empty($_REQUEST['requestedPage'])) { $_POST['page'] = $_REQUEST['requestedPage']; } else { if (!empty($_REQUEST['requestedForm'])) { $_POST['form'] = $_REQUEST['requestedForm']; } else { $_POST['action'] = $_REQUEST['requestedAction']; } } // remove requestedPage... unset($_REQUEST['requestedPage'], $_REQUEST['requestedForm'], $_REQUEST['requestedAction']); // start request handler global $packageDirs; RequestHandler::handle(ArrayUtil::appendSuffix(!empty($packageDirs) ? $packageDirs : array(WCF_DIR), 'lib/acp/')); exit; } }
<?php require_once './global.php'; RequestHandler::handle(ArrayUtil::appendSuffix($packageDirs, 'lib/'));
<?php // Includes include_once '_dbconfig.inc.php'; include_once './inc/RequestHandler.inc.php'; include_once '../DB_config/login_credentials_DB_bpmspace_sqms.inc.php'; // Command (via GET) if (isset($_GET["c"])) { $command = htmlspecialchars($_GET["c"]); } else { die("no data"); } // Angular transmits data in JSON Format $params = json_decode(file_get_contents('php://input'), true); // RequestHandler from EduMS $handler = new RequestHandler(); // Maybe: DB-Connection parameter required $content = $handler->handle($command, $params); // Return data if ($content == "") { http_response_code(400); } else { echo $content; }
<?php /** * @author Marcel Werk * @copyright 2001-2009 WoltLab GmbH * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php> * @package com.woltlab.wcf * @category Community Framework */ require_once './global.php'; RequestHandler::handle(array(WCF_DIR . 'lib/acp/'));
ob_start(); // detect directory separator define("DS", stristr(PHP_OS, 'WIN') ? '\\' : '/'); // detect document root $document_root = substr(__FILE__, 0, strrpos(__FILE__, DS)); // detect base URL $base_root = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http'; define("BASE_ROOT", $base_root); // As $_SERVER['HTTP_HOST'] is user input, ensure it only contains // characters allowed in hostnames. $base_url = $base_root .= '://' . preg_replace('/[^a-z0-9-:._]/i', '', $_SERVER['HTTP_HOST']); // $_SERVER['SCRIPT_NAME'] can, in contrast to $_SERVER['PHP_SELF'], not // be modified by a visitor. if ($dir = trim(dirname($_SERVER['SCRIPT_NAME']), '\\,/')) { $base_path = "/{$dir}"; $base_url .= $base_path; $base_path .= '/'; } else { $base_path = '/'; } define('BASE_URL', $base_url); require_once $document_root . "/core/xtemplate.class.php"; require_once $document_root . "/config/config.php"; require_once "core/inflector.php"; require_once "core/auto_loadable.php"; require_once "config/version.php"; // Libraries require_once 'libraries/firephp/fb.php'; $requestHandler = new RequestHandler(); $requestHandler->handle();
<?php require_once dirname(__FILE__) . '/../config/config.php'; if (!defined('SUBVY_CONFIGURED')) { die('Unable to configure properly this instance of Subvy. Please check your configuration files.'); } if ($debug) { error_reporting(E_ALL); ini_set('display_errors', 'On'); } $handler = new RequestHandler(); $handler->handle();
$response = array("response" => "no data"); if (sizeof($routes) < 2) { echo noLogin; file_put_contents('logs/failLogInLog.log', date("d.m.Y - H:i:s", time()) . "\nnoLogin/fail request: " . implode($routes) . "\n-----------\n", FILE_APPEND | LOCK_EX); exit; } elseif (sizeof($routes) < 3) { $user = $routes[0]; $token = $routes[1]; $routes[2] = 'brand'; $handler = new RequestHandler($user, $token, $db); $response = $handler->handle($routes); } else { $user = $routes[0]; $token = $routes[1]; $handler = new RequestHandler($user, $token, $db); $response = $handler->handle($routes); // 0 = Benutzer | 1 = Passwort | 2 = section } //Call a debug-funktion with the url-ending:'.../api/index.php/x/y?debug=1' if (isset($_REQUEST['debug']) && $_REQUEST['debug']) { echo "<pre>"; //echo "Debug - print variable 'response':\n"; var_dump($response); echo "<hr>JSON<br>"; } /*Generate a default navigation*/ if (is_array($response)) { if (!array_key_exists('topnav', $response)) { $response['topnav'] = array(array("text" => "Brand", "path" => "?navdest=Brand"), array("text" => "Monitor", "path" => "?navdest=Monitor")); } if (!array_key_exists('footer', $response)) {