mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
4ccbf6a967
[ci skip] [skip ci]
21 lines
387 B
PHP
21 lines
387 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
|
|
|
use nntmux\Users;
|
|
use App\Models\User;
|
|
|
|
$page = new AdminPage();
|
|
|
|
if (isset($_GET['id'])) {
|
|
$users = new Users();
|
|
User::deleteUser($_GET['id']);
|
|
}
|
|
|
|
if (isset($_GET['redir'])) {
|
|
header('Location: '.$_GET['redir']);
|
|
} else {
|
|
$referrer = $_SERVER['HTTP_REFERER'];
|
|
header('Location: '.$referrer);
|
|
}
|