<?php
namespace Claromentis\News\Controller;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"] ?: array()) + array("_0c5123aa744f69" . "bbc0e8b3ea2f6e8" . "47d" => base64_decode("bG1zZ" . "w=="), "_d05b4bf6682d" . "2121411e246bd" . "4eac357" => base64_decode("bmV3cy5hZG1pbi5oZWFkbGluZV9uZXdzLm" . "RlbGV0ZWQ="), "_559824e0ac2e0" . "f7e96c810473f7" . "8f5fe" => base64_decode("L25ld" . "3Mv"));
use Claromentis\Core\Application;
use Claromentis\Core\Http\RedirectResponse;
use Psr\Http\Message\ServerRequestInterface as Request;
use NewsBrowser;






class DeleteController
{
    public function Delete(Application $app, Request $request, $news_id)
    {
        if (!\Claromentis\Core\Http\gpc::isSubmit($request)) {
            return RedirectResponse::httpRedirect($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_559824e0ac2e0f7e96c810473f78f5f" . "e"]);
        }
        $_3df4de5f7ffdb557d4dbde163f74af21 = NewsBrowser::I();
        if (!$_3df4de5f7ffdb557d4dbde163f74af21->DeleteNewsById($news_id)) {
            return RedirectResponse::httpRedirect($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_559824e" . "0ac2e0f7" . "e96c8104" . "73f78f5f" . "e"], $_3df4de5f7ffdb557d4dbde163f74af21->GetErrMsg(), true);
        } else {
            return RedirectResponse::httpRedirect($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_559824e0ac2e0f7e9" . "6c810473f78f5fe"], $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_0c5123aa7" . "44f69bbc0e" . "8b3ea2f6e8" . "47d"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_d05b4bf" . "6682d212" . "1411e246" . "bd4eac35" . "7"]));
        }
    }
}