Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Patch 7 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
18323 wants to merge 1,566 commits into svn2github:master
base: master
Choose a base branch
Loading
from 18323:patch-7
Open
Changes from 1 commit
Commits
Show all changes
1566 commits
Select commit Hold shift + click to select a range
8c08d66
hello
shiningrise Feb 19, 2018
b9af005
del
shiningrise Feb 19, 2018
0b70dcc
Update judge_client.cc
zhblue Feb 19, 2018
0d3878f
Update judge_client.cc
zhblue Feb 19, 2018
859b7a8
Update judge_client.cc
zhblue Feb 19, 2018
218a4c6
Update judge_client.cc
zhblue Feb 19, 2018
a1e8428
fix nodejs
zhblue Feb 19, 2018
05ce4d8
Merge branch 'master' into docker-dev
shiningrise Feb 19, 2018
655f92b
docker测试安装
shiningrise Feb 19, 2018
8a72fd6
fixed nodejs in 64bit machines
amir-s Feb 19, 2018
02f73f4
ini_set("display_errors","Off")
shiningrise Feb 19, 2018
1b44c70
撤销修改
shiningrise Feb 19, 2018
160c6de
Merge pull request #235 from shiningrise/docker-dev
zhblue Feb 19, 2018
9f63e9a
Update README.md
zhblue Feb 19, 2018
656aa53
Merge pull request #236 from amir-s/nodejs_64
zhblue Feb 19, 2018
c5230fa
Merge pull request #1 from zhblue/master
shiningrise Feb 19, 2018
586120a
Update update-hustoj
zhblue Feb 19, 2018
d8e61fa
docker add --privileged
shiningrise Feb 19, 2018
5afc6bf
Merge pull request #238 from shiningrise/master
zhblue Feb 19, 2018
a73ad17
full manual judge
zhblue Feb 19, 2018
0cac18a
ubuntu1404静默安装
shiningrise Feb 19, 2018
063fc71
+mysql静默安装
shiningrise Feb 19, 2018
f877022
Merge pull request #239 from shiningrise/master
zhblue Feb 20, 2018
6c39104
autoclose autoreload
zhblue Feb 20, 2018
1cacabc
copy hustoj instance
zhblue Feb 20, 2018
99a1c3f
Dockerfile优化
shiningrise Feb 20, 2018
3368518
both english and chinese
zhblue Feb 20, 2018
a068ee1
problem_add_page_luogu.php
zhblue Feb 20, 2018
a098f78
hint
zhblue Feb 20, 2018
dd4497d
fix hint
zhblue Feb 20, 2018
02c657a
docker 数据卷集中在一起
shiningrise Feb 20, 2018
12a1a7e
docker 数据卷集中在一起
shiningrise Feb 20, 2018
5863b7f
docker 数据卷集中在一起
shiningrise Feb 20, 2018
a18b6c1
修改docker使用说明
shiningrise Feb 20, 2018
5331eef
Merge pull request #240 from shiningrise/docker
zhblue Feb 20, 2018
f3689cf
auto rename
zhblue Feb 20, 2018
5508b00
Update install-ubuntu14.04.sh
zhblue Feb 20, 2018
e3ab174
Update install-ubuntu16+.sh
zhblue Feb 20, 2018
e2c6b14
Update install-centos7.sh
zhblue Feb 20, 2018
65c9f5e
add docker-hustoj-cpp
shiningrise Feb 21, 2018
26931f7
+
shiningrise Feb 21, 2018
a1b5c33
add docker-cpp
shiningrise Feb 21, 2018
c6b7a49
add docker-cpp
shiningrise Feb 21, 2018
159aa7d
Merge branch 'master' into docker-hustoj-cpp
shiningrise Feb 21, 2018
284c30b
add docker-hustoj-cpp
shiningrise Feb 21, 2018
7244383
Merge pull request #241 from shiningrise/docker-hustoj-cpp
zhblue Feb 21, 2018
357bde7
fix 20 call in stand BJWC2018
zhblue Feb 24, 2018
0e7fc3d
Update install-ubuntu16+.sh
zhblue Feb 24, 2018
8da380d
Update install-centos7.sh
zhblue Feb 24, 2018
0ab6a5a
Update okcalls32.h
zhblue Feb 24, 2018
5e443c0
fix loader
zhblue Feb 25, 2018
e981128
Update faqs.cn.php
zhblue Feb 28, 2018
9b27740
Update faqs.php
zhblue Feb 28, 2018
2d9d63d
Update README.md
zhblue Mar 1, 2018
ee6de9c
svg https
zhblue Mar 2, 2018
eb17cf2
problem_id
zhblue Mar 2, 2018
d6d2cb5
Update problem_import.php
zhblue Mar 3, 2018
b3f3fd3
Update README.md
zhblue Mar 4, 2018
4c66f17
remove the docker temp config dir
zhblue Mar 4, 2018
d6b0d00
enable http judge with preloaded data files
zhblue Mar 10, 2018
df38a50
Update README.md
zhblue Mar 10, 2018
55b5c2e
Update README.md
zhblue Mar 10, 2018
8fcb88d
Update README.md
zhblue Mar 10, 2018
9e7085b
Update README.md
zhblue Mar 10, 2018
cda47cc
Update README.md
zhblue Mar 10, 2018
8c94404
Update contest_add.php
zhblue Mar 10, 2018
b51305b
batch
zhblue Mar 10, 2018
b85024c
fix
zhblue Mar 11, 2018
dadafb4
printer service in contest
zhblue Mar 13, 2018
f2da425
default no printer
zhblue Mar 13, 2018
8be6ac0
db update
zhblue Mar 13, 2018
e0f8454
better print
zhblue Mar 14, 2018
3466942
Create Printer.md
zhblue Mar 15, 2018
4dae154
Update Printer.md
zhblue Mar 15, 2018
d66c2aa
Add files via upload
zhblue Mar 15, 2018
2f36490
Update Printer.md
zhblue Mar 15, 2018
4dc6a9b
fix one click
zhblue Mar 15, 2018
0745be7
Update update_db.php
zhblue Mar 15, 2018
9a2359e
just copy , nerver tested
zhblue Mar 15, 2018
b6073ee
Update phpfm.php
zhblue Mar 15, 2018
90706b0
Line Number
zhblue Mar 15, 2018
4e5f716
昵称/座位号,学校
zhblue Mar 15, 2018
d733892
balloon ticket printer
zhblue Mar 16, 2018
42e49ca
clean check form
zhblue Mar 16, 2018
b866221 zhblue Mar 16, 2018
3ef9ec7
Update db.sql
zhblue Mar 16, 2018
4d22af8
Update update_db.php
zhblue Mar 16, 2018
b1821ce
Update update_db.php
zhblue Mar 16, 2018
e691774
l10n,i18n
zhblue Mar 17, 2018
c2fe98b
few lines copy from domj :P
zhblue Mar 17, 2018
2daef54
Update balloon.php
zhblue Mar 17, 2018
ee62bd9
no print
zhblue Mar 17, 2018
c269297
filter balloon and printer task list with their school field
zhblue Mar 18, 2018
a55e918
*Printer/Balloon task filter mark!y
zhblue Mar 18, 2018
f97fd10
help msg
zhblue Mar 18, 2018
c0d8a58 zhblue Mar 18, 2018
f963f29
fix clean
zhblue Mar 18, 2018
9ea5606
few prettify
zhblue Mar 18, 2018
2caf556
news made map print with balloon ticket
zhblue Mar 18, 2018
5802d3a
move pdo_query to anothery file
zhblue Mar 19, 2018
b237ea7
Update db.sql
zhblue Mar 20, 2018
edee19e
add one judge for one site with http
zhblue Mar 21, 2018
d368af8
install-judge.sh [OJ_URL] [JUDGER_NAME] [JUDGER_PASS] [LOCAL_DIR]
zhblue Mar 21, 2018
727b8c2
faster
zhblue Mar 22, 2018
ac6f6cf
search fix
zhblue Mar 22, 2018
727579f
Update reinfo.php
zhblue Mar 25, 2018
d8ac168
OJ_CPU_COMPENSATION=1.0
zhblue Mar 25, 2018
27d9a18
Update judge.conf
zhblue Mar 25, 2018
f22ae81
Create CPU_Compensation.md
zhblue Mar 25, 2018
f9d719e
Update CPU_Compensation.md
zhblue Mar 25, 2018
afbc318
TLE
zhblue Mar 25, 2018
f3a8ad5
auto cpu compensation
zhblue Mar 26, 2018
b13498c
auto
zhblue Mar 26, 2018
4a9c407
Delete install-interactive.sh
zhblue Mar 26, 2018
37f6e84
Delete install.sh
zhblue Mar 26, 2018
29d2727
few adjusts
zhblue Mar 30, 2018
cf95c9b
autocpu for livecd
zhblue Mar 30, 2018
435692c
fix on multi-core
zhblue Mar 30, 2018
a465ebc
fix multi
zhblue Mar 30, 2018
bc78d0d
Update README.md
zhblue Apr 1, 2018
da84e62
Update install-ubuntu14.04.sh
zhblue Apr 2, 2018
69a3778
Update install-judge.sh
zhblue Apr 2, 2018
00e2e53
Update install-ubuntu16+.sh
zhblue Apr 2, 2018
94c62a9
issues254
zhblue Apr 2, 2018
f7775fe
Update HUSTOJ_LiveCD.md
zhblue Apr 3, 2018
0fd433a
Update judge_client.cc
zhblue Apr 5, 2018
18400d4
wget https://github.com/zhblue/vjudge/raw/master/install.sh
zhblue Apr 5, 2018
8521cb2
hide i/o hint if empty
zhblue Apr 7, 2018
bbe25e5
TLE miss to RE
zhblue Apr 8, 2018
22977b4
fix about -240
zhblue Apr 8, 2018
a00ee45
restore.sh
zhblue Apr 10, 2018
55425f4
sql.bz2
zhblue Apr 10, 2018
c9d116b
Update restore.sh
zhblue Apr 10, 2018
fde2ce8
Update reinfo.php
zhblue Apr 10, 2018
bdac22c
Avoid overflow
ryanlee2014 Apr 10, 2018
e782928
Update README.md
zhblue Apr 11, 2018
7730edf
Update README.md
zhblue Apr 11, 2018
b71028e
Merge pull request #261 from ryanlee2014/master
zhblue Apr 11, 2018
f6cc4d0
openjdk8 want more vmsize on 64bits ubuntu16
zhblue Apr 14, 2018
389ea5f
Update judge_client.cc
zhblue Apr 15, 2018
c734d90
Update install-ubuntu16+.sh
zhblue Apr 15, 2018
398621e
few explaination
zhblue Apr 16, 2018
f3ba8cf
Update install-judge.sh
zhblue Apr 16, 2018
84156d3
Update install-judge.sh
zhblue Apr 16, 2018
86e2a94
backup original nginx.conf
zhblue Apr 16, 2018
10734b2
Update judge_client.cc
zhblue Apr 16, 2018
5ff19e0
lock improvement
zhblue Apr 17, 2018
fd874d1
PID= ABCD
zhblue Apr 20, 2018
481f1f7
fix few bugs
zhblue Apr 20, 2018
9b0df22
fix some more
zhblue Apr 20, 2018
4fe8996
A->pid
zhblue Apr 20, 2018
fca3cb8
fix after delete
zhblue Apr 20, 2018
5714ea8
Update README.md
zhblue Apr 22, 2018
d3abc3f
Update README.md
zhblue Apr 22, 2018
e0efa0f
Update README.md
zhblue Apr 25, 2018
de1302b
ABC
zhblue Apr 25, 2018
74cae87
more
zhblue Apr 25, 2018
f309b20
more
zhblue Apr 25, 2018
6904563
show contest menu
zhblue Apr 25, 2018
68c50d0
--database
zhblue Apr 26, 2018
2da51a2
$OJ_ON_SITE_CONTEST_ID
zhblue Apr 26, 2018
1b7d48d
more
zhblue Apr 26, 2018
7351fda
Update db_info.inc.php
zhblue Apr 27, 2018
203d590
first script for ubuntu 18.04
zhblue Apr 28, 2018
aefc627
fix java10/11 openjdk
zhblue Apr 28, 2018
d2c11b3
Update install-ubuntu18.04.sh
zhblue Apr 28, 2018
00468bf
Update README.md
zhblue Apr 30, 2018
6466f64
Update judge_client.cc
zhblue May 4, 2018
ae18ad0
Update judge_client.cc
zhblue May 4, 2018
efbd106
ipv6
zhblue May 11, 2018
699757d
ipv6
zhblue May 11, 2018
bfbd025
Update update_db.php
zhblue May 11, 2018
20735ad
tips & l10n
zhblue May 13, 2018
c96f589
tips
zhblue May 13, 2018
b160379
fix bug
zhblue May 13, 2018
ac8ae9c
mail switch
zhblue May 14, 2018
8021134
Update db_info.inc.php
zhblue May 14, 2018
cb62ab0
Update db_info.inc.php
zhblue May 15, 2018
4d6c263
Update db_info.inc.php
zhblue May 15, 2018
adc53ae
ubuntu16.04 32bit while(1) RE
zhblue May 16, 2018
cced985
reply
zhblue May 16, 2018
973da99
Update thread.php
zhblue May 17, 2018
fcbd78e
langmask
zhblue May 18, 2018
100afc4
Update okcalls32.h
zhblue May 18, 2018
4067216
Update conteststatus.php
zhblue May 18, 2018
df0bf55
Update conteststatus.php
zhblue May 18, 2018
5e62430
Update status.php
zhblue May 18, 2018
c768b6a
color named
zhblue May 18, 2018
f4f0c2b
,"-O2"
zhblue May 19, 2018
323316b
18.04 64bits
zhblue May 19, 2018
7b86f68
18.04 64bits
zhblue May 19, 2018
b392039
move Main.c to endy
zhblue May 19, 2018
ebbf466
Update contestrank.xls.php
zhblue May 20, 2018
824d329
Update contestrank2.php
zhblue May 20, 2018
1a16d8a
Update contestrank.xls.php
zhblue May 20, 2018
07f383f
space nick name disappear
zhblue May 20, 2018
9a2573a
c99
zhblue May 21, 2018
eb99e6a
TLE->RE
zhblue May 21, 2018
cedc76e
buffer overflow ?
zhblue May 21, 2018
2588f78
Update judge_client.cc
zhblue May 22, 2018
f5b6117
Update README
zhblue May 23, 2018
a72b3e0
Update README
zhblue May 23, 2018
644dbca
init.d
zhblue May 23, 2018
5a2faf2
ace editor 1st try
zhblue May 24, 2018
d7024c1
blockly compatible
zhblue May 24, 2018
e14f1c8
better on/off
zhblue May 24, 2018
2d74c1b
Update db_info.inc.php
zhblue May 24, 2018
5f1b514
remove checker
zhblue May 24, 2018
e2c268d
Update submitpage.php
zhblue May 24, 2018
cad9037
Create LICENSE
zhblue May 25, 2018
4fe5783
pascal TLE -> RE
zhblue May 28, 2018
ecccda7
ON SITE & EXAM can't modify userinfo
zhblue May 29, 2018
37e4482
fix user_id in online list
zhblue May 29, 2018
760f395
dd
zhblue May 29, 2018
4d4757e
mute php notice in template/xx/index.php:29
zhblue May 29, 2018
e0692f2
Avoid Compiler Bomb
ryanlee2014 May 29, 2018
1f2c060
Merge pull request #268 from ryanlee2014/master
zhblue May 30, 2018
5b57b8e
Update README.md
zhblue May 31, 2018
7c48ed7
Update js.php
zhblue Jun 1, 2018
ffab50e
upgrade to kindeditor 4.1.11
zhblue Jun 3, 2018
d7480d3
fix upgrade broken
zhblue Jun 3, 2018
ce30650
rm not need files
zhblue Jun 3, 2018
1035984
Update README.md
zhblue Jun 4, 2018
5f8b299
Update install-ubuntu16+.sh
zhblue Jun 4, 2018
037edea
only adminstrator can watch others result in ON_SITE_CONTEST
zhblue Jun 5, 2018
bfc38c6
Update bootstrap.min.css
zhblue Jun 5, 2018
c591447
Update install-ubuntu16+.sh
zhblue Jun 5, 2018
54daa68
Update install-ubuntu18.04.sh
zhblue Jun 5, 2018
0326364
xss prevent
zhblue Jun 5, 2018
61eddb2
RemoveXSS
zhblue Jun 5, 2018
167aed8
copy color from acm.hznu.edu.cn
zhblue Jun 6, 2018
8296df2
Update install-ubuntu16+.sh
zhblue Jun 8, 2018
d3bab2c
a chinese document for developers
zhblue Jun 8, 2018
b6f7260
二次开发
zhblue Jun 8, 2018
ca2428e
724199251@qq.com merge a scrollboard from
zhblue Jun 10, 2018
cfee17b
link to rolling board
zhblue Jun 10, 2018
7b17644
gold silver copperwq
zhblue Jun 10, 2018
41080b0
click or anykey
zhblue Jun 10, 2018
95ceb97
showTeam out of screen
zhblue Jun 10, 2018
bb03a7c
count in db
zhblue Jun 10, 2018
119218c
Update README.md
zhblue Jun 11, 2018
50816a6
Update install-ubuntu18.04.sh
zhblue Jun 11, 2018
0e77528
fix java on centos7.4 64 aliyuny
zhblue Jun 13, 2018
0e26057
Update msg.txt
zhblue Jun 13, 2018
26e6846
compromise with css convinience and xss prevent
zhblue Jun 13, 2018
a5bd0b5
Update judge_client.cc
zhblue Jun 13, 2018
c65201d
Update README.md
zhblue Jun 16, 2018
4712813
Update README.md
zhblue Jun 16, 2018
9b3ceab
Update README.md
zhblue Jun 16, 2018
15f7633
Update okcalls64.h
18323 Jun 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
enable http judge with preloaded data files
  • Loading branch information
