$get_hp = $_POST['hp']; $get_email = $_POST['email']; $get_nick = $_POST['nick']; if (!$regCheck) { if ($get_hp) { $hp = show(_hpicon_forum, array("hp" => links($get_hp))); } if ($get_email) { $email = '<br />' . show(_emailicon_forum, array("email" => eMailAddr($get_email))); } $onoff = ""; $avatar = ""; $nick = show(_link_mailto, array("nick" => re($get_nick), "email" => $get_email)); } else { $hp = ""; $email = ""; $onoff = onlinecheck($get_userid); $nick = cleanautor($get_userid); } $titel = show(_eintrag_titel, array("postid" => $get_id, "datum" => date("d.m.Y", $get_date), "zeit" => date("H:i", $get_date) . _uhr, "edit" => $edit, "delete" => $delete)); $index = show("page/comments_show", array("titel" => $titel, "comment" => bbcode($_POST['comment'], 1), "nick" => $nick, "editby" => bbcode($editedby, 1), "email" => $email, "hp" => $hp, "avatar" => useravatar($get_userid), "onoff" => $onoff, "rank" => getrank($get_userid), "ip" => $userip . _only_for_admins)); echo '<table class="mainContent" cellspacing="1">' . $index . '</table>'; exit; break; } ## SETTINGS ## $time_end = generatetime(); $time = round($time_end - $time_start, 4); page($index, $title, $where, $time); ## OUTPUT BUFFER END ## gz_output();
$index = info(_gb_comment_added, "../gb/"); } } break; case 'preview': header("Content-type: text/html; charset=utf-8"); if (isset($_GET['edit']) && !empty($_GET['edit'])) { $qry = db("SELECT * FROM " . $db['gb'] . "\n WHERE id = '" . intval($_GET['edit']) . "'"); $get = _fetch($qry); $get_id = '?'; $get_userid = $get['reg']; $get_date = $get['datum']; if ($get['reg'] == 0) { $regCheck = true; } $editby = show(_edited_by, array("autor" => cleanautor($userid), "time" => date("d.m.Y H:i", time()) . _uhr)); } else { $get_id = cnt($db['gb']) + 1; $get_userid = $userid; $get_date = time(); if ($chkMe == 'unlogged') { $regCheck = true; } } $get_hp = $_POST['hp']; $get_email = $_POST['email']; $get_nick = $_POST['nick']; if ($get_hp) { $gbhp = show(_hpicon, array("hp" => links($get_hp))); } else { $gbhp = "";
$hp = ""; } else { $hp = show(_hpicon_forum, array("hp" => $getu['hp'])); } if (data($pUId, "signatur")) { $sig = _sig . bbcode(data($pUId, "signatur"), 1); } else { $sig = ""; } } else { $icq = ""; $pn = ""; $email = show(_emailicon_forum, array("email" => eMailAddr($_POST['email']))); if (empty($_POST['hp'])) { $hp = ""; } else { $hp = show(_hpicon_forum, array("hp" => links($_POST['hp']))); } } $index = show($dir . "/forum_posts_show", array("nick" => cleanautor($pUId, '', $_POST['nick'], $_POST['email']), "postnr" => "#" . ($i + ($page - 1) * $maxfposts), "p" => $i + ($page - 1) * $maxfposts, "class" => 'class="commentsRight"', "text" => bbcode($_POST['eintrag'], 1) . $editedby, "pn" => $pn, "icq" => $icq, "hp" => $hp, "email" => $email, "status" => getrank($pUId), "avatar" => useravatar($pUId), "ip" => $userip . '<br />' . _only_for_admins, "edited" => "", "posts" => $userposts, "titel" => $titel, "signatur" => $sig, "zitat" => _forum_zitat_preview, "onoff" => $onoff, "p" => "")); echo '<table class="mainContent" cellspacing="1" style="margin-top:17px">' . $index . '</table>'; exit; } break; } ## SETTINGS ## $time_end = generatetime(); $time = round($time_end - $time_start, 4); page($index, $title, $where, $time); ## OUTPUT BUFFER END ## gz_output();