"; } else { if ( ereg('php', $cobrand[index_page]) ) { print ""; } else { print ""; } } exit; } // if ( empty($tn) ) { $tn = 'frontpage'; } /**************************** Get Particular News ************************************/ if ( $nid != '' ) { list($num_record, $newsInfo) = getNews ( $nid ); if ( $tn == 'frontpage' ) { $tn = 'viewer'; } // Force Back to Viewer Page } /* if ( $action == 'archive' ) { if ( !empty($catid) ) { list($num_record, $newsList, $catInfo) = archiveNews( $catid ); $tn = 'archive_cat'; } else { list($num_record, $catList) = archiveNews( 'all' ); $tn = 'archive_all'; } } // Get Web Contents if ( in_array ("AB", $enabled_services) ) { if ( $tn == 'frontpage' ) { $content_id = 1; } if ( $tn == 'about' ) { $content_id = 2; } if ( $tn == 'services' ) { $content_id = 3; } if ( $tn == 'contact' ) { $content_id = 4; } if ( $content_id > 0 ) { list($num_record2, $newsSet) = getTopicLatestNews( $content_id, 5 ); $topicNews[$content_id] = $newsSet[$content_id]; } } */ /* Old Method ... New Method Will Always Use HoH // 2 Means ==> Will Not Call Panel but Prepare the Cat. HoH Alone if ( $cobrand[cat_panel_on_every_page] == 1 || $cobrand[cat_panel_on_every_page] == 2 ) { if (!$link) { $link = mysql_connect("$mysql_server","$mysql_username","$mysql_password"); mysql_select_db($mysql_database); } $module = 'eshop'; list($lang, $eShop) = checkLang('eshop'); include_once ("$cobrand[webroot]/services/eshop/Cart.inc.php"); if ( $cobrand[cat_panel_on_every_page] == 2 || $cobrand[cat_panel_by_template_include] ) { showCatPanel('hash_only'); } else { $call_cat_panel_header = 1; } } */ if ( $cobrand[cat_panel_on_every_page] ) { if (!$link) { $link = mysql_connect("$mysql_server","$mysql_username","$mysql_password"); mysql_select_db($mysql_database); } $module = 'eshop'; list($lang, $eShop) = checkLang('eshop'); include_once ("$cobrand[webroot]/services/eshop/Cart.inc.php"); showCatPanel('hash_only'); } /*********************** Call Header **********************************/ if ( $tn == 'frontpage' && $cobrand[frontpage_header] == '0' ) { $skip_header = 1; } if ( $skip_header != 1 && $sh != 1 ) { if ( file_exists("$cobrand[tmpldir]/common/$lang/header.htm") ) { include("$cobrand[tmpldir]/common/$lang/header.htm"); } } // Cat Panel Header Must be Under Header if ( $call_cat_panel_header ) { showCatPanel('header'); } /*********************** CALLING NORMAL PHTM FILES **********************************/ // if ($link) { mysql_close ($link); } /*********************** DISPLAY TO BROWSER **********************************/ // Find Template Path $default_path = "$cobrand[tmpldir]/common/$lang"; if ( !ereg('/', $tn) ) { $template = "$default_path/".$tn; } else { $dir_array= explode("/", $tn); $count = count($dir_array); if ( $count == 1 ) { $subdir = $cobrand[tmpldir] . '/' . $dir_array[0]; } else { for ($i=0; $i<$count; $i++) { if ( $i == 0 ) { $subdir = $cobrand[tmpldir] . '/' . $dir_array[0]; } else { $subdir .= '/'.$dir_array[$i]; } } } $template = $subdir; } /*********************** Call Template **********************************/ $file = $template . $cobrand[tmplext]; // echo "template: $template, file: $file
"; $rc = file_exists ( $file ); if ( $rc != 1 ) { $file = "$default_path/frontpage" . $cobrand[tmplext]; } //echo "file: $file
"; include("$file"); //if ( $cobrand[diy] == 'wedding' ) { // include("$cobrand[webroot]/services/wedding/music.js"); //} /*********************** Call Footer **********************************/ if ( $cobrand[cat_panel_on_every_page] == 1 && !$cobrand[cat_panel_by_template_include] ) { showCatPanel('footer'); } if ( $skip_header != 1 && $sh != 1 ) { if ( file_exists("$cobrand[tmpldir]/common/$lang/footer.htm") ) { include("$cobrand[tmpldir]/common/$lang/footer.htm"); } } ?>