if (substr($_SERVER["REQUEST_URI"], 0, 10) == "/admin.php") { $admin = 1; $action = $_GET['action']; } else $admin = 0; // import_request_variables("GP"); $id = $_GET['id']; $q = $_GET['q']; ?>
, follow"> date_default_timezone_set("Europe/Prague"); $db_host = "mysql01"; $db_user = "0676_91ignis"; $db_pw = "zjHSR6uKJzV"; $db = "0676_ignisbrno"; /* $spojeni = MySQL_Connect("$db_host", "$db_user", "$db_pw"); if (!$spojeni) echo "CHYBA – nepodařilo se spojit s MySQL serverem!"; $sel_db = Mysql_Select_DB("$db", $spojeni); if (!$sel_db) echo "CHYBA – nepodařilo se vybrat správnou databázi!"; */ $link = mysqli_connect($db_host, $db_user, $db_pw, $db); if (!$link) { echo "Chyba: Nepodařilo se připojit k MySQL." . PHP_EOL; echo "Číslo chyby: " . mysqli_connect_errno() . PHP_EOL; echo "Detail chyby: " . mysqli_connect_error() . PHP_EOL; exit; } /* MySQL_Query("SET character_set_client=utf8"); MySQL_Query("SET collation_connection=utf8_czech_cs"); MySQL_Query("SET character_set_connection=utf8"); MySQL_Query("SET character_set_results=utf8"); */ mysqli_query($link, "SET character_set_client=utf8"); mysqli_query($link, "SET collation_connection=utf8_czech_cs"); mysqli_query($link, "SET character_set_connection=utf8"); mysqli_query($link, "SET character_set_results=utf8"); require_once 'texy.php'; $texy = new Texy(); $texy->headingModule->top = 2; $texy->headingModule->balancing = TexyHeadingModule::FIXED; $texy->mergeLines = FALSE; $texy->imageModule->root = 'obrazky/'; $texy->imageModule->leftClass = 'vlevo'; $texy->imageModule->rightClass = 'vpravo'; $texy->setOutputMode(Texy::HTML4_TRANSITIONAL); //$texy->setOutputMode(Texy::HTML5);//not supported if (!$id) $id = "domu"; else // $id = mysql_real_escape_string($id); $id = mysqli_real_escape_string($link, $id); include "category.php"; if ($cat) include "$cat.php"; else include "hlavni.php"; echo "
Jednadevadesátka – katolický chlapecký skautský oddíl