├── .gitignore ├── README.md ├── about.php ├── account.php ├── admin ├── footer.php ├── header.php ├── index.php ├── login.php ├── logout.php ├── preview.php ├── problems.php ├── profile.php ├── update.php └── users.php ├── codejudge-compiler ├── .classpath ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs └── src │ └── codejudge │ └── compiler │ ├── CodejudgeCompiler.java │ ├── RequestThread.java │ ├── TimedShell.java │ └── languages │ ├── C.java │ ├── Cpp.java │ ├── Java.java │ ├── Language.java │ └── Python.java ├── css ├── bootstrap-responsive.css └── bootstrap.css ├── eval.php ├── footer.php ├── functions.php ├── header.php ├── index.php ├── install.php ├── js ├── bootstrap-alert.js ├── bootstrap-button.js ├── bootstrap-carousel.js ├── bootstrap-collapse.js ├── bootstrap-dropdown.js ├── bootstrap-modal.js ├── bootstrap-popover.js ├── bootstrap-scrollspy.js ├── bootstrap-tab.js ├── bootstrap-tooltip.js ├── bootstrap-transition.js ├── bootstrap-typeahead.js └── jquery.js ├── license.txt ├── login.php ├── logout.php ├── markdown.php ├── scoreboard.php ├── solve.php ├── submissions.php └── update.php /.gitignore: -------------------------------------------------------------------------------- 1 | # Codejudge .gitignore 2 | *~ 3 | dbinfo.php 4 | *.class 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Codejudge 2 | ========= 3 | 4 | **NOTE: This project is not maintained anymore!** 5 | 6 | Coding competitions are now easy to organise anytime, anywhere. 7 | 8 | Codejudge can be run from any PHP, MySQL server and can be used to power any coding competition and evaluate its solutions automatically. 9 | 10 | No need to run to big companies to host your event. You can set up Codejudge almost anywhere and anytime! 11 | 12 | ### Note 13 | 14 | Bleeding edge changes are on the `develop` branch and things most likely don't work there. You are recomended to use the `master` branch. If you love to experiment then go for the `develop` branch. 15 | 16 | A follow-up project to create a better judge was being worked on, but kind of stalled at the moment (due to lack of time from my side). Take a look at [judgev2](https://github.com/sankha93/judgev2) 17 | 18 | -------------------------------------------------------------------------------- /about.php: -------------------------------------------------------------------------------- 1 | 10 |
11 | 12 | 13 |Codejudge is a system used to hold coding competitions like this. Its easy to setup, fast and simple to use.
50 |Codejudge is made by Sankha Narayan Guria. Find him at @sankha93 on Twitter.
51 | Mail me at sankha93@gmail.com.
Visit the Codejudge website at http://sankha93.github.com/codejudge for more information.
53 |Please login to use the admin panel.
".str_replace(">", ">", $str).""); 29 | } 30 | ?> 31 | -------------------------------------------------------------------------------- /admin/problems.php: -------------------------------------------------------------------------------- 1 | 18 |
Problem | 41 |Attempts | 42 |Status | 43 |".$field['name']." | ".$row['attempts']); 55 | if($row['status'] == 1) 56 | echo(" | Attempted | \n"); 57 | else if($row['status'] == 2) 58 | echo("Solved | \n"); 59 | } 60 | } 61 | ?> 62 | 63 |
---|
Name | 38 |Solved | 39 |Attempted | 40 |Action | 41 |".$row['username']); 51 | if($row['status'] == 0) 52 | echo(" Banned"); 53 | echo(" | ".mysql_num_rows($res)); 54 | $sql = "SELECT * FROM solve WHERE (status='1' AND username='".$row['username']."')"; 55 | $res = mysql_query($sql); 56 | echo(" | ".mysql_num_rows($res)." | "); 57 | if($row['status'] == 1) 58 | echo("Ban | \n"); 59 | else if($row['status'] == 0) 60 | echo("Unban\n"); 61 | } 62 | ?> 63 | 64 |
---|
Please login to continue.