include 'config/config.php'; include 'func.php'; define("DEBUG", false); if (preg_match("/testotesto/i", $_SERVER["REQUEST_URI"])) { sendadminmail("Param leak " . $_SERVER["REQUEST_URI"] . "
" . print_r(apache_request_headers(), true) . ""); } $lng = turva($_GET['lng']); $pagename = turva($_GET['pname']); $contentname = turva($_GET['cname']); $dz = turva($_GET['dz']); $dat = turva($_GET['dat']); $dest = turva($_GET['loc']); $l = 0; $lurl = $lurl2 = ""; if (($lng == "ru") || (isset($_GET['rus'])) || ($_GET["LANGUAGE"] == "rus")) { $l = 1; $lurl = "ru/"; $lurl2 = "&rus"; } $notes = array(); $teznotes = array(); if ($pagename == "404") $page404donotrendercontent = true; if ($pagename == "paring") validateSendRequest(); if ($page404donotrendercontent) { // 404 bad bot no SQL } else { // SQL $query_rsSet = "SELECT * FROM settings"; $rsSet = db_exec($query_rsSet); while ($row_rsSet = mysqli_fetch_assoc($rsSet)) { $settings[$row_rsSet['setting']] = $row_rsSet['value']; } mysqli_free_result($rsSet); } include 'lang.php'; if ($page404donotrendercontent) { // 404 bad bot no SQL } else { sqlGetDestinations(); $query_rsCom = "SELECT * FROM hotelcompare"; $rsCom = db_exec($query_rsCom); while ($rowCom = mysqli_fetch_assoc($rsCom)) { $hotelcompare[] = $rowCom; } mysqli_free_result($rsCom); sqlGetNotes(); } if ($contentname) { $dest = loc2id($contentname); } if ($dest) { $dep = $destinations[$dest][2]; $res = $destinations[$dest][3]; } if (($contentname == "SvetLana") || ($_COOKIE['DLF_DATA']) || (TESTREZIM)) { setcookie('DLF_DATA', TRUE, time() + 30 * 86400, "/"); $base->showhidden = TRUE; } if ($_COOKIE['DLF_SHOW_RIGA'] != "0") { // != "0" - riga on by default setcookie('DLF_SHOW_RIGA', TRUE, time() + 1 * 86400, "/"); $base->showriga = TRUE; } if ($_COOKIE['DLF_SHOW_REG'] != "0") { //setcookie('DLF_SHOW_REG', TRUE, time() + 1 * 86400, "/"); //$base->showhelsinki = TRUE; } $display_new = true; // display "new" when there are new files/dirs $display_updated = false; // display "updated" when there are updated files/dirs $new_time_secs = 60 * 60 * 24 * 2; // "new" and "updated" deadline, 14 days $base->st_time = microtime(true); $xmltables = array( 1 => "xml_offers_ee", 2 => "xml_offers_lv", //3 => "xml_offers_rg", ); memusage("init"); //query modifiers, see offers_right.php if (!is_numeric($dat)) $dat = ""; if ($dat && $dat <> "all" && is_numeric($dat)) { //$dat1 = substr($dat, 0, 8); //$dat2 = substr($dat, 8); //if (TESTREZIM) { // var_dump($dat1); // var_dump($dat2); //} //$dat = $dat1 . "00"; $filtersql = date("Y-m-d", $dat); $sql_dat = "AND `date`='$filtersql' "; $prefix_dat = $s[47][$l]; $offerdate = date("d.m.Y", $dat); if ($filtersql < date("Y-m-d")) { header("HTTP/1.1 410 Gone"); } } if ($dep) { $sql_dep = "AND `departure`='$dep' "; //???? } if ($res) { $sql_res = "AND `resort`='$res' "; //???? } if ($dz && strlen($dz) <= 2) { $sql_dz = "AND `period`='" . (int)substr($dz, -2) . "' "; } ?>
| include "otsireisihead.php"; ?> |
|
if (($pid == 10) || ($pid == 11) || ($pid == 12)) { ?>
Warning: Undefined variable $query_substr in /home/delfiine/chatgpt/news.php on line 5 Fatal error: Uncaught Error: Call to undefined function db_exec() in /home/delfiine/chatgpt/news.php:6 Stack trace: #0 /home/delfiine/chatgpt/index.php(374): include() #1 {main} thrown in /home/delfiine/chatgpt/news.php on line 6 |