$v) { if ($k!='limba') { $query = "$k=$v&"; } } $self = $self."?".substr($query,0,-1); $smarty->assign("SELF", $self); require_once($SITE_APP_PATH."/".$INCLUDES_DIR."/content.php"); $mu = get_last_issue('mu'); $mm = get_last_issue('mm'); $smarty->assign("REVISTA_MU", $mu); $smarty->assign("REVISTA_MM", $mm); require_once($INCLUDES_DIR."/numere.php"); if (isset($_GET['aid'])) { $nr_curent = (!is_numeric($_GET['aid'])) ? get_last_number() : get_number_by_artid($_GET['aid']); } else if (isset($_GET['zid'])){ $nr_curent = get_number($_GET['zid']); } else { $nr_curent = get_last_number(); } $smarty->assign("NUMAR_CURENT", $nr_curent); if (is_numeric($_GET['aid'])) { $articol = get_article($_GET['aid']); $articole = array($articol); //print_r(array_keys($articol)); $smarty->assign("ARTICLE", $articol); $smarty->assign("ARTICOLE", $articole); $smarty->assign("ARTICLE_DETAILS", $articol['art_id']); $smarty->assign("TITLU_PAGINA", $articol['art_titlu']); $smarty->display($configurare['template']."/index2.tpl"); } else { $articole = get_articles($nr_curent['ziar_id']); $titlu_pagina = ($articol) ? $articol['art_titlu']." - " : "Numarul ".$nr_curent['ziar_numar']."/".date("Y", $nr_curent['ziar_data_adaugarii'])." - "; $titlu_pagina .= $lang['links']['titlu_ziar']; $smarty->assign("ARTICOLE", $articole); $smarty->assign("ARTICLE_DETAILS", "all"); $smarty->assign("TITLU_PAGINA", $titlu_pagina); $smarty->display($configurare['template']."/index2.tpl"); } ?>