Official OJ development log of Wuhan University of Science and Technology (continuously updated)

Source: Internet
Author: User

Time: 2013.08.14

Today, we have completed the private and STD login code in the contest mode.

1. Private permission Competitions

When Logging On, you must enter the password set for the game. The Code involved here is in/template/BS/contest_login.php

After the password is entered, verify that the password is correct or not. The form above is switched to/private_login.php for verification. During verification, you need to read the CID password from the contest table and compare it with the entered password, if the input is correct, set session ['C '. $ CID], and then jump to the corresponding contest. PHP page, now you can see the question of the competition

2. STD permission Competitions

When Logging On, you must enter the user name and password set for the competition. The Code involved here has a form in/template/BS/std_login.php.

After the password is entered, verify whether the user name and password are correct. The form above turns to/std_login.php for verification, during verification, you need to read the password and User Name of the CID from the contest_users table and compare it with the entered password and user name. If the input is correct, set session ['C '. $ CID], and session [contest_user_id], then jump to the corresponding contest. PHP page, now you can see the question of the competition

3. log out in STD Mode

A link is added. After the STD mode is successfully logged in, a Logout link is displayed on the page for the user to log out. The link points to the/std_logout.php file, the code in is mainly used to cancel session ['C '. $ CID], and session [contest_user_id]


Time: 2013.8.15

First, modify/submit. php to make the user_id inserted to solution different under different circumstances.

Then, the/contestrank. php is modified so that the rank in different game modes can be viewed.

Then, the/status. php is modified. For different competitions, the current submission status is different.

Legacy bugs:

Status and ranklist in contest will still be mixed with the outside

My idea is that the name and nickname in the competition do not contain external links, and the permission to view the code in the competition has not been changed.

In addition, all the questions submitted during the competition are recorded in the total table, which must be modified.

Time: 2013.8.16

Modified the question recognition information and code for different permissions in the competition mode.

Modified the information submitted by the competition mode to the user table and problem table during the competition mode and normal mode to completely disconnect the competition and daily information.

Modified the user submission question in userinfo to further separate the competition and system data.

Remove the link between user and Nick in contestrank in the template.

New bugs found:

The data of the system pulled by the AC and submit in the question displayed in the competition.

The previously written session has a problem and should be changed to session [$ CID. 'test _ user_id '], so that users in different competitions are different, because I may log on to multiple competitions at the same time.


Time: 2013.8.18

Change the session ['test _ user_id '] to session ['test _ user_id'. $ CID] To be registered at STD.

This helps you to participate in multiple competitions at the same time without confusion.

The modified

/Contest. php

/Contestrank. php

/Status. php

/Showsorce. php

/Ceinfo. php

/Reinfo. php

/Std_login.php

Modified the sessions in the table.

Time: 2013.8.19

Today, MCB modifies the corresponding interface code.

Then, the Code indicating whether the AC has been modified in the contest Module

Mainly Modify/contest. php

This allows you to view all of the three modes.

Modified the module style of the entire OJ.

Next step ::

Modify webpage code to make webpage loading faster

Remove the submit page plug-ins and unnecessary things, which will increase the loading speed.

Domain Name 301 redirection, which helps speed up when the web is outside

Time: 2013.8.20

Added the topic title hiding function for OJ by modifying/contest. php/problem. php.

Optimized title display

Add the corresponding options in add contest on the admin interface.

Modified the/template/BS/contest. php file. The question is not displayed when the game is not started.

Modified some interfaces.

Lost password is removed.


Time: 2013.8.21

Changed the contest interface to make the display more reasonable and nice-looking.

Modified the errors that may occur during the submission process. Mainly display errors

Foot-er modified

Some bugs are reported:

The Status interface should display Nick instead of ID

The user's AC should be the number of questions, not the number of questions.

AC Rate Calculation

After Test, test will affect the AC rate. Do you want to test the function?

We suggest adding a link to the header.

Record the last selected language function



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.