parse_all(); if (empty($all_url_vars['idcat'])) { $expl = explode("/",$_SERVER["REQUEST_URI"]); $expl = array_reverse ($expl); $all_url_vars['id'] = $expl[1]; } $all_url_vars['id'] = (int) ($all_url_vars['id']); if(empty($all_url_vars['nrofrows'])) $all_url_vars['nrofrows'] = NRLISTVENDOR; else $all_url_vars['nrofrows'] = (int) $all_url_vars['nrofrows']; if($all_url_vars['nrofrows'] == 0) $all_url_vars['nrofrows'] = NRLISTVENDOR; $ft = new FastTemplate(TEMPLATE_PATH); $ft->define(array("main"=>"template_index.html", "content"=>"contest_index.html")); $ft->assign("KEYWORDS",""); $lm = new LeftMenu(); $ft->assign("left_menu.html",$lm->getMenu($NEWLANG)); // $lm->getMenu function use: left_menu.html $buffer = ""; if (isset($_SESSION['session_user_id'])) { $fp = fopen (INDEX_PATH."include/conect1.inc.php", "r"); while(!feof ($fp)) { $buffer = $buffer.fgets($fp, 4096); } fclose ($fp); $buffer = ereg_replace ("{UTILIZATOR}", LANG_USERNAME , $buffer); $buffer = ereg_replace ("{USERID}", $_SESSION['session_user_id'] , $buffer); $buffer = ereg_replace ("{LOGIN}", $_SESSION['session_user_login'] , $buffer); $buffer = ereg_replace ("{MODPERSONALDATA}", LANG_MODPERSONALDATA, $buffer); $buffer = ereg_replace ("{DECONECTARE}", LANG_DECONECTARE, $buffer); }//end if else { $fp = fopen (INDEX_PATH."include/conect2.inc.php", "r"); while(!feof ($fp)) { $buffer = $buffer.fgets($fp, 4096); } fclose ($fp); $buffer = ereg_replace ("{CONECTARE}", LANG_LOGINREGISTER, $buffer); }//end else $ft->assign("CONECT",$buffer); $ft->assign("TITLE_TAG",LANG_TITLE_TAG_CONTEST_CAT); $prod = new Products(0); $van_topviewed = $prod->getTopViewedProducts(NR_TOPVIEWED,$NEWLANG); // $prod->getTopViewedProducts function use: article_topviewed.html if($van_topviewed) $ft->assign("article_topviewed.html",$van_topviewed); else $ft->assign("article_topviewed.html",$van_topviewed); $publication = new Publication(0); $latestpublic = $publication->getLatestPublication(); $ft->assign("LATESTPUBLICATION",$latestpublic); $motto=new Motto(0); $ft->assign("LATESTPUBLICATION_MOTTO",$stringutil->cleanDescription2($motto->getLatestPublicationsMotto())); //$vend = new Vendor(0); // $ft->assign("LISTVENDORS", $vend->formatVendors($all_url_vars['from'], $NEWLANG, $all_url_vars['nrofrows'])); $addcontestdescr=new addContestDescr(0); $ft->assign("LISTCONTENTCATS", $addcontestdescr->formatOneContestDescrDetailed($all_url_vars['id'])); $news = new News(0); $ft->assign("news_newsdailytop.html",$news->getTopulZilei($NEWLANG)); // $vend->formatVendors function use: vendor_seeallvendors.html $ft->assign("CSS",""); $ft->multiple_assign_define("CONF_"); $ft->multiple_assign_define("LANG_"); $ft->parse("BODY", array("content","main")); $ft->showDebugInfo(ERROR_DEBUG); $ft->FastPrint(); ?>