<?php
namespace Claromentis\Quiz\Controller;

$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] = (@$GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"] ?: array()) + array("_fa447d7" . "fa2948f1" . "50ff8017" . "6241af90" . "d" => base64_decode("cGx1Z2lucy5yZXBvc2" . "l0b3J5"), "_df1463d8a9b74272d2025f4eb595411" . "4" => base64_decode("YXBwX3RpdG" . "xlX2Rpc2Fi" . "bGVkLnZpc2" . "libGU="), "_dc55adf8ec35ba5a04bac" . "6937ed2510c" => base64_decode("YXBwX3RpdGxlX2VuYWJsZWQud" . "mlzaWJsZQ=="), "_4f972d8e1eedd2" . "e581b50f3cf4add" . "99b" => base64_decode("bGVhc" . "m5pbm" . "c="));
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["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_fa447d7f" . "a2948f150" . "ff8017624" . "1af90d"]]->Exists($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_4f972d8e" . "1eedd2e58" . "1b50f3cf4" . "add99b"]) && $is_quiz) {
            $args[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_dc55adf8ec35ba5a04" . "bac6937ed2510c"]] = false;
            $args[$GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_df1463d8a9b7427" . "2d2025f4eb595411" . "4"]] = 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);
    }
}