$currentIssue['current_issue']['no']) { die("Big Issue"); } else if ($_GET['year'] > $currentIssue['current_issue']['year']) { die("big year"); }else { if (file_exists("./".$_GET['year']."/".$_GET['issue']."/list.php")) { require_once("./".$_GET['year']."/".$_GET['issue']."/list.php"); } else { die("bad list"); } $pos = strpos($_GET['page'],".html"); if ($pos === false) { $_GET['page'] = $_GET['page'] .".html"; } if (empty($_GET['page']) || @$_GET['page']=='/' || @$_GET['page'] == '.html') { $_GET['page'] = $_GET['issue']."main.html"; } $page['title'] = "גליון ".intval($viewing_issue['viewing_issue']["no"])." - "; //For some reason has gibberish $page['title'] = $page['title'] . $current_issue_articles[$_GET['page']]['category'];// . ": ". $current_issue_articles[$_GET['page']]['title']; $page['viewpage'] = true; require_once("./config.php"); $config['viewing_issue'] = $viewing_issue['viewing_issue']; $config['current_issue']['articlesDir'] = $viewing_issue['viewing_issue']['year'] . "/" . $viewing_issue['viewing_issue']['no']; require_once("./template.php"); require_once("./".$_GET['year']."/".$_GET['issue']."/".$_GET['page']); $pos_main = strpos($_GET['page'], "main"); if ($pos_main !== false) { //it a "main" file echo print_issue_list(); } require_once("./footer.php"); } ?>