'lps.ru', 'page' => $_GET['page'], 'categoryEnName' => $_GET['section'], 'cacheFile' => 'MEXS.cache.txt', 'cacheTime' => 600, 'pagesFormat' => "%b..%e", 'pagesFormatFirst' => "%b..%e", 'pagesSelected' => '%b..%e', 'pagesSeparator' => '|', 'pagesAlways' => 0)); # if section selected if ($_GET['section']){ $h1 = $mexs->getCategoryRuNameByEnName($_GET['section']); $links = $mexs->getLinks(); # you can use getLinksHash() method instead of getLinks() $linksCount = count($links); for ($i=0;$i<$linksCount;$i++){ # if image defined if ($links[$i][3]) $result .= " ". $links[$i][2]."

"; # if image not defined else $result .= $links[$i][2]."

"; } $result = "
".$result."
"; $navigation = " » Наши партнеры » ".$h1; $pages = $mexs->getPages(); } # if nothing selected else{ $h1 = "Наши партнеры:"; $categories = $mexs->getCategories(); # you can use getCategoriesHash() method instead of getCategories() $categoriesCount = count($categories); for ($i=0;$i<$categoriesCount;$i++) $result .= "".$categories[$i][2]." (".$categories[$i][3].")
"; $navigation = " » Наши партнеры"; } # final time && total time counting $time_end = microtime(true); $time = $time_end - $time_start; echo "Главная".$navigation."

"; echo $result; if ($_GET['section']) echo "
Страницы: ".$pages."
"; require ("inc/bottom.inc"); ?>