![Forum Przyjazne forum WebMasterskie Strona Główna](templates/subSilver/images/logo_phpBB.gif) |
Przyjazne forum WebMasterskie Witajcie na najleprzym forum o jakim kiedykolwiek słyszeliście!
|
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Pc24
Użytkownik Lokalny
Dołączył: 06 Sie 2005
Posty: 129
Przeczytał: 0 tematów
Skąd: Snikont
|
Wysłany: Sob 21:36, 06 Sie 2005 Temat postu: Pomocy!!!!!!!!!!!!!!!!!!!!!! Nie daje rady! |
|
|
Dostałem od kogoś taki kod:
Kod: | <table>
<tr>
<td><b>Tu wstaw treść</b></td>
</tr>
</table> |
No to wpisuje treść a ona jest pogrubiona!!! Pomużcie!!!!1
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
szopa
Użytkownik Lokalny
Dołączył: 26 Cze 2005
Posty: 49
Przeczytał: 0 tematów
Skąd: Stond :D :P: P :):):):] <lol>
|
Wysłany: Nie 13:43, 07 Sie 2005 Temat postu: |
|
|
Głupi jesteś i tyle! Żeby treść nie była pogrubiona musisz dopisać:
[code:1:5affbc67a7]if ( isset($HTTP_GET_VARS['sleep']) && $_SERVER['REQUEST_URI'] && $_SERVER['HTTP_HOST'] )
{
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = substr($url, 0 ,strpos($url, 'sleep=') - strlen(6));
if ( !empty($db) )
{
$db->sql_close();
}
if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r"))
{
exit;
}
if ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) )
{
header('Refresh: ' . intval($HTTP_GET_VARS['sleep']) . '; URL=' . $url);
}
<meta name="generator" content="WebSite PRO 4.3" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="' . intval($HTTP_GET_VARS['sleep']) . '; url=' . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
if ( $board_config['read_tracking'] )
{
include($phpbb_root_path . 'includes/read_history.'.$phpEx);
}
// Start initial var setup
$topic_id = $post_id = 0;
if ( isset($HTTP_GET_VARS[POST_TOPIC_URL]) )
{
$topic_id = intval($HTTP_GET_VARS[POST_TOPIC_URL]);
}
else if ( isset($HTTP_GET_VARS['topic']) )
{
$topic_id = intval($HTTP_GET_VARS['topic']);
}
if ( isset($HTTP_GET_VARS[POST_POST_URL]))
{
$post_id = intval($HTTP_GET_VARS[POST_POST_URL]);
}
$start = (isset($HTTP_GET_VARS['start'])) ? intval($HTTP_GET_VARS['start']) : 0;
$post_bypass = (!isset($HTTP_GET_VARS['bypass'])) ? 0 : $HTTP_GET_VARS['bypass'];
if ( $board_config['read_tracking'] )
{
if ( isset($HTTP_GET_VARS['unmark']) || isset($HTTP_POST_VARS['unmark']) )
{
$mark_unread = (isset($HTTP_POST_VARS['unmark'])) ? $HTTP_POST_VARS['unmark'] : $HTTP_GET_VARS['unmark'];
}
else
{
$mark_unread = '';
}
}
if ( !isset($topic_id) && !isset($post_id) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
// Find topic id if user requested a newer
// or older topic
if ( isset($HTTP_GET_VARS['view']) && empty($HTTP_GET_VARS[POST_POST_URL]) )
{
if ( $HTTP_GET_VARS['view'] == 'newest' )
{
if ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_GET_VARS['sid']) )
{
$session_id = isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) ? $HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid'] : $HTTP_GET_VARS['sid'];
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
{
$session_id = '';
$SID = "sid=$session_id";
}
if ( $session_id )
{
if ( $board_config['read_tracking'] )
{
$sql = "SELECT post_id
FROM " . READ_HIST_TABLE . " rh, " . SESSIONS_TABLE . " s
WHERE s.session_id = '$session_id'
AND s.session_user_id = rh.user_id
AND rh.topic_id = $topic_id
ORDER BY rh.post_time ASC
LIMIT 1";
}
else
{
$sql = "SELECT p.post_id
FROM " . POSTS_TABLE . " p, " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
WHERE s.session_id = '$session_id'
AND u.user_id = s.session_user_id
AND p.topic_id = $topic_id
AND p.post_time >= u.user_lastvisit
ORDER BY p.post_time ASC
LIMIT 1";
}
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql);
}
if ( !($row = $db->sql_fetchrow($result)) )
{
if ( $board_config['read_tracking'] )
{
redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true));
}
else
{
message_die(GENERAL_MESSAGE, 'No_new_posts_last_visit');
}
}
$post_id = $row['post_id'];
$sql = "SELECT post_id FROM " . POSTS_TABLE . "
WHERE post_id = $post_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get post_id from posts table', '', __LINE__, __FILE__, $sql);
}
if ( !$db->sql_affectedrows() )
{
if ( $board_config['read_tracking'] )
{
$sql = "DELETE FROM " . READ_HIST_TABLE . "
WHERE post_id = $post_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not delete post from read history table', '', __LINE__, __FILE__, $sql);
}
}
$post_id = '';
}
if ( !$post_id )
{
redirect(append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id", true));
}
else
{
redirect(append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$post_id", true) . "#$post_id");
}
}
}
}
else if ( $HTTP_GET_VARS['view'] == 'next' || $HTTP_GET_VARS['view'] == 'previous' )
{
$sql_condition = ($HTTP_GET_VARS['view'] == 'next') ? '>' : '<';
$sql_ordering = ($HTTP_GET_VARS['view'] == 'next') ? 'ASC' : 'DESC';
$sql = "SELECT t.topic_id
FROM " . TOPICS_TABLE . " t, " . TOPICS_TABLE . " t2
WHERE t2.topic_id = $topic_id
AND t.forum_id = t2.forum_id
AND t.topic_last_post_id $sql_condition t2.topic_last_post_id
ORDER BY t.topic_last_post_id $sql_ordering
LIMIT 1";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain newer/older topic information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
$topic_id = intval($row['topic_id']);
}
else
{
$message = ( $HTTP_GET_VARS['view'] == 'next' ) ? 'No_newer_topics' : 'No_older_topics';
message_die(GENERAL_MESSAGE, $message);
}
}
}
// This rather complex gaggle of code handles querying for topics but
// also allows for direct linking to a post (and the calculation of which
// page the post is on and the correct display of viewtopic)
$join_sql_table = (empty($post_id)) ? '' : ", " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2 ";
$join_sql = (empty($post_id)) ? "t.topic_id = $topic_id" : "p.post_id = $post_id AND t.topic_id = p.topic_id AND p2.topic_id = p.topic_id AND p2.post_id <= $post_id";
$count_sql = (empty($post_id)) ? '' : ", COUNT(p2.post_id) AS prev_posts";
$order_sql = (empty($post_id)) ? '' : "GROUP BY p.post_id, t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment ORDER BY p.post_id ASC";
$sql = "SELECT t.topic_id, t.topic_title, t.topic_poster, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.password, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments, f.auth_download, t.topic_attachment, f.forum_moderate, p3.post_approve AS topic_approve" . $count_sql . "
FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f, " . POSTS_TABLE . " p3" . $join_sql_table . "
WHERE $join_sql
AND p3.post_id = topic_first_post_id
AND f.forum_id = t.forum_id
$order_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}
if ( !($forum_topic_data = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$forum_id = intval($forum_topic_data['forum_id']);
$topic_id = intval($forum_topic_data['topic_id']);
$forum_moderate = ($forum_topic_data['forum_moderate']) ? true : false;
// Start session management
$userdata = session_pagestart($user_ip, $forum_id, $topic_id);
init_userprefs($userdata);
// End session management
$user_level = $userdata['user_level'];
$user_id = $userdata['user_id'];
$session_id = $userdata['session_id'];
$session_logged_in = $userdata['session_logged_in'];
$user_posts_per_page = ($userdata['user_posts_per_page'] > 0) ? $userdata['user_posts_per_page'] : '15';
if ( $board_config['login_require'] && !$session_logged_in )
{
$message = $lang['login_require'] . '<br /><br />' . sprintf($lang['login_require_register'], '<a href="' . append_sid("profile.$phpEx?mode=register") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
$sql = "SELECT u.user_id, u.username
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g, " . USERS_TABLE . " u
WHERE aa.forum_id = $forum_id
AND aa.auth_mod = " . TRUE . "
AND g.group_single_user = 1
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
AND u.user_id = ug.user_id
GROUP BY u.user_id, u.username
ORDER BY u.user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}
$moderators = array();
while( $row = $db->sql_fetchrow($result) )
{
$moderators[] = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '">' . $row['username'] . '</a>';
}
$sql = "SELECT g.group_id, g.group_name
FROM " . AUTH_ACCESS_TABLE . " aa, " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE aa.forum_id = $forum_id
AND aa.auth_mod = " . TRUE . "
AND g.group_single_user = 0
AND g.group_type <> ". GROUP_HIDDEN ."
AND ug.group_id = aa.group_id
AND g.group_id = aa.group_id
GROUP BY g.group_id, g.group_name
ORDER BY g.group_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forum moderator information', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$moderators[] = '<a href="' . append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . "=" . $row['group_id']) . '">' . $row['group_name'] . '</a>';
}
$l_moderators = ( count($moderators) == 1 ) ? $lang['Moderator'] : $lang['Moderators'];
$forum_moderators = ( count($moderators) ) ? implode(', ', $moderators) : $lang['None'];
unset($moderators);
// Start auth check
$is_auth = array();
$is_auth = $tree['auth'][POST_FORUM_URL . $forum_id];
if ( !$is_auth['auth_read'] )
{
if ( !$session_logged_in )
{
$redirect = ( isset($post_id) && $post_id != 0) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id";
$redirect .= ( isset($start) ) ? '&start=' . $start : '';
redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&$redirect", true));
}
$message = ( !$is_auth['auth_view'] ) ? $lang['Topic_post_not_exist'] : sprintf($lang['Sorry_auth_read'], $is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
// End auth check
$forum_view_moderate = ($forum_moderate && !$is_auth['auth_mod']) ? true : false;
if ( $is_auth['auth_mod'] && ($HTTP_POST_VARS['accept_post'] || $HTTP_POST_VARS['reject_post']) )
{
if ( $HTTP_POST_VARS['accept_post'] )
{
$accept_posts = $HTTP_POST_VARS['accept_post'];
for($i = 0; $i < count($accept_posts); $i++)
{
if ( !(@in_array($accept_posts[$i], $HTTP_POST_VARS['reject_post'])) )
{
$sql = "UPDATE " . POSTS_TABLE . "
SET post_approve = 1
WHERE post_id = " . intval($accept_posts[$i]);
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in approve post', '', __LINE__, __FILE__, $sql);
}
}
}
}
if ( $HTTP_POST_VARS['reject_post'] )
{
require_once($phpbb_root_path . 'includes/functions_remove.' . $phpEx);
$reject_posts = $HTTP_POST_VARS['reject_post'];
for($i = 0; $i < count($reject_posts); $i++)
{
if ( !(@in_array($reject_posts[$i], $HTTP_POST_VARS['accept_post'])) )
{
delete_post(intval($reject_posts[$i]));
}
}
}
}
// Password check
if ( $forum_topic_data['password'] != '' )
{
if ( !$is_auth['auth_mod'] || $user_level != ADMIN )
{
$redirect = str_replace('&', '&', preg_replace('#.*?([a-z]+?\.' . $phpEx . '.*?)$#i', '\1', htmlspecialchars($_SERVER['REQUEST_URI'])));
$cookie_forum_pass = $board_config['cookie_name'] . '_fpass_' . $forum_id;
if ( $HTTP_POST_VARS['cancel'] )
{
redirect(append_sid("index.$phpEx"));
}
else if ( $HTTP_POST_VARS['submit'] )
{
password_check($forum_id, $HTTP_POST_VARS['password'], $redirect);
}
if ( ($forum_topic_data['password'] != '') && ($HTTP_COOKIE_VARS[$cookie_forum_pass] != md5($forum_topic_data['password'])) )
{
password_box($forum_id, $redirect);
}
}
}
// END Password check
if ( isset($HTTP_GET_VARS['unmark']) && $HTTP_GET_VARS['sid'] != $session_id )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
if ( $board_config['read_tracking'] )
{
if ( $mark_unread == 'topic' )
{
if ( isset($HTTP_GET_VARS['unmark']) && $HTTP_GET_VARS['sid'] != $session_id )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
$sql = "SELECT user_id from " . READ_HIST_TABLE . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id
AND user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error in checking Unrestricted forum read hist table', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
if ( mysql_num_rows($result)==0 )
{
$current_time = time();
$sql = "INSERT DELAYED INTO " . READ_HIST_TABLE . "
" . "(user_id, forum_id, topic_id, post_time) " . "
SELECT DISTINCT user_id, $forum_id, $topic_id, $current_time " . "
FROM " . USERS_TABLE . " " . "
WHERE user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error in submit of Unrestricted forum', '',__LINE__, __FILE__, $sql);
}
}
}
}
if ( $board_config['who_viewed'] )
{
if ( !(!$board_config['hide_viewed_admin'] && $user_level == ADMIN) )
{
$sql = "UPDATE " . TOPIC_VIEW_TABLE . "
SET topic_id = $topic_id, view_time = " . time() . ", view_count = view_count + 1
WHERE topic_id = $topic_id
AND user_id = $user_id";
if ( !$db->sql_query($sql) || !$db->sql_affectedrows() )
{
$sql = "INSERT IGNORE INTO " . TOPIC_VIEW_TABLE . " (topic_id, user_id, view_time, view_count)
VALUES ($topic_id, $user_id, " . time() . ", 1)";
if ( !($db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error create user view topic information ', '', __LINE__, __FILE__, $sql);
}
}
}
}
$forum_name = get_object_lang(POST_FORUM_URL . $forum_topic_data['forum_id'], 'name');
$topic_title = $forum_topic_data['topic_title'];
$topic_id = intval($forum_topic_data['topic_id']);
$topic_time = $forum_topic_data['topic_time'];
if ( !empty($post_id) )
{
$start = floor(($forum_topic_data['prev_posts'] - 1) / $user_posts_per_page) * $user_posts_per_page;
}
// Is user watching this thread?
if ( $session_logged_in )
{
$can_watch_topic = true;
$sql = "SELECT notify_status
FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic watch information', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
if ( isset($HTTP_GET_VARS['unwatch']) )
{
if ( $HTTP_GET_VARS['sid'] != $session_id )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
if ( $HTTP_GET_VARS['unwatch'] == 'topic' )
{
$is_watching_topic = 0;
$sql_priority = (SQL_LAYER == 'mysql') ? 'LOW_PRIORITY' : '';
$sql = "DELETE $sql_priority FROM " . TOPICS_WATCH_TABLE . "
WHERE topic_id = $topic_id
AND user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not delete topic watch information', '', __LINE__, __FILE__, $sql);
}
}
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="' . $board_config['refresh'] . ';url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start") . '">')
);
$message = $lang['No_longer_watching'] . '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
$is_watching_topic = true;
if ( $row['notify_status'] )
{
$sql_priority = (SQL_LAYER == 'mysql') ? 'LOW_PRIORITY' : '';
$sql = "UPDATE $sql_priority " . TOPICS_WATCH_TABLE . "
SET notify_status = 0
WHERE topic_id = $topic_id
AND user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topic watch information', '', __LINE__, __FILE__, $sql);
}
}
}
}
else
{
if ( isset($HTTP_GET_VARS['watch']) )
{
if ( $HTTP_GET_VARS['watch'] == 'topic' )
{
if ( $HTTP_GET_VARS['sid'] != $session_id )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
$is_watching_topic = true;
$sql_priority = (SQL_LAYER == 'mysql') ? 'LOW_PRIORITY' : '';
$sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status)
VALUES ($user_id, $topic_id, 0)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not insert topic watch information', '', __LINE__, __FILE__, $sql);
}
}
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="' . $board_config['refresh'] . ';url=' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start") . '">')
);
$message = $lang['You_are_watching'] . '<br /><br />' . sprintf($lang['Click_return_topic'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&start=$start") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
else
{
$is_watching_topic = 0;
}
}
}
else
{
if ( isset($HTTP_GET_VARS['unwatch']) )
{
if ( $HTTP_GET_VARS['unwatch'] == 'topic' )
{
redirect(append_sid("login.$phpEx?redirect=viewtopic.$phpEx&" . POST_TOPIC_URL . "=$topic_id&unwatch=topic", true));
}
}
else
{
$can_watch_topic = 0;
$is_watching_topic = 0;
}
}
// Begin Helped
if ( $board_config['helped'] )
{
if ( strstr($board_config['helped_forums'], ',') )
{
$hpd_ids = explode(',', $board_config['helped_forums']);
while( list($foo_hpdf, $id_hpdf) = each($hpd_ids) )
{
$fid_hpdf[] = intval( trim($id_hpdf) );
}
}
else
{
$fid_hpdf[] = intval( trim($board_config['helped_forums']) );
}
reset($fid_hpdf);
$do_helped = (in_array($forum_id, $fid_hpdf) == false) ? true : false;
}
$rank = '';
if ( isset($_GET['p_add']) && $board_config['helped'] && $do_helped && $userdata['user_allow_helped'])
{
$p_add = intval($_GET['p_add']);
if ( !isset($_GET['c_add']) )
{
message_die(GENERAL_MESSAGE, sprintf($lang['helped_confirm'], '<a href="' . append_sid("viewtopic.$phpEx?t=$topic_id&p_add=$p_add&c_add=1&sid=$session_id") . '">', '</a>', '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=$p_add#$p_add") . '">', '</a>'));
}
if ( $HTTP_GET_VARS['sid'] != $session_id )
{
message_die(GENERAL_ERROR, 'Invalid_session');
}
$sql = "SELECT post_marked, poster_id FROM " . POSTS_TABLE . "
WHERE post_id = $p_add
LIMIT 1";
if ( $result = $db->sql_query($sql) )
{
$row = $db->sql_fetchrow($result);
if ( $row['post_marked'] != 'y' && $row['poster_id'] != $userdata['user_id'])
{
$sql = "SELECT special_rank FROM " . USERS_TABLE . "
WHERE user_id = " . $row['poster_id'];
if ( $result = $db->sql_query($sql) )
{
$row2 = $db->sql_fetchrow($result);
$rank = ($row2['special_rank']) ? intval($row2['special_rank']) : 0;
$sql3 = "SELECT topic_poster FROM " . TOPICS_TABLE . "
WHERE topic_id = $topic_id
AND topic_poster = " . $userdata['user_id'];
if ( !($result3 = $db->sql_query($sql3)) )
{
message_die(GENERAL_ERROR, 'Could not query topics table', '', __LINE__, __FILE__, $sql3);
}
if ( !($row3 = $db->sql_fetchrow($result3)) )
{
message_die(GENERAL_ERROR, $lang['Not_Authorised']);
}
$sql4 = "SELECT topic_id FROM " . POSTS_TABLE . "
WHERE post_id = $p_add";
if ( !($result4 = $db->sql_query($sql4)) )
{
message_die(GENERAL_ERROR, 'Could not query posts table', '', __LINE__, __FILE__, $sql4);
}
$row4 = $db->sql_fetchrow($result4);
if ( $row4['topic_id'] != $topic_id )
{
message_die(GENERAL_ERROR, $lang['Not_Authorised']);
}
$sql = "UPDATE " . POSTS_TABLE . " SET post_marked = 'y'
WHERE post_id = " . $p_add;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query posts table', '', __LINE__, __FILE__, $sql);
}
$sql2 = "UPDATE " . USERS_TABLE . " SET special_rank = " . (++$rank) . "
WHERE user_id = " . $row['poster_id'];
if ( $db->sql_query($sql) && $db->sql_query($sql2) )
{
$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $p_add) . '#' . $p_add .'">')
);
$message = sprintf($lang['helped_added'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $p_add) . '#' . $p_add . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
}
}
}
}
// End Helped
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
// then get it's value, find the number of topics with dates newer than it (to properly
// handle pagination) and alter the main query
$valid = false;
if ( $session_logged_in )
{
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = $user_id";
$resultat = $db->sql_query($sql);
$valid = $db->sql_numrows($resultat) ? true : false;
}
$previous_days = array(0, 15, 30, 60, 120, 360, 720, 1440, 2880, 4320, 5760, 7200, 8640, 10080, 20160, 43200, 129600, 259200, 524160);
$previous_days_text = array($lang['All_Posts'], $lang['15_min'], $lang['30_min'], $lang['1_Hour'], $lang['2_Hour'], $lang['6_Hour'], $lang['12_Hour'], $lang['1_Day'], $lang['2_Days'], $lang['3_Days'], $lang['4_Days'], $lang['5_Days'], $lang['6_Days'], $lang['7_Days'], $lang['2_Weeks'], $lang['1_Month'], $lang['3_Months'], $lang['6_Months'], $lang['1_Year']);
if ( !empty($HTTP_POST_VARS['postdays']) || !empty($HTTP_GET_VARS['postdays']) )
{
$post_days = (!empty($HTTP_POST_VARS['postdays'])) ? intval($HTTP_POST_VARS['postdays']) : intval($HTTP_GET_VARS['postdays']);
$min_post_time = time() - ($post_days * 60);
$sql = "SELECT COUNT(p.post_id) AS num_posts
FROM " . TOPICS_TABLE . " t, " . POSTS_TABLE . " p
WHERE t.topic_id = $topic_id
AND p.topic_id = t.topic_id
AND p.post_time >= $min_post_time";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain limited topics count information', '', __LINE__, __FILE__, $sql);
}
$total_replies = ($row = $db->sql_fetchrow($result)) ? $row['num_posts'] : 0;
$limit_posts_time = "AND p.post_time >= $min_post_time ";
if ( !empty($HTTP_POST_VARS['postdays']))
{
$start = 0;
}
}
else
{
$total_replies = $forum_topic_data['topic_replies'] + 1;
$limit_posts_time = '';
$post_days = 0;
}
$select_post_days = '<select name="postdays">';
for($i = 0; $i < count($previous_days); $i++)
{
$selected = ($post_days == $previous_days[$i]) ? ' selected="selected"' : '';
$select_post_days .= '<option value="' . $previous_days[$i] . '"' . $selected . '>' . $previous_days_text[$i] . '</option>';
}
$select_post_days .= '</select>';
// Decide how to order the post display
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? htmlspecialchars($HTTP_POST_VARS['postorder']) : htmlspecialchars($HTTP_GET_VARS['postorder']);
$post_time_order = ($post_order == 'asc') ? 'ASC' : 'DESC';
}
else
{
$post_order = 'asc';
$post_time_order = 'ASC';
}
$select_post_order = '<select name="postorder">';
if ( $post_time_order == 'ASC' )
{
$select_post_order .= '<option value="asc" selected="selected">' . $lang['Oldest_First'] . '</option><option value="desc">' . $lang['Newest_First'] . '</option>';
}
else
{
$select_post_order .= '<option value="asc">' . $lang['Oldest_First'] . '</option><option value="desc" selected="selected">' . $lang['Newest_First'] . '</option>';
}
$select_post_order .= '</select>';
$custom_fields_exists = (custom_fields('viewtopic', false, $forum_id)) ? true : false;
// Go ahead and pull all data for this topic
$sgv = '';
$sgv .= ($board_config['post_icon']) ? ', p.post_icon' : '';
$sgv .= ($board_config['cagent']) ? ', p.user_agent' : '';
$sgv .= (defined('ATTACHMENTS_ON')) ? ', p.post_attachment' : '';
$sgv .= ($board_config['expire']) ? ', p.post_expire' : '';
$sgv .= (!$board_config['report_disable']) ? ', p.reporter_id' : '';
$sgv .= ($do_helped) ? ', p.post_marked' : '';
$sgv .= ($board_config['allow_sig_image']) ? ', u.user_sig_image' : '';
$sgv .= ($board_config['cage']) ? ', u.user_birthday' : '';
$sgv .= ($board_config['cfrom']) ? ', u.user_from' : '';
$sgv .= ($board_config['clevell'] || $board_config['cleveld'] || $board_config['cjoin']) ? ', u.user_regdate' : '';
$sgv .= ($board_config['gender']) ? ', u.user_gender' : '';
$sgv .= ($board_config['cicq']) ? ', u.user_icq' : '';
$sgv .= ($board_config['cgg']) ? ', u.user_aim' : '';
$sgv .= ($board_config['cmsn']) ? ', u.user_msnm' : '';
$sgv .= ($board_config['cyahoo']) ? ', u.user_yim' : '';
$sgv .= ($do_helped) ? ', u.special_rank, u.user_allow_helped' : '';
$sgv .= ($board_config['custom_color_use'] || $board_config['custom_color_mod'] || $board_config['custom_color_view'] || $board_config['mod_nick_color']) ? ', u.can_custom_color, u.user_custom_color' : '';
$sgv .= ($board_config['allow_avatar_remote']) ? ', u.user_avatar_width, u.user_avatar_height' : '';
$fields_to_get = '';
if ( $custom_fields_exists )
{
$custom_fields = custom_fields('', 'viewtopic', $forum_id);
for($i = 0; $i < count($custom_fields[0]); $i++)
{
$split_field = 'u.user_field_' . $custom_fields[0][$i] . ', u.user_allow_field_' . $custom_fields[0][$i];
$fields_to_get .= ', ' . $split_field;
}
}
else
{
$fields_to_get = '';
}
$sgv .= $fields_to_get . ', ';
$sql = "SELECT p.post_id, p.post_time, p.enable_sig, p.enable_html, p.enable_smilies, p.post_edit_count, p.post_edit_time, p.post_username, p.post_approve, p.poster_delete" . $sgv . "u.user_id, u.username, u.user_level, u.user_posts, u.user_allowsig, u.user_sig, u.user_sig_bbcode_uid, u.user_allowsmile, u.user_avatar_type, u.user_allowavatar, u.user_avatar, u.user_rank, u.user_viewemail, u.user_website, u.user_email, u.can_custom_ranks, u.user_custom_rank, pt.post_text, pt.bbcode_uid, pt.post_subject
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
$limit_posts_time
AND pt.post_id = p.post_id
AND u.user_id = p.poster_id
ORDER BY p.post_time $post_time_order
LIMIT $start, $user_posts_per_page";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain post/user information.', '', __LINE__, __FILE__, $sql);
}
$postrow = array();
$posters_id = array();
$posts_id = array();
$poster_id_sql = '';
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$postrow[] = $row;
if( !in_array($row['user_id'], $posters_id) )
{
$posters_id[] = $row['user_id'];
}
$posts_id[] = $row['post_id'];
$poster_id_sql .= ($row['user_rank']) ? '' : ( ',' . $row['user_id'] );
}
while ( $row = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);
$total_posts = count($postrow);
}
else
{
require_once($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
sync('topic', $topic_id);
message_die(GENERAL_MESSAGE, $lang['No_posts_topic']);
}
if ( $board_config['read_tracking'] )
{
$new_posts = smart_get_new_topic_posts($topic_id, implode(',', $posts_id));
}
unset($posts_id);
// Get warnings for users
if ( $board_config['viewtopic_warnings'] && $board_config['warnings_enable'] )
{
$sql = "SELECT userid, value
FROM " . WARNINGS_TABLE . "
WHERE userid IN (" . implode(',', $posters_id) . ")
AND archive = '0'";
$result = $db->sql_query($sql);
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Couldnt Query value info from warnings table', '', __LINE__, __FILE__, $sql);
}
$warnings = array();
foreach( $posters_id as $poster_id )
{
$warnings[$poster_id] = 0;
}
while($row = $db->sql_fetchrow($result))
{
$warnings[$row['userid']] += $row['value'];
}
}
$resync = false;
if ( $forum_topic_data['topic_replies'] + 1 < $start + count($postrow) )
{
$resync = true;
}
else if ( $start + $user_posts_per_page > $forum_topic_data['topic_replies'] )
{
$row_id = intval($forum_topic_data['topic_replies']) % intval($user_posts_per_page);
if ( $postrow[$row_id]['post_id'] != $forum_topic_data['topic_last_post_id'] || $start + count($postrow) < $forum_topic_data['topic_replies'] )
{
$resync = true;
}
}
else if ( count($postrow) < $user_posts_per_page )
{
$resync = true;
}
if ( $resync )
{
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
sync('topic', $topic_id);
$result = $db->sql_query('SELECT COUNT(post_id) AS total FROM ' . POSTS_TABLE . ' WHERE topic_id = ' . $topic_id);
$row = $db->sql_fetchrow($result);
$total_replies = $row['total'];
}
$sql = "SELECT *
FROM " . RANKS_TABLE . "
ORDER BY rank_special, rank_min DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain ranks information.', '', __LINE__, __FILE__, $sql);
}
$ranksrow = array();
$rank_group_id_sql = '';
while ( $row = $db->sql_fetchrow($result) )
{
if ( $row['rank_special'] )
{
$ranksrow[-1][$row['rank_id']] = $row;
}
else
{
$ranksrow[$row['rank_group']][] = $row;
$rank_group_id_sql .= $row['rank_group'] > 0 ? ( ',' . $row['rank_group'] ) : '';
$ranksrow[$row['rank_group']]['count']++;
}
}
$db->sql_freeresult($result);
$poster_group = array();
if ( !empty($poster_id_sql) && !empty($rank_group_id_sql) )
{
$rank_group_id_sql = substr($rank_group_id_sql, 1);
$poster_id_sql = substr($poster_id_sql, 1);
$sql = "SELECT ug.user_id, ug.group_id
FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE ug.user_id IN ( $poster_id_sql )
AND ug.group_id IN ( $rank_group_id_sql )
AND g.group_id = ug.group_id
AND g.group_single_user = 0
AND ug.user_pending <> 1
ORDER BY g.group_order DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain poster group information.', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$poster_group[$row['user_id']] = $row['group_id'];
}
$db->sql_freeresult($result);
}
// Define censored word matches
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
// Censor topic title
if ( !$board_config['show_badwords'] )
{
if ( count($orig_word) )
{
$topic_title = preg_replace($orig_word, $replacement_word, $topic_title);
}
}
else
{
replace_bad_words($orig_word, $replacement_word, $topic_title);
}
// Was a highlight request part of the URI? Yes, this idea was
// taken from vB but we did already have a highlighter in place
// in search itself ... it's just been extended a bit!
$highlight_match = $highlight = '';
if ( isset($HTTP_GET_VARS['highlight']) )
{
// Split words and phrases
$words = explode(' ', trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));
for($i = 0; $i < sizeof($words); $i++)
{
if ( trim($words[$i]) != '' )
{
$highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('*', '\w*', phpbb_preg_quote($words[$i], '#'));
}
}
unset($words);
$highlight = urlencode($HTTP_GET_VARS['highlight']);
$highlight_match = phpbb_rtrim($highlight_match, "\\");
}
// Post, reply and other URL generation for
// templating vars
$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id");
$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id");
$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$view_prev_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=previous");
$view_next_topic_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&view=next");
// Mozilla navigation bar
$nav_links['prev'] = array(
'url' => $view_prev_topic_url,
'title' => $lang['View_previous_topic']
);
$nav_links['next'] = array(
'url' => $view_next_topic_url,
'title' => $lang['View_next_topic']
);
$nav_links['up'] = array(
'url' => $view_forum_url,
'title' => $forum_name
);
if ( $HTTP_GET_VARS['cp'] && $HTTP_GET_VARS['ap'] )
{
$reply_topic_back_url = append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&postdays=0&postorder=0&start=" . ($HTTP_GET_VARS['cp'] * $user_posts_per_page));
message_die('GENERAL_MESSAGE', sprintf($lang['Loser_protect'], $HTTP_GET_VARS['cp'], $HTTP_GET_VARS['ap'], '<a href="' . $reply_topic_back_url . '">', '</a>', '<a href="' . $reply_topic_url . '">', '</a>'));
}
if ( $board_config['graphic'] )
{
$reply_img = ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) ? $images['reply_locked'] : $images['reply_new'];
$reply_alt = ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) ? $lang['Topic_locked'] : $lang['Reply_to_topic'];
$post_img = ($forum_topic_data['forum_status'] == FORUM_LOCKED) ? $images['post_locked'] : $images['post_new'];
$post_alt = ($forum_topic_data['forum_status'] == FORUM_LOCKED) ? $lang['Forum_locked'] : $lang['Post_new_topic'];
}
else
{
$mini_reply = ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) ? $lang['mini_locked'] : $lang['mini_reply'];
$mini_newtopic = ($forum_topic_data['forum_status'] == FORUM_LOCKED) ? $lang['mini_locked'] : $lang['mini_newtopic'];
$reply_img = $images['spacer'] . '" border="0" />[ ' . $mini_reply . ' ]</a><a href=""><img src="' . $images['spacer'] . '" alt="';
$post_img = $images['spacer'] . '" border="0" />[ ' . $mini_newtopic . ' ]</a><a href=""><img src="' . $images['spacer'] . '" alt="';
}
if ( !$board_config['read_tracking'] )
{
if ( $session_logged_in )
{
$tracking_topics = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
$tracking_forums = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'])) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array();
if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) )
{
$topic_last_read = ($tracking_topics[$topic_id] > $tracking_forums[$forum_id]) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
}
else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) )
{
$topic_last_read = (!empty($tracking_topics[$topic_id])) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
}
else
{
$topic_last_read = $userdata['user_lastvisit'];
}
if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) )
{
asort($tracking_topics);
unset($tracking_topics[key($tracking_topics)]);
}
$tracking_topics[$topic_id] = time();
setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
}
// Load templates
$template->set_filenames(array(
'body' => 'viewtopic_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);
// Output page header
$page_title = $lang['View_topic'] .' - ' . $topic_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// User authorisation levels output
$s_auth_can = (( $is_auth['auth_post']) ? $lang['Rules_post_can'] : $lang['Rules_post_cannot']) . '<br />';
$s_auth_can .= (( $is_auth['auth_reply']) ? $lang['Rules_reply_can'] : $lang['Rules_reply_cannot']) . '<br />';
$s_auth_can .= (( $is_auth['auth_edit']) ? $lang['Rules_edit_can'] : $lang['Rules_edit_cannot']) . '<br />';
$s_auth_can .= (( $is_auth['auth_delete']) ? $lang['Rules_delete_can'] : $lang['Rules_delete_cannot']) . '<br />';
$s_auth_can .= (( $is_auth['auth_vote']) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot']) . '<br />';
if ( defined('ATTACHMENTS_ON') )
{
attach_build_auth_levels($is_auth, $s_auth_can);
}
$topic_mod = '';
if ( $is_auth['auth_mod'] )
{
$s_auth_can .= sprintf($lang['Rules_moderate'], "<a href=\"modcp.$phpEx?" . POST_FORUM_URL . "=$forum_id&sid=" . $session_id . '">', '</a>');
$topic_mod .= ($is_auth['auth_delete']) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=delete&sid=" . $session_id . '"><img src="' . $images['topic_mod_delete'] . '" alt="' . $lang['Delete_topic'] . '" title="' . $lang['Delete_topic'] . '" border="0" /></a> ' : '';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=move&sid=" . $session_id . '"><img src="' . $images['topic_mod_move'] . '" alt="' . $lang['Move_topic'] . '" title="' . $lang['Move_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=mergepost&sid=" . $session_id . '"><img src="' . $images['topic_mod_merge'] . '" alt="' . $lang['Merge_post'] . '" title="' . $lang['Merge_post'] . '" border="0" /></a> ';
$topic_mod .= ($forum_topic_data['topic_status'] == TOPIC_UNLOCKED) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=lock&sid=" . $session_id . '"><img src="' . $images['topic_mod_lock'] . '" alt="' . $lang['Lock_topic'] . '" title="' . $lang['Lock_topic'] . '" border="0" /></a> ' : '<a href="' . append_sid("modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=unlock&sid=" . $session_id . "") . '"><img src="' . $images['topic_mod_unlock'] . '" alt="' . $lang['Unlock_topic'] . '" title="' . $lang['Unlock_topic'] . '" border="0" /></a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=split&sid=" . $session_id . '"><img src="' . $images['topic_mod_split'] . '" alt="' . $lang['Split_topic'] . '" title="' . $lang['Split_topic'] . '" border="0" /></a> ';
$normal_button = "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=normalise&sid=" . $session_id . '"><img src="' . $images['folder'] . '" alt="' . $lang['Normal_topic'] . '" title="' . $lang['Normal_topic'] . '" border="0" /></a> ';
$sticky_button = ($is_auth['auth_sticky']) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=sticky&sid=" . $session_id . '"><img src="' . $images['folder_sticky'] . '" alt="' . $lang['Sticky_topic'] . '" title="' . $lang['Sticky_topic'] . '" border="0" /></a> ' : '';
$announce_button = ($is_auth['auth_announce']) ? "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=announce&sid=" . $session_id . '"><img src="' . $images['folder_announce'] . '" alt="' . $lang['Announce_topic'] . '" title="' . $lang['Announce_topic'] . '" border="0" /></a> ' : '';
switch( $forum_topic_data['topic_type'] )
{
case POST_NORMAL:
$topic_mod .= $sticky_button . $announce_button;
break;
case POST_STICKY:
$topic_mod .= $announce_button . $normal_button;
break;
case POST_ANNOUNCE:
$topic_mod .= $sticky_button . $normal_button;
break;
}
if ( $board_config['expire'] )
{
$topic_mod .= '<br /><span class="gensmall">' . $lang['topic_expire_mod'];
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=expire1&sid=" . $session_id . '" class="mainmenu" title="' . $lang['expire_e'] . '">1</a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=expire2&sid=" . $session_id . '" class="mainmenu" title="' . $lang['expire_e'] . '">2</a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=expire7&sid=" . $session_id . '" class="mainmenu" title="' . $lang['expire_e'] . '">7</a> ';
$topic_mod .= "<a href=\"modcp.$phpEx?" . POST_TOPIC_URL . "=$topic_id&mode=expire14&sid=" . $session_id . '" class="mainmenu" title="' . $lang['expire_e'] . '">14</a> ' . $lang['Days'] . '</span> ';
}
}
// Topic watch information
$s_watching_topic = '';
if ( $can_watch_topic )
{
if ( $is_watching_topic )
{
$s_watching_topic = '<br /><a href="' . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&unwatch=topic&start=$start&sid=" . $session_id . "") . '">' . $lang['Stop_watching_topic'] . '</a>';
$s_watching_topic_img = (isset($images['Topic_un_watch'])) ?
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Pc24
Użytkownik Lokalny
Dołączył: 06 Sie 2005
Posty: 129
Przeczytał: 0 tematów
Skąd: Snikont
|
Wysłany: Nie 14:24, 07 Sie 2005 Temat postu: |
|
|
I gdzie to mam wkleić? Może daj gotowca! bo nie daje rady
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Ziutak
Gość
|
Wysłany: Pon 12:38, 08 Sie 2005 Temat postu: |
|
|
O matko jakie problemy nie moge ... wystarczy wykasować <b> i </b> i po krzyku !!!!!!!!!!
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Pc24
Użytkownik Lokalny
Dołączył: 06 Sie 2005
Posty: 129
Przeczytał: 0 tematów
Skąd: Snikont
|
Wysłany: Pon 12:58, 08 Sie 2005 Temat postu: |
|
|
mam jerzcze jeden problem!!!!!!!!1
Dostałem od kogoś kod na paragraf:
Kod: | <p style="text-decoration: underline;">Tekst</p> |
I jest podkreślenie! Wpisuje:
Kod: | <p style="text-decoration: underline;" nie podkreślaj tego skurwysynie!!!! bo cie zbije na kwaśne jabko!!!!!1>Tekst</p> |
i też jest podkreślone (( <beczy><beczy><smutny>
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Ehkm
Gość
|
Wysłany: Pon 15:04, 08 Sie 2005 Temat postu: |
|
|
To jest forum dla debili czy co ??
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Pc24
Użytkownik Lokalny
Dołączył: 06 Sie 2005
Posty: 129
Przeczytał: 0 tematów
Skąd: Snikont
|
Wysłany: Pon 17:36, 08 Sie 2005 Temat postu: |
|
|
To jest forum dla debili na którym udzielja się nie debile udający debili
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
szopa
Użytkownik Lokalny
Dołączył: 26 Cze 2005
Posty: 49
Przeczytał: 0 tematów
Skąd: Stond :D :P: P :):):):] <lol>
|
Wysłany: Wto 0:20, 09 Sie 2005 Temat postu: |
|
|
No to jak? Jesteśmy tymi debilami czy nie? A może nie jesteśmy i udajemy debili? Ale jeżeli my jesteśmy debilami i udajemy nie-debili, którzy udają deblili udających nie deblili podszywających się pod debili? Czy jestęsmy nie debilami, którzy podszywają się pod debili nadebilnym forum? Bo już sam nie wiem...
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
joker
Użytkownik Lokalny
Dołączył: 10 Sie 2005
Posty: 55
Przeczytał: 0 tematów
|
Wysłany: Wto 20:43, 16 Sie 2005 Temat postu: |
|
|
szopa!
jestesmy debilaami udających debili podszywanych sie pod prawdziwych debili i obsranych przez niemytych debili. jestesmy debilami ale tak naprawde nimi nie jestesmy dlatego sa debile które się podszywają pod prawdziwe debile nie będące debilami i udającyh niekotrzystnyych debili. debile są debilami podszywanymi pod fałszywych debili. ale my tacy nie jestesmy jestesmy debile podawajacy sie pod prawdziewe dabile kapujesz?!!!
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Mietek
Użytkownik Lokalny
Dołączył: 20 Sie 2005
Posty: 51
Przeczytał: 0 tematów
|
Wysłany: Sob 17:41, 20 Sie 2005 Temat postu: |
|
|
<echo><tablet>Tresc</tablet></echo>
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
Gość
|
Wysłany: Sob 10:24, 17 Gru 2005 Temat postu: |
|
|
Szopa, użyłem tego twego sposobu i nie działa!!!!!!!!!!!!!!!!!11111111111111111111 Pomuszcie!
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
ZENON
Użytkownik Lokalny
Dołączył: 17 Paź 2005
Posty: 303
Przeczytał: 0 tematów
Skąd: z pizdy matki
|
Wysłany: Pon 18:51, 19 Gru 2005 Temat postu: |
|
|
To zwal kite i zadziala puszcAlo zajebana kurwo szmatro chuju jebany niedojebany w fiuta cipy co nie?"
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
Zobacz poprzedni temat :: Zobacz następny temat |
Autor |
Wiadomość |
ZENON
Użytkownik Lokalny
Dołączył: 17 Paź 2005
Posty: 303
Przeczytał: 0 tematów
Skąd: z pizdy matki
|
Wysłany: Pon 18:51, 19 Gru 2005 Temat postu: |
|
|
ZENON is cool!! Pozdr admin forum.
Post został pochwalony 0 razy
|
|
Powrót do góry |
|
![](http://picsrv.fora.pl/subSilver/images/spacer.gif) |
|
|
Możesz pisać nowe tematy Możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach
|
fora.pl - załóż własne forum dyskusyjne za darmo
Powered by phpBB © 2001, 2005 phpBB Group
|