2019-05-09 06:54:39 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* “Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
|
|
|
|
|
* and the Universe trying to produce bigger and better idiots.
|
|
|
|
|
* So far, the Universe is winning.”
|
|
|
|
|
*
|
|
|
|
|
* ― Rick Cook, The Wizardry Compiled
|
|
|
|
|
*/
|
|
|
|
|
|
2020-05-14 05:42:13 +00:00
|
|
|
// tideways_xhprof_enable(TIDEWAYS_XHPROF_FLAGS_MEMORY | TIDEWAYS_XHPROF_FLAGS_CPU);
|
|
|
|
|
|
2020-03-01 06:33:19 +00:00
|
|
|
error_reporting(0);
|
|
|
|
|
ini_set('display_errors', 0);
|
|
|
|
|
|
2019-08-20 15:43:01 +00:00
|
|
|
// ini_set('display_errors', 1);
|
|
|
|
|
// ini_set('display_startup_errors', 1);
|
|
|
|
|
// error_reporting(E_ALL);
|
|
|
|
|
|
2019-05-09 06:54:39 +00:00
|
|
|
$path = (isset($_GET['q'])) ? explode('/', $_GET['q']) : [];
|
|
|
|
|
|
|
|
|
|
array_shift($path);
|
|
|
|
|
$version = array_shift($path);
|
|
|
|
|
|
2020-05-14 05:42:13 +00:00
|
|
|
// $data = tideways_xhprof_disable();
|
|
|
|
|
// $key = str_replace(['/', '.'], '_', $_GET['q']);
|
|
|
|
|
// file_put_contents(
|
|
|
|
|
// "./{$key}-appwrite.xhprof",
|
|
|
|
|
// serialize($data)
|
2020-06-27 04:23:06 +00:00
|
|
|
// );
|
|
|
|
|
|
2020-06-25 11:31:27 +00:00
|
|
|
include __DIR__ . '/../app/app.php';
|