ACM-BIT-Mesra/Aurora — pull request #2 by utk1369 (2014-11-16 20:06:08+00:00)
Title: Static Ranking System

Created Files:
1. UpdateLeaderBoard.php: A script which would be scheduled to run every 2 minutes during the contest. It would calculate the Rankings of the current Contest and save it in the 'ranktable' attribute of the 'contest' table in JSON format.

2. Leaderboard.php: A Utility class which contains public methods to update the LeaderBoard content and fetch static Rank for a Particular contest Code.

Updated Files:
1. components.php: removed the dynamic rank calculation code snippet and placed it in Leaderboard Utility Class.

2. rank.php: made slight changes to fetch the static ranking page