Example #1
0
$_REQUEST['quote'] = (int) $_REQUEST['quote'];
if (!$_REQUEST['id']) {
    die('missing thread-ID!');
}
$threadinfo = thread_info($_REQUEST['id']);
if (!$threadinfo['threadid'] || $threadinfo['del']) {
    message($apx->lang->get('MSG_THREADNOTEXIST'));
}
$foruminfo = forum_info($threadinfo['forumid']);
if (!$foruminfo['forumid']) {
    message($apx->lang->get('MSG_FORUMNOTEXIST'));
}
if (!forum_access_read($foruminfo)) {
    tmessage('noright', array(), false, false);
}
if (!forum_access_post($foruminfo, $threadinfo)) {
    tmessage('noright', array(), false, false);
}
check_forum_password($foruminfo);
////////////////////////////////////////////////////////////////////////////////////////// POST ERSTELLEN
//Vorschau generieren
if ($_POST['preview']) {
    $preview = $_POST['text'];
    if ($_POST['transform_links']) {
        $preview = transform_urls($preview);
    }
    $preview = forum_replace($preview, $_POST['allowcodes'], $_POST['allowsmilies']);
    $apx->tmpl->assign('PREVIEW', $preview);
} elseif ($_POST['send']) {
    //Captcha prüfen
    if ($set['forum']['captcha'] && !$user->info['userid']) {
Example #2
0
//Optionen
if ($res['userid']) {
    $apx->tmpl->assign('LINK_USERPOSTS', HTTPDIR . $set['forum']['directory'] . '/search.php?send=1&author=' . urlencode($res['username']));
    if (!$user->is_buddy($res['userid'])) {
        $apx->tmpl->assign('LINK_ADDBUDDY', mklink('user.php?action=addbuddy&id=' . $res['userid'], 'user,addbuddy,' . $res['userid'] . '.html'));
    }
}
$threadlink = mkrellink('thread.php?id=' . $threadinfo['threadid'], 'thread,' . $threadinfo['threadid'] . ',1' . urlformat($threadinfo['title']) . '.html');
$forumlink = mkrellink('forum.php?id=' . $foruminfo['forumid'], 'forum,' . $foruminfo['forumid'] . ',1' . urlformat($foruminfo['title']) . '.html');
$apx->tmpl->assign('THREADID', $threadinfo['threadid']);
$apx->tmpl->assign('THREAD_TITLE', replace($threadinfo['title']));
$apx->tmpl->assign('THREAD_PREFIX', forum_get_prefix($threadinfo['prefix']));
$apx->tmpl->assign('THREAD_LINK', $threadlink);
$apx->tmpl->assign('THREAD_DELETED', $threadinfo['del']);
$apx->tmpl->assign('FORUMID', $foruminfo['forumid']);
$apx->tmpl->assign('FORUM_TITLE', replace($foruminfo['title']));
$apx->tmpl->assign('FORUM_LINK', $forumlink);
$apx->tmpl->assign('POSTID', $postinfo['postid']);
$apx->tmpl->assign('RIGHT_POST', forum_access_post($foruminfo, $threadinfo));
$apx->tmpl->parse('post');
////////////////////////////////////////////////////////////////////////////////////////////////////////
$apx->tmpl->assign_static('STYLESHEET', compatible_hsc($foruminfo['stylesheet']));
$apx->tmpl->assign('PATH', forum_path($foruminfo, 1));
$apx->tmpl->assign('PATHEND', replace(iif($threadinfo['sticky'], $threadinfo['sticky_text'] . ': ') . $threadinfo['title']));
titlebar($threadinfo['title']);
////////////////////////////////////////////////////////////////////////////////////////////////////////
require 'lib/_end.php';
///////////////////////////////////////////////////////////////////////////
require '../lib/_end.php';
//////////////////////////////////////////////////////// SCRIPT BEENDEN ///
////////////////////////////////////////////////////////////////////////////////////////////////////////