pokemon-showdown-client/replay.pokemonshowdown.com/check-login.php
Guangcong Luo 7a2b323eaf Deploy New Replays
The idea is to eventually move all client parts to their domain name
subdirectory, for clarity and better organization. New Replays is
just first.

Anyway, yeah, minor updates to New Replays, but otherwise it's just
getting deployed as-is, straight to

https://replay.pokemonshowdown.com/

The old URLs are getting taken down; they were only used for
development anyway.
2023-11-05 23:37:14 +00:00

18 lines
375 B
PHP

<?php
/**
* Literally only used for the Replays webapp to know which username's
* private replays you're allowed to view.
*
* TODO: Move to loginserver.
*
* @author Guangcong Luo <guangcongluo@gmail.com>
* @license MIT
*/
require '../lib/ntbb-session.lib.php';
echo ']' . ($curuser['loggedin'] ? $curuser['userid'] : '') . ',';
echo $users->isSysop() ? '1' : '';