zhblue committed Mar 10, 2018
commit d6b0d001091c08c3671775e8c00e0e46adc2bc11
8 changes: 5 additions & 3 deletions trunk/core/judge_client/judge_client.cc
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ static int use_max_time = 0;

static int http_judge = 0;
static char http_baseurl[BUFFER_SIZE];

static char http_username[BUFFER_SIZE];
static char http_password[BUFFER_SIZE];
static int http_download = 1;

static int shm_run = 0;

static char record_call = 0;
Expand Down Expand Up @@ -334,6 +335,7 @@ void init_mysql_conf() {
read_buf(buf, "OJ_HTTP_BASEURL", http_baseurl);
read_buf(buf, "OJ_HTTP_USERNAME", http_username);
read_buf(buf, "OJ_HTTP_PASSWORD", http_password);
read_int(buf, "OJ_HTTP_DOWNLOAD", &http_download);
read_int(buf, "OJ_OI_MODE", &oi_mode);
read_int(buf, "OJ_FULL_DIFF", &full_diff);
read_int(buf, "OJ_SHM_RUN", &shm_run);
Expand Down Expand Up @@ -2437,7 +2439,7 @@ int main(int argc, char** argv) {
DIR *dp;
dirent *dirp;
// using http to get remote test data files
if (p_id > 0 && http_judge)
if (p_id > 0 && http_judge && http_download)
get_test_file(work_dir, p_id);
if (p_id > 0 && (dp = opendir(fullpath)) == NULL) {

Expand Down Expand Up @@ -2518,7 +2520,7 @@ int main(int argc, char** argv) {
if (namelen == 0)
continue;

if(http_judge&&(!data_list_has(dirp->d_name)))
if(http_judge&&http_download&&(!data_list_has(dirp->d_name)))
continue;

prepare_files(dirp->d_name, namelen, infile, p_id, work_dir, outfile,
Expand Down

AltStyle によって変換されたページ (->オリジナル) /