1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-04-23 09:24:36 +00:00
Masco Skray c1294121d3 fix(uoj/1/app/libs): fix no preview of text files in problem_data_manage
When managing data, there will be a preview of test data or validator binary file.
But in PHP7 the prefiew of test data text file or problem.conf text file is not shown.
After my test it is caused by file_get_contents() when passing offset with -1.
It is strange that the manual on php.net in Chinese the default of $offset is -1,
but in English the default of $offset is 0. Use -1 will get nothing, 0 instead is fine.
The commit also change uojFilePreview() that can also be used as viewing binary file.
For backwards compatibility, we just set text as the default file type and no need to specify.
2018-10-11 23:40:05 +08:00
2018-09-20 17:21:40 +08:00
2018-09-20 17:21:40 +08:00
2018-09-20 17:38:09 +08:00

Universal OJ

这是一份民间的UOJ版本我们希望它比官方版本更易用。

部署文档在universaloj.github.io

目前已经支持的特性:

  • 子目录博客(感谢roastduck的贡献)
  • zip传题 (感谢AD1024的贡献)

希望对您有帮助。

Description
Online Judge System for Shijiazhuang No.2 Middle School, based on Universal Online Judge.
https://sjzezoj.com Readme AGPL-3.0 43 MiB
Languages
JavaScript 93.4%
PHP 4.2%
C++ 1.3%
TypeScript 0.3%
CSS 0.3%
Other 0.4%