Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8206 commits
Select commit Hold shift + click to select a range
0329807
Update my_func.inc.php
zhblue Apr 25, 2025
2316686
Update watch.php
zhblue Apr 25, 2025
fd72801
Update cache_start.php
zhblue Apr 26, 2025
51d14d9
Update cache_end.php
zhblue Apr 26, 2025
badcae7
Update cache_start.php
zhblue Apr 26, 2025
3ef04fc
Update cache_end.php
zhblue Apr 26, 2025
76217de
Update cache_start.php
zhblue Apr 26, 2025
69f26a3
Update js.php
zhblue Apr 26, 2025
3121e76
Update session.php
zhblue Apr 29, 2025
8d58e58
Update judge_client.cc
zhblue May 2, 2025
1f93ea8
Create upj.cc
zhblue May 2, 2025
8ebdf18
Create spj.cc
zhblue May 3, 2025
b1854d0
Create tpj.cc
zhblue May 3, 2025
9a02499
Update js.php
zhblue May 4, 2025
932cebc
Update problem.php
zhblue May 4, 2025
9cdfa44
Update white.css
zhblue May 4, 2025
71576cd
Update submitpage.php
zhblue May 5, 2025
90fb7d8
Update const.inc.php
zhblue May 5, 2025
96f8047
Update const.inc.php
zhblue May 5, 2025
509ae10
Update submitpage.php
zhblue May 5, 2025
6a45240
Update cn.php
zhblue May 5, 2025
ddd23a1
Update en.php
zhblue May 5, 2025
e40c7c8
Update fa.php
zhblue May 5, 2025
52d265d
Update ko.php
zhblue May 5, 2025
6078050
Update ru.php
zhblue May 5, 2025
0a68db7
Update th.php
zhblue May 5, 2025
47b5dea
Update ug.php
zhblue May 5, 2025
19ebe5c
Update cnt.php
zhblue May 5, 2025
03d5611
Update problem.php
zhblue May 6, 2025
d322c3d
Update README.md
zhblue May 6, 2025
783e48f
Update install-ubuntu24.04.sh
zhblue May 8, 2025
a150a38
Update install-ubuntu24.04.sh
zhblue May 9, 2025
69eb895
Update install-ubuntu22.04-bt.sh
zhblue May 12, 2025
38b06da
Update problem_edit.php
zhblue May 13, 2025
a9f37b9
Update problem_add_page.php
zhblue May 13, 2025
7427766
Update problem.php
zhblue May 13, 2025
a56d064
Update kindeditor.php
zhblue May 14, 2025
c294ef4
Update problem.php
zhblue May 14, 2025
c83daba
Update loginpage.php
zhblue May 15, 2025
097a812
Update session.php
zhblue May 15, 2025
e1d81d3
Update online.php
zhblue May 18, 2025
2aa64da
Update submitpage.php
zhblue May 18, 2025
4226ca9
Create index.html
zhblue May 18, 2025
fe5df8f
Add files via upload
zhblue May 18, 2025
331315e
Update index.html
zhblue May 18, 2025
eadcd36
Update submitpage.php
zhblue May 18, 2025
530d39d
Update my_func.inc.php
zhblue May 18, 2025
1554704
Update index.html
zhblue May 18, 2025
1a51d6d
Update README.md
zhblue May 19, 2025
78544a4
Update README.md
zhblue May 21, 2025
a6d2ba6
Update service.php
zhblue May 21, 2025
f6b84d9
Update problem_judge.php
zhblue May 23, 2025
a960941
Update problem_judge.php
zhblue May 23, 2025
429c17d
Update db.sql
zhblue May 23, 2025
62c1c32
Update update.sql
zhblue May 23, 2025
3cbbe2c
Update update_db.php
zhblue May 23, 2025
682aaea
Update db.sql
zhblue May 23, 2025
7bbb3e4
Update update_db.php
zhblue May 23, 2025
2c9378a
Update update_db.php
zhblue May 23, 2025
828e7e7
Update thread.php
zhblue May 23, 2025
5c69824
Update index.php
zhblue May 23, 2025
7cfd2d7
Update update.sql
zhblue May 23, 2025
8df7230
Update index.php
zhblue May 24, 2025
9c7eebf
Update update.sql
zhblue May 24, 2025
97e00c5
Update status.php
zhblue May 24, 2025
8ca4a14
Update README.md
zhblue May 24, 2025
9286956
Update problem_import_xml.php
zhblue May 26, 2025
422e662
Update problem_list.php
zhblue May 26, 2025
b836359
Update ranklist.php
zhblue May 27, 2025
e17a2fe
Update db.sql
zhblue May 27, 2025
bcc1a06
Update update.sql
zhblue May 27, 2025
07e9200
Add files via upload
zhblue May 29, 2025
ce45d18
Update kindeditor.php
zhblue May 29, 2025
8a2e7b0
Update kindeditor.php
zhblue May 29, 2025
bf3de33
Update submitpage.php
zhblue May 31, 2025
cf30d89
Update problem.php
zhblue Jun 5, 2025
d716397
Update problem.php
zhblue Jun 5, 2025
ae4aadf
Update userinfo.php
zhblue Jun 6, 2025
6746dc6
Add files via upload
zhblue Jun 6, 2025
d12182a
Update problem.php
zhblue Jun 7, 2025
bb3f7dc
Update userinfo.php
zhblue Jun 7, 2025
7de90e4
Update README.md
zhblue Jun 9, 2025
0c820dd
Update contestrank-oi.php
zhblue Jun 9, 2025
8a2bfcf
Update contestrank.php
zhblue Jun 9, 2025
df2f439
Update contestrank-team.php
zhblue Jun 9, 2025
eca5ee0
Update contestrank2.php
zhblue Jun 9, 2025
ad70dda
Update contestrank4.php
zhblue Jun 9, 2025
d0e7a83
Update contestrank5.php
zhblue Jun 9, 2025
1c376ef
Update contestset.php
zhblue Jun 9, 2025
9305351
Update conteststatus.php
zhblue Jun 9, 2025
fba66d2
Update problem.php
zhblue Jun 12, 2025
8ebfd19
Update okcalls64.h
zhblue Jun 13, 2025
1a371cb
Update problem.php
zhblue Jun 14, 2025
1baf75d
Update online.php
zhblue Jun 15, 2025
1ed28d5
Update lostpassword.php
zhblue Jun 18, 2025
dc2b4ef
Update lostpassword.php
zhblue Jun 18, 2025
bc4d62c
Update lostpassword.php
zhblue Jun 18, 2025
40716e5
Update problem_export_xml.php
zhblue Jun 24, 2025
a06af0c
Update install-ubuntu24.04.sh
zhblue Jun 24, 2025
c932073
Update install-ubuntu22.04.sh
zhblue Jun 24, 2025
32bc7f3
Update install-ubuntu22.04.gitee.sh
zhblue Jun 24, 2025
9725651
Update install-ubuntu22.04-bt.sh
zhblue Jun 24, 2025
5a114bf
Update install-ubuntu22.04.sh
zhblue Jun 24, 2025
cf60a1d
Update install-ubuntu22.04-bt.sh
zhblue Jun 24, 2025
ae7a232
Update install-ubuntu22.04.gitee.sh
zhblue Jun 24, 2025
4637362
Update install-ubuntu22.04.gitee.sh
zhblue Jun 25, 2025
97baaa8
Update contestrank.php
zhblue Jun 30, 2025
d19584f
Update contestrank.xls.php
zhblue Jun 30, 2025
efa5a79
Update contestrank2.php
zhblue Jun 30, 2025
1d30670
Update contestrank4.php
zhblue Jun 30, 2025
378061e
Update contestrank5.php
zhblue Jun 30, 2025
78221a6
feat: Fix/Add HUSTOJ install script. (#1094)
mxdabc Jul 5, 2025
e2ad409
Update cache_start.php
zhblue Jul 8, 2025
febc8e1
Update submitpage.php
zhblue Jul 14, 2025
68fcc40
Update user_set_ip.php
zhblue Jul 14, 2025
2bced34
Add files via upload
zhblue Jul 21, 2025
29c2d42
Update index.php
zhblue Jul 21, 2025
cb985de
Add files via upload
zhblue Jul 21, 2025
b0e6d48
Update index.php
zhblue Jul 21, 2025
1dbfbfe
Update index.php
zhblue Jul 21, 2025
1f875aa
Add files via upload
zhblue Jul 21, 2025
e4a4fd1
feat: add debian 12 bt panel install script (#1095)
mxdabc Jul 23, 2025
99e3cd7
Update index.php
zhblue Jul 24, 2025
4f43241
Update index.php
zhblue Jul 26, 2025
031407b
Update status.php
zhblue Aug 5, 2025
8e7c501
Update problem.php (#1096)
Tiang-88 Aug 20, 2025
450c1bc
Update contest.php
zhblue Aug 22, 2025
617650b
Update contest.php
zhblue Aug 22, 2025
b8c7143
Update userinfo.php
zhblue Aug 31, 2025
4e5b48d
Update modify.php
zhblue Aug 31, 2025
ec4d802
Update index.php
zhblue Sep 3, 2025
d902289
Update userinfo.php
zhblue Sep 3, 2025
e5de2b4
Update user_list.php
zhblue Sep 5, 2025
9f64758
Rename install-KylinV10.sh to install-Kylinv10.sh
zhblue Sep 8, 2025
e4ec106
Update submit.php
zhblue Sep 12, 2025
77aeec8
Update status.php
zhblue Sep 12, 2025
5a7e3bb
Update db_info.inc.php (#1099)
Tiang-88 Sep 14, 2025
26736e6
Update problem.php (#1100)
Tiang-88 Sep 14, 2025
d14f725
Update docker.sh
zhblue Sep 19, 2025
1d52cdd
Update podman.sh
zhblue Sep 19, 2025
123ddec
Update podman.sh
zhblue Sep 19, 2025
5e1c376
Update bbcode.php
zhblue Oct 4, 2025
e9a787b
Update problem.php
zhblue Oct 6, 2025
b11aaeb
Update bbcode.php
zhblue Oct 6, 2025
8c88080
Update problem.php
zhblue Oct 6, 2025
af2749a
Update Docker.md
zhblue Oct 8, 2025
3e36201
Update problem_add_page_luogu.php
zhblue Oct 13, 2025
f129818
Update problem_add_page_hustoj.php
zhblue Oct 13, 2025
311e5d7
Update problem_add_page_bas.php
zhblue Oct 13, 2025
2938eee
Update fixing.sh
zhblue Oct 13, 2025
17740fa
Update fixing.sh
zhblue Oct 13, 2025
117c3cb
Update install-ubuntu24.04.sh
zhblue Oct 13, 2025
7cb23f4
Update install-ubuntu22.04.sh
zhblue Oct 13, 2025
fed65fa
Update group_statistics.php
zhblue Oct 14, 2025
000d4e8
Update Dockerfile
zhblue Oct 15, 2025
06dd63d
Update header.php (#1101)
Tiang-88 Oct 15, 2025
a3166ba
Update category.php
zhblue Oct 16, 2025
c50d4ea
Update Dockerfile
zhblue Oct 17, 2025
8e3b90f
Update Dockerfile
zhblue Oct 17, 2025
95b9753
Update judge.conf
zhblue Oct 17, 2025
404669c
Update judge.conf
zhblue Oct 18, 2025
3b7565a
Update problem.php (#1102)
Tiang-88 Oct 19, 2025
a4fbf92
Update submit.php
zhblue Oct 19, 2025
5ec4f06
Update cn.php
zhblue Oct 19, 2025
126b8ca
Add message for scoring last submission
zhblue Oct 19, 2025
f75d5e6
Update ko.php
zhblue Oct 19, 2025
85f5054
Update fa.php
zhblue Oct 19, 2025
2232442
Update ru.php
zhblue Oct 19, 2025
f1aea96
Update th.php
zhblue Oct 19, 2025
a809267
Update ug.php
zhblue Oct 19, 2025
93039ef
Update cnt.php
zhblue Oct 19, 2025
9739a94
Update const.inc.php
zhblue Oct 19, 2025
b0ad832
Update problem.php
zhblue Oct 19, 2025
837814e
Update index.php
zhblue Oct 20, 2025
993abbe
Update header.php
zhblue Oct 20, 2025
fffe588
Update db_info.inc.php
zhblue Oct 20, 2025
888340e
Fix PHP closing tag syntax in header.php
zhblue Oct 21, 2025
2836057
Update index.php
zhblue Oct 22, 2025
d70170f
Update phpfm.php
zhblue Oct 22, 2025
a9d4217
Update Dockerfile
zhblue Oct 23, 2025
5638ac3
Fix spacing in Docker run command (#1103)
aymwoo Oct 23, 2025
32ae6cf
Create langmask.html
zhblue Oct 23, 2025
585439a
vue2 for langmask calc
zhblue Oct 23, 2025
0138a86
Update langmask.html
zhblue Oct 23, 2025
c48b721
Update help.php
zhblue Oct 23, 2025
183b6b6
Update Dockerfile
zhblue Oct 23, 2025
0769f8b
Update contest submission logic in problem.php
zhblue Oct 24, 2025
f4f3796
Enhance Docker image download with mirror fallback
zhblue Oct 24, 2025
c9e68a7
Update balloon.php
zhblue Oct 26, 2025
7df0ba2
Update balloon.php
zhblue Oct 26, 2025
da3918e
Refactor balloon.php for improved query handling
zhblue Oct 26, 2025
d64b131
Update README with recent changes and updates
zhblue Oct 27, 2025
0028389
Update README.md
zhblue Oct 27, 2025
95c1b82
Update index.html
zhblue Oct 27, 2025
68adb6f
Update Docsify scripts to version 4.13.1
zhblue Oct 27, 2025
f61bb9c
Create index.html
zhblue Oct 27, 2025
d135541
Add files via upload
zhblue Oct 27, 2025
a12cd87
Update index.html
zhblue Oct 27, 2025
5452dd2
Add script to optimize Linux nofile limits
zhblue Oct 28, 2025
579fc91
Refactor DatabaseTool for utf8mb4 compatibility
zhblue Oct 28, 2025
e3d1ef0
Update backup.php
zhblue Oct 28, 2025
50f346e
Update backup.php
zhblue Oct 28, 2025
91d67c4
Update backup.php
zhblue Oct 28, 2025
d49acf1
Update install.sh
zhblue Oct 28, 2025
06c093f
Update install-ubuntu24.04.sh
zhblue Oct 28, 2025
92bef2c
Update install-ubuntu24.04.sh
zhblue Oct 28, 2025
087be5a
Update backup.php
zhblue Oct 28, 2025
c0b372d
Update cache_start.php
zhblue Oct 28, 2025
bca6dde
Refactor cache storage conditionals
zhblue Oct 28, 2025
8c10aae
Update starred function with chatGPT
zhblue Oct 29, 2025
86f9742
Update fmt.Println message to Goodbye World
zhblue Oct 29, 2025
aed0734
Update judge.conf
zhblue Oct 29, 2025
13e8006
Update login.php
zhblue Oct 30, 2025
cd77893
Update login.php
zhblue Oct 30, 2025
56d6fb1
Update submit.php
zhblue Oct 31, 2025
dec4edf
Update offline_import.php
zhblue Nov 1, 2025
91cc19c
Update index.php
zhblue Nov 2, 2025
6508dba
Update index.php
zhblue Nov 2, 2025
bc25eee
Update index.php
zhblue Nov 2, 2025
34412be
Refactor ranklist.php for contest filtering
zhblue Nov 3, 2025
3957f31
Fix formatting issues in ranklist.php
zhblue Nov 3, 2025
1c13590
Fix download loop in docker-debian.sh script
zhblue Nov 3, 2025
d484982
Update kindeditor.js
zhblue Nov 3, 2025
16fa0f0
Update kindeditor.php
zhblue Nov 3, 2025
b45e4ec
Refactor problem.php button display logic
zhblue Nov 3, 2025
2a44369
Update problem.php
zhblue Nov 3, 2025
c46937f
Enhance download retries for Docker image
zhblue Nov 4, 2025
802d16c
Increase memory limit from 256 to 512
zhblue Nov 4, 2025
555ff54
qwen-api for ceinfo and reinfo explaination
zhblue Nov 4, 2025
d1600f7
Refactor explain function for better error handling
zhblue Nov 4, 2025
0715368
Enhance error message loading with AI response
zhblue Nov 4, 2025
a9e03c7
Add QWEN_API_KEY for API integration
zhblue Nov 4, 2025
88022b9
Update README with recent changes and features
zhblue Nov 5, 2025
f7e78c6
Update qwen.php
zhblue Nov 5, 2025
5d25e4d
Update reinfo.php
zhblue Nov 5, 2025
a4db848
Update ceinfo.php
zhblue Nov 5, 2025
54553fe
Refactor error message handling in reinfo.php
zhblue Nov 5, 2025
13c900e
Remove redundant condition for QWEN_API_KEY check
zhblue Nov 5, 2025
6ac7953
Modify code suggestion based on session state
zhblue Nov 5, 2025
3e20883
Add image to November 5th update in README
zhblue Nov 6, 2025
9313b19
Enhance student prompt for code suggestions
zhblue Nov 6, 2025
4f2b5bc
Update offline_import.php
zhblue Nov 6, 2025
92eb0b6
replace with new functions
zhblue Nov 6, 2025
82512d7
Update contestrank.php
zhblue Nov 7, 2025
596b704
Update contestrank-oi.php
zhblue Nov 7, 2025
15b6b92
Update contestrank-team.php
zhblue Nov 7, 2025
bf44ff8
Update contestrank2.php
zhblue Nov 7, 2025
4f94e8c
Update contestrank4.php
zhblue Nov 7, 2025
8fd3d8e
Update contestrank5.php
zhblue Nov 7, 2025
8a6d85c
Update db_info.inc.php
zhblue Nov 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/-----------------------------------.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: 在......的时候,经过......操作,遇到.........问题
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**描述问题**
请说清安装方式、基础系统、物理机环境、操作过程,遇到的问题

**如何复现**
Steps to reproduce the behavior:
1. 在 '...'
2. 点击 '....'
3. 滚动到 '....'
4. 看到报错'.........'

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/------------------------.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 能不能添加....功能? ....功能如何实现?
about: Suggest an idea for this project
title: 请问是否可以..............
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
24 changes: 24 additions & 0 deletions .github/workflows/deb_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Debian Package

on: [push, pull_request]

jobs:
debian:
name: Debian/Ubuntu
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build
run: |
bash build.sh

- name: Upload
uses: actions/upload-artifact@v4
with:
name: debian
path: ./*.deb
18 changes: 18 additions & 0 deletions .github/workflows/docker_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: docker build and w3m visit test

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker build
run: docker build . -t hustoj-dev --build-arg APT_MIRROR="N"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
trunk/core/sim/*
trunk/web/discuss3/*
.DS_Store
.venv
45 changes: 45 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
image: docker:latest

stages:
- build
- test

build:
stage: build
services:
- docker:dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE

build-web:
stage: build
services:
- docker:dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull --file=docker/web/Dockerfile -t $CI_REGISTRY_IMAGE:web .
- docker push $CI_REGISTRY_IMAGE:web

build-mysql:
stage: build
services:
- docker:dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull --file=docker/mysql/Dockerfile -t $CI_REGISTRY_IMAGE:mysql .
- docker push $CI_REGISTRY_IMAGE:mysql

build-judge:
stage: build
services:
- docker:dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- docker build --pull --file=docker/judge/Dockerfile -t $CI_REGISTRY_IMAGE:judge .
- docker push $CI_REGISTRY_IMAGE:judge
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM ubuntu:24.04

#COPY trunk/install/sources.list.sh /opt/sources.list.sh

ARG APT_MIRROR="Y"
ARG APT_CA="N"

RUN [ "$APT_CA" = "Y" ] && apt-get -y update && apt install -y ca-certificates || true

# Linux: Aliyun Apt Mirrors.
RUN [ "$APT_MIRROR" != "N" ] && bash /opt/sources.list.sh || true

RUN apt-get -y update && \
apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive \
apt-get -y install --no-install-recommends \
nginx \
mysql-server \
libmysqlclient-dev \
libmysql++-dev \
php-common \
php-fpm \
php-mysql \
php-gd \
php-zip \
php-mbstring \
php-xml \
php-yaml \
make \
flex \
gcc \
g++

COPY trunk /trunk

COPY docker/ /opt/docker/

RUN bash /opt/docker/setup.sh

# VOLUME [ "/volume", "/home/judge/backup", "/home/judge/data", "/home/judge/etc", "/home/judge/web", "/var/lib/mysql" ]
VOLUME [ "/volume" ]
EXPOSE 80

ENTRYPOINT [ "/bin/bash", "/opt/docker/entrypoint.sh" ]
File renamed without changes.
Loading