1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-10-18 06:08:48 +00:00

chore: update cli.php

This commit is contained in:
Baoshuo Ren 2023-03-29 19:18:21 +08:00
parent 306cfd77c4
commit 5370ae03f9
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 6 additions and 9 deletions

View File

@ -1,11 +1,11 @@
<?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';
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
requirePHPLib('luogu'); requirePHPLib('luogu');
requirePHPLib('data'); requirePHPLib('data');

View File

@ -1,14 +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:44:11.532475876 +0800 +++ UOJ-Luogu-RemoteJudge/web/app/cli.php 2023-03-29 19:17:31.611110921 +0800
@@ -1,10 +1,24 @@ @@ -4,7 +4,21 @@
<?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';
+error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
+
+requirePHPLib('luogu'); +requirePHPLib('luogu');
+requirePHPLib('data'); +requirePHPLib('data');
+ +