public function execute_show()
{
if (
isset($_GET['slug']) &&
str_ivslug($_GET['slug']) &&
in_array($_GET['slug'], $this->controller->dane[1])
) {
$nr = array_search($_GET['slug'], $this->controller->dane[1]);
$tekst = file_get_contents('koledy/' . $this->controller->dane[1][$nr] . '.txt');
$this->set('tekst', $tekst);
$nuty = file_exists('koledy/' . $this->controller->dane[1][$nr] . '.mus');
$this->set('nuty', $nuty);
$this->set('slug', $this->controller->dane[1][$nr]);
$this->set('tytul', $this->controller->dane[0][$nr]);
} else {
$this->execute_404();
}
}