Port entirely to a MVC-like pattern #37

Open
kazhnuz wants to merge 29 commits from refactor/use-bludit-boot-code into main
Showing only changes of commit 08de1a5c7f - Show all commits

View file

@ -38,7 +38,7 @@ class Renderer {
global $controlrow; global $controlrow;
global $numqueries; global $numqueries;
global $starttime; global $starttime;
$this->prepare("STYLE_FOLDER", '/theme/default/'); $this->prepare("STYLE_FOLDER", '/theme/default/');
$this->prepare("dkgamename", $controlrow["gamename"]); $this->prepare("dkgamename", $controlrow["gamename"]);
$this->prepare("totaltime", round(getmicrotime() - $starttime, 4)); $this->prepare("totaltime", round(getmicrotime() - $starttime, 4));
@ -49,4 +49,9 @@ class Renderer {
echo $this->twig->render($template, $this->data); echo $this->twig->render($template, $this->data);
die(); die();
} }
public function redirect($redirection) {
header("Location: " . $redirection);
die();
}
} }