This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// include environment related files | |
include_once '../inc/env.inc.php'; | |
// will return JSON response | |
header('Content-type: application/json'); | |
WEApplication::serviceAvailabilityCheck(); | |
$secretDev = isset($_POST['secret_dev']) ? $_POST['secret_dev'] : ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('LARAVEL_START', microtime(true)); | |
require __DIR__.'/vendor/autoload.php'; | |
$app = require_once __DIR__ . '/bootstrap/app.php'; | |
// Laravel does not create that directory automatically so we have to create it | |
// You can remove this if you do not use views in your application (e.g. for an API) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Needs to be used with a .htaccess file pointing all requests to it | |
$uri = $_SERVER['REQUEST_URI']; | |
$queryString = http_build_query($_GET); | |
$payload = file_get_contents('php://input'); | |
$url = 'https://foo.bar' . $uri; |
OlderNewer