if ($_NOTBAR) { if (!file_exists(SK_DIR . "/guestbook.php")) { if (isset($a) && $a == "admin") { $MDL->LoadAdminPage("{$p}"); return; } include "config.php"; global $side; $guest = new GuestBook($DIRS["guestbook_files"], $DIRS["guestbook_predir"], $GV["guestbook_premoderation"]); $guest->answ_item_sep = $GV["sep3"]; $guest->answ_separator = $GV["sep1"]; $guest->item_separator = $GV["sep2"]; if (!isset($p_idx)) { $p_idx = 1; } $guest->set_curr_page($p_idx); if (isset($add) && $add == 1 && (!isset($side) || $side == 0)) { $add = 0; $time = norm_date(time()); $name1 = $FLTR->DirectProcessString($name); $email = $FLTR->DirectProcessString($email); $url = $FLTR->DirectProcessString($url); $text = $FLTR->DirectProcessText($text); if (check_auth()) { $name1 = $CURRENT_USER["id"]; $email = $CURRENT_USER["email"]; $url = $CURRENT_USER["url"]; } $error = ""; if (strlen($name1) < $GV["guestbook_minnamelen"]) { $error .= "<br><b>Ошибка:</b> имя не может быть короче " . $GV["guestbook_minnamelen"] . " символов!<br>";