4chan/www.4chan/derefer.php
2025-04-17 18:12:08 -05:00

19 lines
350 B
PHP

<?php
require_once 'lib/admin.php';
require_once 'lib/auth.php';
if (!isset($_COOKIE['4chan_auser'])) {
die();
}
mysql_global_connect();
auth_user();
if (!has_level('janitor')) {
die();
}
if (isset($_GET['url'])) {
echo "<META HTTP-EQUIV=\"refresh\" CONTENT=\"0; URL=" . htmlspecialchars(rawurldecode($_GET['url']), ENT_QUOTES) . "\">";
}