AddConst('pdf', $isPDFPage); if ($article->GetValue("id_lang") != GetLanguage() && !$isPDFPage) { DBConnect(); $id_mag_ = GetSQLValue('emag_pages', 'id_mag', 'id_page = '.$_GET['id_page']); $id_page = GetSQLValue('emag_pages', 'id_page', 'id_mag = '.$id_mag_.' AND id_part = "'.mysql_escape_string($article->GetValue("id_part")).'" AND id_lang = '.GetLanguage()); DBDisconnect(); $url = GetCurrentURL(); $pos = strrpos($url, "/"); $url = substr($url, 0, $pos).'/'; if (is_numeric($id_page)) { $url .= 'page_'.$id_page.'.html'; } header("location: $url"); } if ($isPDFPage == 0 && $isMagPage == true) { header("location: https://nbpublish.com/e_".$_GET['mag']."/info_".$_GET['id_page'].'.html'); } else if ($isPDFPage == 0 && ($_GET['id_page'] == 1 || $_GET['id_page'] == 2 || $_GET['id_page'] == 3 || $_GET['id_page']== 4)) { if ($_GET['id_page'] == 1) header("location: https://nbpublish.com/view_page_2617.html"); else if ($_GET['id_page'] == 2) header("location: https://nbpublish.com/services.php"); else if ($_GET['id_page'] == 3) header("location: https://nbpublish.com/view_page_2619.html"); else if ($_GET['id_page'] == 4) header("location: https://nbpublish.com/view_page_2627.html"); } if (!$isPDFPage) ShowTopPart('Ёлектронные журналы издательства NotaBene - '.$article->GetValue("title")); $isAuthorPage = ($article->GetValue("id_mag") == -1); if ((!isset($_SESSION['user_type'])) || ($_SESSION['user_type'] < 2)) { $isAuthorPage = false; } if ($isMagPage == true) { if (!$isPDFPage) ShowMagColumn($_GET['mag']); $article->AddFieldFilter("content", new CMagPageFieldFilter(GetMagTitle($_GET['mag']))); } if ($isMagPage == false) { if ($isAuthorPage) { $article->AddConst("breadcrumbs", array(array("title" => (GetLanguage() == 1) ? 'јвторска€ зона' : 'Author area', "url" => '/author_menu.php'), array("title" => $article->GetValue("title"), "url" => '/page_'.$_GET['id_page'].'.html'))); } else { $article->AddConst("breadcrumbs", array(array("title" => $article->GetValue("title"), "url" => '/page_'.$_GET['id_page'].'.html'))); } } else { $article->AddConst("breadcrumbs", array(array("title" => ((GetLanguage() == 1) ? '∆урнал "' : 'Journal "').GetMagTitle($_GET['mag']).'"', "url" => '/'.$_GET['mag'].'/'), array("title" => $article->GetValue("title"), "url" => '/'.$_GET['mag'].'/page_'.$_GET['id_page'].'.html'))); } $article->Show(); if ($isMagPage == false && !$isPDFPage) { if ($isAuthorPage) { ShowAuthorMenu(); $subscribe = new CSimplePage('news/subscribe.tpl'); $subscribe->Show(); } else { ShowNewsList(); } } if (!$isPDFPage) ShowBottomPart(); ?>