1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-11-30 16:56:29 +00:00

chore: hide php deprecated warning

This commit is contained in:
Baoshuo Ren 2023-03-20 18:45:40 +08:00
parent 2c0a24250f
commit 7b2a37d48c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,7 @@
<?php <?php
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__); $_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__);
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php'; require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';

View File

@ -1,6 +1,11 @@
--- UOJ-System/web/app/cli.php 2022-12-30 09:54:05.452022649 +0800 --- UOJ-System/web/app/cli.php 2022-12-30 09:54:05.452022649 +0800
+++ UOJ-Luogu-RemoteJudge/web/app/cli.php 2023-03-20 18:30:46.336676319 +0800 +++ UOJ-Luogu-RemoteJudge/web/app/cli.php 2023-03-20 18:44:11.532475876 +0800
@@ -4,7 +4,19 @@ @@ -1,10 +1,24 @@
<?php
+error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
+
$_SERVER['DOCUMENT_ROOT'] = dirname(__DIR__);
require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php'; require $_SERVER['DOCUMENT_ROOT'] . '/app/libs/uoj-lib.php';
@ -20,7 +25,7 @@
$handlers = [ $handlers = [
'upgrade:up' => function ($name) { 'upgrade:up' => function ($name) {
@@ -61,7 +73,67 @@ @@ -61,7 +75,67 @@
}); });
die("finished!\n"); die("finished!\n");
}, },