Commit Graph

3384 Commits

Author SHA1 Message Date
Cathy J. Fitzpatrick
1cbfbad269 Sending the sid across domains is no longer necessary 2013-04-06 23:42:48 -06:00
Cathy J. Fitzpatrick
21fb40ccbf Show helpful message if user has third-party cookies disabled 2013-04-06 19:16:23 -07:00
Cathy J. Fitzpatrick
6dfc6924cc Properly support new battle ID style 2013-04-07 06:03:01 +04:00
Cathy J. Fitzpatrick
41027e9b8d Backward-compatible battle ID parsing 2013-04-06 19:59:43 -06:00
Cathy J. Fitzpatrick
3334f95615 Don't throw an exception if third-party cookies are disabled 2013-04-06 18:21:40 -07:00
Cathy J. Fitzpatrick
0dd11a6b22 More resource prefix stuff 2013-04-06 15:51:53 -06:00
Cathy J. Fitzpatrick
09a8530215 Load font-awesome from play.pokemonshowdown.com 2013-04-06 14:22:05 -07:00
Guangcong Luo
eae514a6b5 Final fixes to bounce animation 2013-04-06 12:36:40 -07:00
Guangcong Luo
4d49bec248 New Magic Bounce animation 2013-04-06 12:31:53 -07:00
Guangcong Luo
21904ca2a0 [still] now affects all move animation 2013-04-06 12:20:58 -07:00
Guangcong Luo
6fc9f95af3 Fix double bounce animation 2013-04-06 12:16:20 -07:00
Guangcong Luo
58da4f1477 Bounced moves have no message 2013-04-06 12:09:59 -07:00
Cathy J. Fitzpatrick
174edfe4b5 Fix a couple resource path issues
- for now, font-awesome.css is loaded with a relative path
  because it doesn't work when loaded from another domain;

- fix the version query string script
2013-04-06 16:17:01 +04:00
Cathy J. Fitzpatrick
34b94a69fc Add some more resource prefixes 2013-04-06 06:04:17 -06:00
Cathy J. Fitzpatrick
9d811c697a Remove obsolete crossdomain sid sharing 2013-04-06 04:38:43 -06:00
Cathy J. Fitzpatrick
3d5f2a1a8b Make crossdomain ajax requests in crossdomain.php 2013-04-06 04:36:08 -06:00
Cathy J. Fitzpatrick
11c931efa9 Fix an issue with last commit 2013-04-06 13:54:21 +04:00
Cathy J. Fitzpatrick
ae71d29140 Wider browser support in crossdomain code 2013-04-06 03:47:39 -06:00
Cathy J. Fitzpatrick
e828b7178d Fix for format IDs ending in a number 2013-04-06 12:14:30 +04:00
Guangcong Luo
432a3e31f2 Support hostnames with hyphens 2013-04-05 22:49:43 -07:00
Cathy J. Fitzpatrick
88d550d1d8 Sanitise some names in battledata.js 2013-04-05 19:16:35 -06:00
Cathy J. Fitzpatrick
2e445b6e12 Add some missing sanitisation 2013-04-05 18:50:57 -06:00
Guangcong Luo
67fb5d52dd Better replay errors 2013-04-05 17:23:01 -07:00
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
Guangcong Luo
2996a86be8 Support - before room number
We're updating room IDs to be in the form 'battle-ou-1' instead of
'battle-ou1'
2013-04-05 14:41:56 -07:00
Guangcong Luo
eab5e45492 Fix HP shadow update times
HP shadows should now more reliably only update at the start of
a turn.
2013-04-05 14:41:29 -07:00
Guangcong Luo
4c1d68a55a Show HP shadow during during choice
So we have an HP 'shadow' that appears to show how much HP you've
lost. The change here is that the 'shadow' now updates at the
beginning of the next turn, rather than the end of the current turn.

The main upshot is that you can now see the previous turn's HP and
how much you've lost this turn, while you make your decision for
the next turn.
2013-04-03 21:11:40 -07:00
Guangcong Luo
9367836562 Fix Toxic in switch menu 2013-04-03 20:53:26 -07:00
Guangcong Luo
588e435451 Fix animation issue with multi-turn moves
Specifically, any more interruption such as full paralysis interacted
badly with a multi-turn move. This has been fixed.
2013-04-03 19:42:12 -07:00
Guangcong Luo
78c789fd1d AFD sprites in Fools Festival 2013-04-03 19:40:51 -07:00
Cathy J. Fitzpatrick
5ae12616d1 More intuitive health and damage display 2013-04-03 20:30:52 -06:00
Guangcong Luo
a81230a102 Removing jQuery++
It had some bugs. :(
2013-04-02 17:36:49 -07:00
Guangcong Luo
a1ccbb1d5a Now using jQuery++
Presumably this will use CSS3 animation where possible, which should
have performance benefits. We'll see.
2013-04-02 15:39:37 -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
ebca3013e3 Fix XSS vulnerability in ladder.php 2013-04-02 01:13:31 -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
Marty-D
c3b77a45a2 Move Jynx to NU in the teambuilder. 2013-04-02 00:34:49 -04:00
Guangcong Luo
c56a30d419 Add the other two afd jokes 2013-04-01 20:41:23 -07:00
Guangcong Luo
7a34df13d6 Fix bug in previous commit 2013-04-01 20:40:00 -07:00
Guangcong Luo
77b6a00399 Support afd sprites
This should theoretically support afd sprites by adding -afd after
a server ID.
2013-04-01 20:37:59 -07:00
Guangcong Luo
bcb357be56 April Fool's 2013 ends 2013-04-01 19:08:33 -07:00
Cathy J. Fitzpatrick
f1f465abd3 Fix some errors in action.php 2013-04-01 17:03:19 -07:00