<?php
namespace Claromentis\Quiz\Controller;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"] ?: array()) + array("_fa447d7fa2948f150f" . "f80176241af90d" => base64_decode("cGx1Z2lu" . "cy5yZXBv" . "c2l0b3J5"), "_df1463d8a9b74272d2025f4eb5" . "954114" => base64_decode("YXBwX3RpdGxlX2Rpc2FibGVkL" . "nZpc2libGU="), "_4f972d8e1eedd2e581b50f3cf" . "4add99b" => base64_decode("bGV" . "hcm" . "5pb" . "mc="), "_dc55adf8" . "ec35ba5a0" . "4bac6937e" . "d2510c" => base64_decode("YXBwX3RpdGxlX2VuYWJsZWQ" . "udmlzaWJsZQ=="));
use Claromentis\Core\Http\RedirectResponse;
use Claromentis\Core\Http\TemplaterCallResponse;
trait Helper
{
    
    
    
    
    
    
    
    
    
    
    
    public function Respond($template, array $args = array(), $title = null, $message = null, $is_error = false, $is_quiz = true)
    {
        global $g_application;
        
        
        if (!$g_application[$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_fa447d7fa2948f150f" . "f80176241af90d"]]->Exists($GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_4f972d8e1eedd2e5" . "81b50f3cf4add99b"]) && $is_quiz) {
            $args[$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_dc55adf8ec35ba5a04bac6937ed" . "2510c"]] = false;
            $args[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_df1463d8a9b74272d2025f4e" . "b5954114"]] = true;
        }
        $response = new TemplaterCallResponse($template, $args, $title);
        if ($message !== null) {
            $response->SetMessage($message, $is_error);
        }
        return $response;
    }
    
    
    
    
    
    
    
    
    
    public function Redirect($url, $message = null, $is_error = false)
    {
        return RedirectResponse::httpRedirect($url, $message, $is_error);
    }
}