?> <!-- Content --> <div id="content"> <!-- Article: here you'll find all content of site: - If maintenance is set to true, using tag or index.html?maintenance=..., maintenance page is included - Otherwise site page is included --> <div id="article"> <?php if (isMaintenance($maintenance)) { include LINK_MAINTENANCE; } else { if ($_GET[getLgFileText("CONTENT")] == getLgFileText("MAP")) { include LINK_MAP; } else { if ($_GET["content"] == ERROR_400) { include LINK_PAGE_ERR_400; } else { if ($_GET["content"] == ERROR_401) { include LINK_PAGE_ERR_401; } else { if ($_GET["content"] == ERROR_403) { include LINK_PAGE_ERR_403; } else { if ($_GET["content"] == ERROR_404) { include LINK_PAGE_ERR_404; } else { if ($_GET["content"] == ERROR_500) {
" title="<?php printLgFileText("SITE_NAME2"); ?> " rel="<?php printLgFileText("CAT_0"); ?> "> <?php printLgFileText("CAT_0"); ?> </a> | <a class="toolTips" href="<?php echo LINK_INDEX . getLgFileText("CONTENT") . "=" . getLgFileText("MAP"); ?> " title="<?php printLgFileText("SITE_NAME2"); ?> " rel="<?php printLgFileText("SITE_MAP"); ?> "> <?php printLgFileText("SITE_MAP"); ?> </a> | <a class="toolTips"
// GENERAL ////////////////////////////////////////////////////////////////// $link_website = 'http://localhost/Bilazea-template/'; $maintenance = false; $version = 1.0; // INIT SET & SESSION /////////////////////////////////////////////////////// $init = ini_set('session.use_trans_sid', '0'); session_start(); header('Content-Type: text/html; Charset=UTF-8'); // INCLUDE UTILS FUNCTIONS include './inc/utils.php'; // LANGUAGES setLanguage(); // DEFINE STUFF ///////////////////////////////////////////////////////////// define(ST_EMPTY, ""); // DOCTYPE define(PROLOG_XML, '<?xml version="1.0"?>'); //define(PROLOG_DOCTYPE5, '<!DOCTYPE html>'); define(PROLOG_DOCTYPE, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'); define(PROLOG_DOCTYPE_IE6, '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ' . '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'); // INCLUDE LINKS include './inc/links.php'; // META define(META_CONTENT, '<meta http-equiv="Content-Type" ' . 'content="text/html; charset=utf-8;" />'); define(META_CONTENT_ROBOT, '<meta content="index, follow" name="robots" />'); setMetaDescAndKwords(); define(META_LINK_RSS, '<link title="RSS 2.0" type="application/rss+xml" ' . 'rel="alternate" href="index.php?' . getLgFileText("CONTENT") . '=rss" />'); define(META_LINK_ATOM, '<link title="Atom 1.0" type="application/atom+xml" ' . 'rel="alternate" href="/index.php?' . getLgFileText("CONTENT") . '=atom" />'); define(META_SITEMAP, '<meta name="google-site-verification" ' . 'content="8oQiVgFS7ly7oILNKFmVmGgTW7weDa9rSNtRmTv8lrc" />'); ///////////////////////////////////////////////////////////////////////////// // LAUNCH SITE include LINK_TPL_SITE;
/** * Build and print map */ function buildAndPrintMap() { $mapCnt = "<ul>"; // Get language file $lang_array = parse_ini_file(LINK_LANG); // Get language array keys $lang_array_keys = array_keys($lang_array); // Number of categories $nbCat2 = count($lang_array_keys); $cat = ""; $cat2 = "default"; // Loop on number of keys for ($j = 0; $j < $nbCat2; $j++) { // Get only categories if (substr($lang_array_keys[$j], 0, 3) == "CAT") { // Get category, trimed and where spaces are replaced by dashes $lineL = $lang_array_keys[$j]; // Main categories if (strlen($lineL) == 5) { if ($cat !== $lineL) { if ($cat2 == "") { $mapCnt .= '</ul>'; } $mapCnt .= '</li>'; } $mapCnt .= '<li><a class="toolTips" title="' . getLgFileText("SITE_NAME2") . '<br />> ' . getLgFileText($lineL) . '" rel="' . getLgFileText($lineL) . '" href="' . constant("LINK_{$lineL}") . '">' . getLgFileText($lineL) . '</a>'; $cat = $lineL; $cat2 = $lineL; } else { if (strlen($lineL) == 7) { if (substr($lineL, 0, 5) == $cat2) { $mapCnt .= '<ul>'; $cat2 = ""; } $mapCnt .= '<li><a class="toolTips" title="' . getLgFileText("SITE_NAME2") . '<br />> ' . getLgFileText($lineL) . '" rel="' . getLgFileText($lineL) . '" href="' . constant("LINK_{$lineL}") . '">' . getLgFileText($lineL) . '</a></li>'; } } } } $mapCnt .= "</ul>"; echo $mapCnt; }