$qry = db("UPDATE " . $db['vote_results'] . "\n SET `stimmen` = stimmen+1\n WHERE id = '" . intval($_POST['vote']) . "'"); $vid = "vid_" . $_GET['id'] . ""; $ins = db("INSERT INTO " . $db['ipcheck'] . "\n SET `ip` = '" . $userip . "',\n `what` = '" . $vid . "',\n `time` = '" . time() . "'"); $vid2 = "vid(" . $_GET['id'] . ")"; $ins2 = db("INSERT INTO " . $db['ipcheck'] . "\n SET `ip` = '" . $userip . "',\n `what` = '" . $vid2 . "',\n `time` = '" . time() . "'"); if (!isset($_GET['fajax'])) { $index = info(_vote_successful, "forum/?action=showthread&kid=" . $_POST['kid'] . "&id=" . $_POST['fid'] . ""); } } if (isset($userid)) { $cookie = $userid; } else { $cookie = "voted"; } } set_cookie($prev . "vid_" . $_GET['id'], $cookie); } if ($_GET['fajax'] == 1) { include_once basePath . '/inc/menu-functions/fvote.php'; header("Content-type: text/html; charset=utf-8"); echo fvote($_GET['id'], 1); exit; } break; } ## SETTINGS ## $time_end = generatetime(); $time = round($time_end - $time_start, 4); page($index, $title, $where, $time); ## OUTPUT BUFFER END ## gz_output();
$email = show(_emailicon_forum, array("email" => eMailAddr($_POST['email']))); if (empty($_POST['hp'])) { $hp = ""; } else { $hp = show(_hpicon_forum, array("hp" => links($_POST['hp']))); } } $qryw = db("SELECT s1.kid,s1.topic,s2.kattopic,s2.sid\n FROM " . $db['f_threads'] . " AS s1\n LEFT JOIN " . $db['f_skats'] . " AS s2\n ON s1.kid = s2.id\n WHERE s1.id = '" . intval($tID) . "'"); $getw = _fetch($qryw); $qrykat = db("SELECT name FROM " . $db['f_kats'] . "\n WHERE id = '" . $getw['sid'] . "'"); $kat = _fetch($qrykat); $wheres = show(_forum_post_where_preview, array("wherepost" => re($_POST['topic']), "wherekat" => re($getw['kattopic']), "mainkat" => re($kat['name']), "tid" => $_GET['id'], "kid" => $getw['kid'])); if (empty($get['vote'])) { $vote = ""; } else { $vote = '<tr><td>' . fvote($get['vote']) . '</td></tr>'; } if (!empty($_POST['question '])) { $vote = _forum_vote_preview; } else { $vote = ""; } $index = show($dir . "/forum_posts", array("head" => _forum_head, "where" => $wheres, "admin" => "", "class" => 'class="commentsRight"', "nick" => cleanautor($pUId, '', $_POST['nick'], $_POST['email']), "threadhead" => re($_POST['topic']), "titel" => $titel, "postnr" => "1", "pn" => $pn, "icq" => $icq, "hp" => $hp, "email" => $email, "posts" => $userposts, "text" => bbcode($_POST['eintrag'], 1) . $editedby, "status" => getrank($pUId), "avatar" => useravatar($pUId), "edited" => $get['edited'], "signatur" => $sig, "date" => _posted_by . date("d.m.y H:i", time()) . _uhr, "zitat" => _forum_zitat_preview, "onoff" => $onoff, "ip" => $userip . '<br />' . _only_for_admins, "top" => _topicon, "lpost" => $lpost, "lp" => "", "add" => "", "nav" => nav("", "", ""), "vote" => $vote, "f_abo" => "", "show" => $show)); echo '<table class="mainContent" cellspacing="1" style="margin-top:17px">' . $index . '</table>'; exit; } else { if ($_GET['do'] == 'editpost') { $qry = db("SELECT * FROM " . $db['f_posts'] . "\n WHERE id = '" . intval($_GET['id']) . "'"); $get = _fetch($qry); $get_datum = $get['date']; if ($get['reg'] == 0) {