{"id":17117206,"url":"https://github.com/z4yx/bashu-onlinejudge","last_synced_at":"2025-04-13T02:32:36.959Z","repository":{"id":5371523,"uuid":"6558556","full_name":"z4yx/bashu-onlinejudge","owner":"z4yx","description":"An online judge system designed for OI training.","archived":false,"fork":false,"pushed_at":"2020-06-05T03:49:03.000Z","size":12497,"stargazers_count":53,"open_issues_count":2,"forks_count":18,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-26T20:51:32.367Z","etag":null,"topics":["noip","oj","sandbox","website"],"latest_commit_sha":null,"homepage":"https://oj.bashu.com.cn/pub/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"peatio/peatio","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z4yx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-06T08:06:12.000Z","updated_at":"2024-08-20T10:10:27.000Z","dependencies_parsed_at":"2022-09-01T04:50:15.449Z","dependency_job_id":null,"html_url":"https://github.com/z4yx/bashu-onlinejudge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4yx%2Fbashu-onlinejudge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4yx%2Fbashu-onlinejudge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4yx%2Fbashu-onlinejudge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z4yx%2Fbashu-onlinejudge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z4yx","download_url":"https://codeload.github.com/z4yx/bashu-onlinejudge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657820,"owners_count":21140842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["noip","oj","sandbox","website"],"created_at":"2024-10-14T17:50:54.806Z","updated_at":"2025-04-13T02:32:35.099Z","avatar_url":"https://github.com/z4yx.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"安装方法\n===\n\nWeb\n---\n\n1. 安装并配置好一个可用的php服务器,如apache,nginx等,Linux用户建议安装php扩展[sysvsem]\n2. 安装并启动mysql服务器,运行`doc/init.sql`初始化数据库,修改`web/code/inc/database.php`中的数据库连接信息\n3. 如需显示数学公式,下载Mathjax并解压到`web/assets/Mathjax/`\n4. 将web目录下的全部内容复制到网站根目录下,保证服务器用户(如www)有读写权限(770)\n5. 测试能否访问http://localhost/code/index.php\n\nDaemon\n---\n\n**Windows用户:(Deprecated)**\n\n1. 修改`daemon/windows_binary/config.ini`中的数据目录,mysql密码等信息\n2. 运行`daemon/windows_binary/daemon.exe`\n3. 如果提示\"Started successfully.Waiting for submitting...\",说明daemon启动成功,提交一个题目测试\n\n**Linux用户:**\n\n1. 安装编译工具,要求:\n - G++ \u003e=4.6\n - libmicrohttpd \u003e= 0.9.21\n - libmysqlclient 对应mysql版本\n2. 在`daemon/`中运行\n\n    `make`\n\n3. 如果没有出错,修改`daemon/config.ini`中的数据目录,mysql密码等信息\n4. 在`daemon/`中运行\n\n    `./daemon`\n\n5. 如果提示\"Started successfully.Waiting for submitting...\",说明daemon启动成功,提交一个题目测试\n\n  [sysvsem]: http://php.net/manual/en/book.sem.php\n\n配置文件\n===\n\n\nDaemon\n---\n\n####config.ini\n\n\n* DATABASE_USER/DATABASE_PASS 为mysql数据库的连接用户名密码,密码可以留空\n* datadir 为存放评测数据的目录,该目录存放以题号命名的目录,每个以题号命名的目录下存放该题的测试数据,测试数据输入输出文件名配对即可,例如:\n\t- /home/judge/data/1000/a1.in\n\t- /home/judge/data/1000/a1.out\n\t- /home/judge/data/1000/hello.in\n\t- /home/judge/data/1000/hello.out\n\t- /home/judge/data/1001/abc.in\n\t- /home/judge/data/1001/abc.out\n\t- /home/judge/data/1001/c2.in\n\t- /home/judge/data/1001/c2.out\n* [lang*] 允许的提交语言及相应的编译选项,与web端的配置lang_conf.php对应\n\nWeb\n---\n\n####lang_conf.php\n\n\n* LANG_NAME 设置各种语言的显示名称\n* LANG_EXT 设置各种语言的源文件扩展名\n\n####cookie.php\n\n* \u003cspan style=\"color:red\"\u003ecookie_key\u003c/span\u003e 设置一个复杂的字符串用于对cookie加密,在生产环境中部署时务必修改,避免伪造cookie\n* cookie_expire cookie的过期时间(用于记住登录)\n\n####checklogin.php\n\n* REQUIRE_AUTH 是否要求全局认证,即登录后才能参看OJ的题目等\n\nUpdate\n---\n\n### 可以测试提交答案题。\n\n* 添加方式：在`edit.php`里将`judge`的方式改为`Submit`。\n* 更新用户下载的输入文件：在`problempage.php`里单击`Update`按扭 (如果要添加附加文件请把`addition.zip`放在测试数据的目录中)。\n\n#### 更改了测试数据的排序方式：将输入文件的长度作为第一关键字，字典序作为第二关键字。\n\n#### 在浮点数比较中判断了用户的输出是否为`nan`。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz4yx%2Fbashu-onlinejudge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz4yx%2Fbashu-onlinejudge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz4yx%2Fbashu-onlinejudge/lists"}