$poem) { $poem = trim($poem); if ($key != 0 || $poem != "") { if ($key == $show ){ $vis = true; } else { $vis = false; } $htmlpoem .= loadpoem($poem, $key, $vis); } } if ($show <= 0) { if ($show == OLDPOEM) { $title = "bleble"; $author = "bleble"; $date = "1. janúar 2015"; $debug = errormsg("Ljóð ekki lengur í birtingu"); } else if($show == TOONEW) { $title = "bleble"; $author = "bleble"; $date = "1. janúar 2015"; $debug = errormsg("Ljóð ekki komið í birtingu"); } else if($show == NOTFOUND) { $debug = error("Ljóð fannst ekki"); } else if ($show == NONE) { $debug = loadpage(); } } $css = dir_load('css'); $js = dir_load('js'); if (isset($GLOBALS['author']) && $show > 0) { $title = $GLOBALS['title']." eftir ".$GLOBALS['author']; $url = $GLOBALS['url']; $img = "author/".$GLOBALS['img']; $fb = fb_header($title, $url, $img); } else { $fb = fb_header(); } $data = array("debug"=>$debug, "htmlpoems"=>$htmlpoem, "count"=>$poems[0],"css"=>$css, "js"=>$js, "fb"=>$fb); $html = compress(loadtemplate('index', $data)); echo $html; ?>