appwrite/public/index.php

32 lines
849 B
PHP

<?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
*/
// tideways_xhprof_enable(TIDEWAYS_XHPROF_FLAGS_MEMORY | TIDEWAYS_XHPROF_FLAGS_CPU);
error_reporting(0);
ini_set('display_errors', 0);
// ini_set('display_errors', 1);
// ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);
$path = (isset($_GET['q'])) ? explode('/', $_GET['q']) : [];
array_shift($path);
$version = array_shift($path);
// $data = tideways_xhprof_disable();
// $key = str_replace(['/', '.'], '_', $_GET['q']);
// file_put_contents(
// "./{$key}-appwrite.xhprof",
// serialize($data)
// );
include __DIR__ . '/../app/app.php';