mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
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.
18 lines
375 B
PHP
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' : '';
|