Commit Graph

3384 Commits

Author SHA1 Message Date
Guangcong Luo
33dffbed89 Only disallow hotlinking for main server 2013-03-22 22:52:11 +03:00
Cathy J. Fitzpatrick
51a6ab102f Reinstate accidentally removed line from .htaccess 2013-03-22 04:47:44 -07:00
Cathy J. Fitzpatrick
f5eef09ec7 Fix typo in crossdomain.php 2013-03-22 05:13:11 -06:00
Cathy J. Fitzpatrick
d672ae57b5 Correctly synchronise sid and username across domains 2013-03-22 05:11:11 -06:00
Cathy J. Fitzpatrick
03dd6a2586 Fix bug involving empty sid data 2013-03-22 04:44:59 -06:00
Cathy J. Fitzpatrick
d99ede9def Always load resources from play.pokemonshowdown.com
With the advent of the *.psim.us URI scheme, one problem was that
images and other resources were not cached across different servers
because each server had a different URI for the same resource. This
commit resolves the problem by loading all resources from
play.pokemonshowdown.com.
2013-03-22 04:07:30 -06:00
Cathy J. Fitzpatrick
2ff0176b0e Add link to main website at top of client UI 2013-03-22 03:45:00 -06:00
Cathy J. Fitzpatrick
11739c77a7 More robust removal of default port 2013-03-22 12:19:35 +03:00
Cathy J. Fitzpatrick
d7f88100af Fix typo in last commit 2013-03-22 03:10:57 -06:00
Cathy J. Fitzpatrick
55015bc10c Remove default port from *.psim.us URIs 2013-03-22 03:10:16 -06:00
Cathy J. Fitzpatrick
0d1f89aef0 Fix for URIs not ending in / 2013-03-22 03:06:50 -06:00
Cathy J. Fitzpatrick
9dedae601a Analytics crossdomain tracking 2013-03-22 02:44:11 -06:00
Cathy J. Fitzpatrick
cd17c58c27 Better redirection of naked psim.us domain 2013-03-22 11:22:28 +03:00
Cathy J. Fitzpatrick
0862e78b95 Fix Analytics code for psim.us 2013-03-22 02:13:37 -06:00
Cathy J. Fitzpatrick
2a64b73a39 Rewrite third-party servers to *.psim.us URI scheme 2013-03-22 01:00:05 -07:00
Cathy J. Fitzpatrick
e9f778b578 Implement host-port.psim.us syntax
For example, you can connect to localhost port 8000 by visiting
http://localhost-8000.psim.us
2013-03-22 01:46:03 -06:00
Cathy J. Fitzpatrick
0579f6d409 Fix a bug in crossdomain resource sharing 2013-03-22 01:34:14 -06:00
Cathy J. Fitzpatrick
17bbe9a616 Fix /~~server/lobby URI 2013-03-21 23:52:29 -07:00
Cathy J. Fitzpatrick
7a2af3971b Fix /~~server/ URIs 2013-03-21 23:50:25 -07:00
Cathy J. Fitzpatrick
15e797f0d5 Sharing of resources between psim.us and pokemonshowdown.com
This commit allows the new psim.us domain to use the cookies and
`localStorage` of play.pokemonshowdown.com. Teams and prefs are
initially loaded from the play.pokemonshowdown.com `localStorage` and
changes to teams and prefs are written back to the
play.pokemonshowdown.com `localStorage`.

This commit also implements a few other things for the new psim.us
domain (implemented by Zarel):

- URIs of the form serverid.psim.us load the server `serverid`
- the naked domain now loads the lobby
2013-03-22 00:19:23 -06:00
Cathy J. Fitzpatrick
1a2e5a13fa Fix potential race condition in initialising the client 2013-03-21 06:00:47 -06:00
Cathy J. Fitzpatrick
f8ad3b0700 Fix another potential exception 2013-03-21 05:52:56 -06:00
Cathy J. Fitzpatrick
d8bce4e577 Fix potential exception in sim.js 2013-03-21 05:50:08 -06:00
Cathy J. Fitzpatrick
e5b32a3a27 Track external links 2013-03-19 18:33:42 -06:00
Cathy J. Fitzpatrick
dc357d6f02 Allow empty serverid in action.php 2013-03-16 20:06:20 -06:00
Cathy J. Fitzpatrick
6d3b9d3af6 Fix to CORS support 2013-03-16 19:55:12 -06:00
Cathy J. Fitzpatrick
78ab39094c CORS support in action.php 2013-03-16 18:50:53 -06:00
Marty-D
cb1a1b608c Update data files. 2013-03-13 12:58:04 -04:00
Cathy J. Fitzpatrick
a70305d704 jdarden gets a new colour 2013-03-09 23:54:10 -07:00
Cathy J. Fitzpatrick
a00b7c1b4a Use Array.prototype.push 2013-03-07 13:08:29 -07:00
Cathy J. Fitzpatrick
6904aa9c6c Move link whitelist to a config file 2013-03-07 12:58:33 -07:00
Cathy J. Fitzpatrick
5dceb72a5d Allow subdomains in the safe link whitelist 2013-03-07 12:16:09 -07:00
Cathy J. Fitzpatrick
f91a508643 Better formatting of stats SQL query 2013-03-06 11:33:00 -07:00
Cathy J. Fitzpatrick
d135928404 Keep historical userstats in a separate table
This avoids making an expensive query on the site index.
2013-03-06 11:30:32 -07:00
Marty-D
45c929ea24 Tab the last commit properly. 2013-03-05 15:12:13 -05:00
Marty-D
fc7968a1f0 Add the Stockpile end message. 2013-03-05 15:09:34 -05:00
Guangcong Luo
2b5a817dec Gravity interrupts Fly's animation 2013-03-05 11:21:43 -08:00
Guangcong Luo
136ff4cb71 Smack Down animation 2013-03-05 11:15:56 -08:00
Guangcong Luo
8057edc245 EV recommender fix:
Make sure support Smeargle gets +Spe nature
2013-03-05 08:58:55 -08:00
Cathy J. Fitzpatrick
eaac40dea7 Move custom colour for 'hexasexual' to 'Solace' 2013-03-04 19:31:41 -07:00
Marty-D
ba70388bdc Move Deoxys-D to Uber in the teambuilder.
- Also update the rest of formats-data.
2013-03-04 14:33:02 -05:00
Cathy J. Fitzpatrick
2e2c8fe626 Fix a typo in the link whitelist 2013-03-02 02:54:06 -07:00
Cathy J. Fitzpatrick
e031ade17d Implement interstitial page for untrusted links 2013-03-02 02:35:24 -07:00
Cathy J. Fitzpatrick
a2c7a8850f Changes to alt port functionality
- don't store alt port preference in `localStorage` anymore
- don't show information about what port the client is connecting to,
  because this information isn't useful to users
2013-02-28 19:27:15 -07:00
Cathy J. Fitzpatrick
8342068a5c Fix an issue resulting from the ladder move 2013-02-28 04:05:43 -07:00
Cathy J. Fitzpatrick
8be53b902e Changes for ladder database move 2013-02-28 00:04:32 -07:00
Guangcong Luo
afd7a89c64 All HP percentages round the same way now 2013-02-26 19:34:15 -08:00
Guangcong Luo
b92a21e564 Show HP for active pokemon on mouseover 2013-02-26 10:37:19 -08:00
Cathy J. Fitzpatrick
e97f68d51f Correct percent display 2013-02-24 18:48:19 -07:00
Cathy J. Fitzpatrick
8a4324d141 More changes to HP display 2013-02-24 18:44:11 -07:00