mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
24 lines
357 B
PHP
24 lines
357 B
PHP
<?php
|
|
require_once dirname(__DIR__) . DIRECTORY_SEPARATOR . 'smarty.php';
|
|
|
|
|
|
use nntmux\Users;
|
|
|
|
$page = new AdminPage();
|
|
|
|
if (isset($_GET['id']))
|
|
{
|
|
$users = new Users();
|
|
$users->delete($_GET['id']);
|
|
}
|
|
|
|
if (isset($_GET['redir']))
|
|
{
|
|
header("Location: " . $_GET['redir']);
|
|
}
|
|
else
|
|
{
|
|
$referrer = $_SERVER['HTTP_REFERER'];
|
|
header("Location: " . $referrer);
|
|
}
|