Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skyzh/cloudoj
🌩️ (DEPRECATED) An Online Judge. Deprecated due to low efficiency and security issues.
https://github.com/skyzh/cloudoj
bootstrap3 mysql online-judge phalcon-php php
Last synced: about 1 month ago
JSON representation
🌩️ (DEPRECATED) An Online Judge. Deprecated due to low efficiency and security issues.
- Host: GitHub
- URL: https://github.com/skyzh/cloudoj
- Owner: skyzh
- License: apache-2.0
- Created: 2015-07-07T12:18:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T00:52:11.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T09:19:17.327Z (2 months ago)
- Topics: bootstrap3, mysql, online-judge, phalcon-php, php
- Language: PHP
- Homepage: http://kids.org.cn
- Size: 419 KB
- Stars: 4
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CloudOJ
## this project is deprecated due to low efficiency and security issues.
New MVC Version of SNGOJ, built for CCCCWI.
Build based on INVO example of phalconphp中国福利会少年宫的机智 OJ,这是一个试验版本 o(^▽^)o
然而我把它的名字叫做 CloudOJ, 听起来大概很有感觉。## License
CloudOJ is under Apache License.
## Feedback
echo sprintf("iSkyZH%s163.com", "@");
echo sprintf("iSkyZH%sgmail.com", "@");## Watcher
See [CloudOJWatcher](https://github.com/SkyZH/CloudOJWatcher) for Watcher
## Configure
0. git clone ...
1. Setup PHP and install [Phalcon](https://phalconphp.com)
2. Goto MySQL Database, excute [SQL Script](https://github.com/SkyZH/CloudOJ/blob/master/sql/cmd.sql), Then add oj user in database
3. Clone CloudOJ into \/oj
4. Make config file at oj/app/config/config.ini
5. Edit database (For example, add Groups)
6. Start using OJ at localhost/oj, and then register a user
7. Goto MySQL Database, go to the user you registered in table user, change groupid to 1 to get admin premission## Avatar
CloudOJ use the Gravator Service and use V2EX's Gravator CDN.
## Problem Data
To use data saved in file, put your file in /cloudojroot/ojdata/.in and .out,
then select type of File, type .in in the dat_in textarea and .out in the dat_out area.We will filter '\r' in your input.
## Problem Data Cache
CloudOJ's Status Watcher will automatically cache data file. To refresh data, you can:
1. Goto /CloudOJWatcher/data/prob and `rm *`
2. Change the data's name after it is edited## Group Table Example
Score Required: 0, 100, 2333333
Name: Naive, Beginner, Super
You must have a group whose score is 0, as well as a group whose score is LARGE ENOUGH.
## Config Example
[database]
adapter = Mysql
host = localhost
username = ojroot
password = abcdefghijklmnopqrstuvwxyz
name = oj[application]
controllersDir = app/controllers/
modelsDir = app/models/
viewsDir = app/views/
pluginsDir = app/plugins/
formsDir = app/forms/
libraryDir = app/library/
baseUri = /oj/[watcher]
apikey = abcdefghijklmnopqrstuvwxyz
[crypt]
key = 23333333333333## Todo
* Problem Premission Web Interface
* Discuss System
* Contest System
* Change Password, Change Username
* Github OAuth Login
* Avatar System