Commit Graph

11 Commits

Author SHA1 Message Date
Guangcong Luo
84adaa6de6 One more bugfix to replay uploading 2013-04-05 17:11:52 -07:00
Cathy J. Fitzpatrick
68dce72aeb Fix incorrect use of 'break' 2013-04-05 18:00:55 -06:00
Guangcong Luo
42636f0ed7 Allow replays to be reuploaded
Previously, a bug prevented a replay from being re-uploaded if the
first replay upload failed, or if the battle continued after a
replay was uploaded. This has been fixed.
2013-04-05 16:58:54 -07:00
Guangcong Luo
818a28e30e Replay upload improvements
The replay upload system should be a lot less brittle now. Errors
should be rarer, and when they do happen, the error message will
be clearer.

For instance, 'hash mismatch' will happen much less often, and
when it does happen it will give the message: "Someone else is already
uploading a replay. Try again in five seconds."
2013-04-05 16:42:01 -07:00
Guangcong Luo
9936c957c1 Support replay saving on registered servers 2013-04-05 16:21:58 -07:00
Cathy J. Fitzpatrick
3166be1fc8 Move getIp to a function of the dispatcher so it can be overriden 2013-04-02 03:28:52 -06:00
Cathy J. Fitzpatrick
c4be8d36c6 File-relative includes in dispatcher 2013-04-02 02:33:42 -06:00
Cathy J. Fitzpatrick
8040e824cc Remove some unnecessary use of globals 2013-04-02 01:42:16 -06:00
Cathy J. Fitzpatrick
fd81ec3931 Fix mistake in previous commit
I accidentally introduced an incorrect `public` specifier by using
a naive find and replace
2013-04-02 01:37:39 -06:00
Cathy J. Fitzpatrick
ce5f2d6f9a Remove some unnecessary database queries 2013-04-02 01:36:19 -06:00
Cathy J. Fitzpatrick
82de98d166 Refactor action.php
This moves most of the logic of action.php into a separate file
lib/dispatcher.lib.php and separates the actions into ladder-related
actions and non-ladder-related actions. This is intended to make it
possible to have a second action.php that handlers only ladder-related
actions, which can run on the main server computer and allow
that computer to make HTTP requests to `localhost`, which should
help reduce ladder errors.
2013-04-01 23:21:33 -07:00