prepare($q); $stmt->bind_param("i", $_REQUEST['lid']); $stmt->execute(); if ($stmt->num_rows > 0) $s_lid = $_REQUEST['lid']; $stmt->close(); } $xxx['lang'] = getmicrotime(); # strona domyslna //TODO: sparametryzowana strona domyślna if (!isId($_REQUEST['pid'])) $_REQUEST['pid'] = 1; $r_pid = $_REQUEST['pid']; $q = "SELECT pi_title, pi_description, pi_keywords, pt_name, l_cp, l_code, p_modPar, p_sitePar, p_fs, p_p_id, p_nt FROM pages, pageInfo, pageTypes, langs WHERE p_id = ? AND l_id = ? AND pi_visible = 1 AND p_pt_id = pt_id AND pi_p_id = p_id AND pi_l_id = l_id"; $stmt = $db->prepare($q); $stmt->bind_param("ii", $r_pid, $s_lid); $stmt->execute(); $stmt->bind_result($title, $description, $keywords, $modName, $codePage, $langCode, $par, $sitePar, $fs, $ppid, $nt); $stmt->fetch(); $stmt->close(); $xxx['main select'] = getmicrotime(); if (isset($sitePar)) { extract(unserialize($sitePar)); $s_root = $_SITE['root']; $s_menuImage = $_SITE['menuImage']; } $xxx['explode pars'] = getmicrotime(); #newsletter if (isId($_REQUEST['newsletter'])) { require("subscribe.php"); } $xxx['subscribe'] = getmicrotime(); $module = new $modName($r_pid,$par,$ppid); $xxx['create mod'] = getmicrotime(); $menu = new Menu($r_pid); $xxx['create menu'] = getmicrotime(); header('Content-type: text/html; charset='. $codePage); ?> .: Messalina - <?= $title ?> :. printHeader(); ?>
'; $menu->printMessalinaMenu(); echo '
'; //menuBox echo '
'; printf('
Odwiedziło nas
%d
osób
', $counter->hits); echo '
'; $module->printContent(); if (($browser->Name == "MSIE" && $browser->Version == '7.0') || $browser->Name != 'MSIE') { //
echo '
'; //contentBox echo '
'; } else { echo ''; //contentBox } } elseif (! $fs && $nt) { echo ''; //menuBox printf('
Odwiedziło nas
%d
osób
', $counter->hits); echo '
'; $module->printContent(); echo '
'; //noTopBox } elseif ($fs) { $module->printContent(); } $module->printOuterDiv(); ?>