Files
newznab-tmux/public/admin/content-delete.php
T
2018-03-06 12:49:43 +01:00

14 lines
287 B
PHP

<?php
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
use Blacklight\Contents;
if (request()->has('id')) {
$contents = new Contents();
$contents->delete(request()->input('id'));
}
$referrer = request()->server('HTTP_REFERER');
header('Location: '.$referrer);