include ("includes/config.php"); include ("funkcje/baza.php"); include ("funkcje/tools.php"); include ("funkcje/kategorie.php"); mysql_connect($host, $user, $pass); mysql_select_db($baza); if(isset($_GET['lang']) && in_array($_GET['lang'], array("en", "de"))) { $lang_prefix="_".$_GET['lang']; define("LANG", $_GET['lang']); } else { $lang_prefix=""; define("LANG", "pl"); } $include_page = false; if ( isset ($_GET['info_page']) && tep_db_get_one("select id from podstrony where id='{$_GET['info_page']}'") != false) { $page_info = tep_db_get_array("select nazwa$lang_prefix as nazwa, opis$lang_prefix as opis from podstrony where id='{$_GET['info_page']}'"); } //else { // if ( isset ($_GET['page']) && file_exists("pages/".$_GET['page'].".php")) { // $include_page = true; // } // else { // $page_info = tep_db_get_array("select nazwa$lang_prefix as nazwa, opis$lang_prefix as opis from podstrony order by id"); // } //} ?>