mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Files meant to be served have been moved into `play.pokemonshowdown.com/` and `pokemonshowdown.com/`. We now have three directories for the three subdomains handled by this repo: - `pokemonshowdown.com/` - `play.pokemonshowdown.com/` - `replay.pokemonshowdown.com/` Naming them after the subdomains will make it much easier to tell where the files for each go. The diff is probably useless; it'll be easier if you just look at the new tree: https://github.com/smogon/pokemon-showdown-client/tree/reorganize
22 lines
652 B
PHP
22 lines
652 B
PHP
<?php
|
|
|
|
error_reporting(E_ALL);
|
|
ini_set('display_errors', TRUE);
|
|
ini_set('display_startup_errors', TRUE);
|
|
|
|
$cleaned = false;
|
|
|
|
foreach ($_COOKIE as $name => $value) {
|
|
if (strlen($value) > 3000) {
|
|
setcookie($name, '', time()-1000, '/', 'play.pokemonshowdown.com');
|
|
setcookie($name, '', time()-1000, '/', '.play.pokemonshowdown.com');
|
|
setcookie($name, '', time()-1000, '/', 'pokemonshowdown.com');
|
|
setcookie($name, '', time()-1000, '/', '.pokemonshowdown.com');
|
|
$cleaned = true;
|
|
}
|
|
}
|
|
|
|
if ($cleaned) {
|
|
echo 'alert("You had a cookie which was too big to handle and had to be deleted. If you had cookie settings, they may have been deleted.")';
|
|
}
|