mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
20 lines
355 B
PHP
20 lines
355 B
PHP
<?php
|
|
|
|
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
|
|
|
|
use App\Models\User;
|
|
|
|
|
|
|
|
|
|
if (request()->has('id')) {
|
|
User::deleteUser(request()->input('id'));
|
|
}
|
|
|
|
if (request()->has('redir')) {
|
|
header('Location: '.request()->input('redir'));
|
|
} else {
|
|
$referrer = request()->server('HTTP_REFERER');
|
|
header('Location: '.$referrer);
|
|
}
|