/* // TURN ON DISPLAY ERRORS AND WARNINGS ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); */ session_save_path("../"); // To moze ci zapchac server session_start(); $global_use_static = true; //Use static URLs $global_use_full_url = false; //Use http:// URLs $self_name = $_SERVER['SCRIPT_NAME']; $self_file = basename($self_name,".php"); $root ="."; if ($self_file == "index.php") $root ="."; else if (preg_match('/^st_([_0-9A-Za-z])+$/',$self_file))//static pages $root =".."; $GLOBALS["image_path"] = $root; ?> echo "\n"; ?>
/pic/style.css"> require_once $root."/bin/index_func.php"; include_once $root."/bin/db_operations.php"; $tmp_page_arr = array(); if (preg_match('/^st_([_0-9A-Za-z])+$/',$self_file)) { $page = preg_replace('/^st_/',"",$self_file); $tmp_page_arr = serviceMap_get_pageArr_by_page($page); if (count($tmp_page_arr) > 0) { $_GET["page"] = $page; } else { $_GET["page"] = ""; } } $globals = array(); //initialize params============================================= $omit_right_side = false; $keyWords_all = ""; $page_title = "Serwis Matematyczny"; $page_keywords = ""; $page_description = "Krzyżówki i łamigłówki matematyczne, testy interaktywne, animacje, matematycy starożytni, o liczbach, artykuły mat., scenariusze lekcji, fraktale, aforyzmy mat."; include $root."/bin/key_words_all.php"; $html = ""; //----------INCLUDE BODY PAGE--------------------- $page = $_GET["page"]; $lev = "0_0"; if (count($tmp_page_arr) > 0 && $page > "") { $lev = $tmp_page_arr["level"]; } else { $page = "main"; } if (preg_match("/^[_0-9A-Za-z]+$/",$lev)) $globals["levels"] = split("_",$lev); else { $globals["levels"][] = 0; $globals["levels"][] = 0; } $globals["page"] = $page; $path = $root."/pages/$page.php"; if (file_exists($path)) include $path; else //$html .="Strona $path nie została znaleziona."; $html .="Strona nie została znaleziona."; $page_body = $html; //reset $html = ""; if (!$page_keywords) $page_keywords = $keyWords_all; //============================================================================== ?> if (isset($page_robot_follow)) echo $page_robot_follow; else echo "";?>echo html_main_top(); ?> |
echo html_main_main(); ?> |
echo html_banner_viva();?> |
echo html_main_foot(); ?> |