S2OJ/uoj/1/app
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
..
controllers fix(uoj/1/app/libs): fix no preview of text files in problem_data_manage 2018-10-11 23:40:05 +08:00
libs fix(uoj/1/app/libs): fix no preview of text files in problem_data_manage 2018-10-11 23:40:05 +08:00
locale update: fetch commits from upstream 2018-09-20 19:34:38 +08:00
models fix(uoj/1/app/models): session issue caused by wrong cookie domain 2018-10-11 18:46:58 +08:00
storage Initial commit 2018-09-20 17:21:40 +08:00
upgrade update: fetch commits from upstream 2018-09-20 19:34:38 +08:00
vendor feat(uoj/1/app): modify the DB operation to support PHP7 2018-09-20 17:38:21 +08:00
views update: fetch commits from upstream 2018-09-20 19:34:38 +08:00
.default-config.php update: fetch commits from upstream 2018-09-20 19:34:38 +08:00
.htaccess Initial commit 2018-09-20 17:21:40 +08:00
cli.php Initial commit for PHP7 2018-09-20 17:38:09 +08:00
route.php update: fetch commits from upstream 2018-09-20 19:34:38 +08:00