]>
jfr.im git - uguu.git/blob - src/static/php/grill.php
d193949355f18f231a358b61aabe74df83c8dc05
5 if (!file_exists(__DIR__
. '../config.json')) {
6 throw new Exception('Cant read settings file.', 500);
9 $settings = json_decode(
10 file_get_contents(__DIR__
. '../config.json'),
13 if ($settings['PHP_ERRORS']) {
14 error_reporting(E_ALL
);
15 ini_set('display_errors', 1);
19 throw new Exception('Cant populate settings.', 500);
27 * @copyright Copyright (c) 2022 Go Johansson (nokonoko) <neku@pomf.se>
29 * This program is free software: you can redistribute it and/or modify
30 * it under the terms of the GNU General Public License as published by
31 * the Free Software Foundation, either version 3 of the License, or
32 * (at your option) any later version.
34 * This program is distributed in the hope that it will be useful,
35 * but WITHOUT ANY WARRANTY; without even the implied warranty of
36 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 * GNU General Public License for more details.
39 * You should have received a copy of the GNU General Public License
40 * along with this program. If not, see <https://www.gnu.org/licenses/>.
42 require_once __DIR__
. '/../vendor/autoload.php';
44 use Pomf\Uguu\GrillLoader
;