Skip to content

Commit

Permalink
Populate with current state of client
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Jan 24, 2013
1 parent 1f699b5 commit b16c152
Show file tree
Hide file tree
Showing 126 changed files with 65,935 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/sprites/
/audio/
45 changes: 45 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -FrontPage-

#IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

AddType text/plain .phps
AddType application/x-tgz .tgz
AddType application/x-chrome-extension .crx
AddType application/x-web-app-manifest+json .webapp

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www\.play\.pokemonshowdown\.com$ [NC]
RewriteRule ^(.*)$ http://play.pokemonshowdown.com/$1 [R=301,L]

RewriteRule ^$ /lobby [R=301,L]
RewriteRule ^topsekritsim\.php$ /lobby [R=301,L]
RewriteRule ^topsekrit3\.php$ /lobby [R=301,L]
RewriteRule ^temporary508\.php$ /lobby [R=301,L]
RewriteRule ^temporary508\.php$ /lobby [R=301,L]
RewriteRule ^sim\.php$ /lobby [R=301,L]

#RewriteRule ^([A-Za-z0-9-]*)$ closed.php [L,QSA]

RewriteRule ^(teambuilder|ladder|lobby|battle)/?$ index.php [L,QSA]
RewriteRule ^(lobby|battle)-([A-Za-z0-9-]*)$ index.php [L,QSA]

RewriteRule ^replay/battle-([A-Za-z0-9-]+)$ http://pokemonshowdown.com/replay/$1 [R=302,L]
RewriteRule ^replay/turn_(.+)\.png$ replay/turn-image.php?data=$1 [L,QSA]

RewriteRule ^~~([^/]*)/?$ /~~$1/lobby [R=301,L]
RewriteRule ^~~([^/]*)/(teambuilder|ladder|lobby|battle)/?$ index.php?server=$1 [L,QSA]
RewriteRule ^~~([^/]*)/(lobby|battle)-([A-Za-z0-9-]*)$ index.php?server=$1 [L,QSA]

</IfModule>
37 changes: 34 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
Pokemon-Showdown-Client
=======================
Pokemon Showdown Client
========================================================================

The client for Pokemon Showdown
This is a repository for some of the client code for Pokemon Showdown.

This is what runs `play.pokemonshowdown.com`.

WARNING: You probably want the [Pokemon Showdown server][1].

[1]: https://github.com/Zarel/Pokemon-Showdown

Setup
------------------------------------------------------------------------

This repository is not "batteries included". It does NOT include everything
necessary to run a Pokemon Showdown client.

In particular, it doesn't include a login/authentication server, nor does it
include the database abstraction library used by the ladder library (although
it's similar enough to `mysqli` that you can use that with minimal changes).

It also doesn't include several resource files (namely, the `/audio/` and
`/sprites/` directories) for size reasons.

In other words, this repository is incomplete and NOT intended for people
who wish to serve their own Pokemon Showdown client (you can, but it'll
require you to rewrite some things). Rather, it's intended for people who
wish to contribute and submit pull requests to Pokemon Showdown's client.

License
------------------------------------------------------------------------

Pokemon Showdown's client is distributed under the terms of the [AGPLv3][2].

[2]: http://www.gnu.org/licenses/agpl-3.0.html
Loading

0 comments on commit b16c152

Please sign in to comment.