Przedszkolak
Postów: 15
Data rejestracji: 13.01.2007 15:58
ZBANOWANY: Dożywotnio
|
Otóz mam problem z Forum,Jezeli obojętnie na jaki post wejde to pisze mi
[color=red]Fatal error: Call to undefined function: check_rang() in /var/www/sites/yoyo.pl/c/s/cs-clansite/forum/viewthread.php on line 346[/color] .
Moj viewthread.php to
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
require_once "../maincore.php";
require_once BASEDIR."subheader.php";
include LOCALE.LOCALESET."user_fields.php";
if (isset($_COOKIE['ep_posts'])) {
$readed = explode(".", $_COOKIE['ep_posts']);
} else { $readed = array();}
$readed_posts="";
if (file_exists(THEME."forum/delete.gif")) { $delete_gif = THEME."forum/delete.gif"; } else { $delete_gif = "images/delete.gif"; }
$ile = dbquery("SELECT count(post_id) FROM ".$db_prefix."posts");
// panele
$table = "panels_forum";
require_once BASEDIR."side_left.php";
include LOCALE.LOCALESET."forum/main.php";
if (file_exists(INFUSIONS."cautions/locale/".$settings['locale'].".php")) {
include INFUSIONS."cautions/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."cautions/locale/Polish.php";
}
$posts_per_page = 20;
if (!FUSION_QUERY || !isset($forum_id) || !isNum($forum_id) || !isset($thread_id) || !isNum($thread_id)) fallback("index.php");
//CODE HINZUGEFÜGT ANFANG
if (file_exists(INFUSIONS."rank_system/locale/".$settings['locale'].".php")) {
include INFUSIONS."rank_system/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."rank_system/locale/Polish.php";
}
//Punkte anfang
$posts=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='1'"));
$post1 = $posts['posts'];
$posts2=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='2'"));
$post2 = $posts2['posts'];
$posts3=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='3'"));
$post3 = $posts3['posts'];
$posts4=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='4'"));
$post4 = $posts4['posts'];
$posts5=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='5'"));
$post5 = $posts5['posts'];
$posts6=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='6'"));
$post6= $posts6['posts'];
$posts7=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='7'"));
$post7 = $posts7['posts'];
$posts8=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='8'"));
$post8 = $posts8['posts'];
$posts9=dbarray(dbquery("SELECT posts FROM ".$db_prefix."forumrang WHERE id='9'"));
$post9 = $posts9['posts'];
//Punkte Ende
//CODE HINZUGEFÜGT ENDE
$result = dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_id='".$forum_id."'");
if (dbrows($result)) {
$fdata = dbarray($result);
if (!checkgroup($fdata['forum_access']) || !$fdata['forum_cat']) fallback("index.php");
} else {
fallback("index.php");
}
$can_post = checkgroup($fdata['forum_posting']);
$forum_mods = explode(".", $fdata['forum_moderators']);
if (iMEMBER && in_array($userdata['user_id'], $forum_mods)) { define("iMOD", true); } else { define("iMOD", false); }
$result = dbquery("SELECT * FROM ".$db_prefix."threads WHERE thread_id='".$thread_id."' AND forum_id='".$fdata['forum_id']."'");
if (dbrows($result)) { $tdata = dbarray($result); } else { fallback("index.php"); }
$fcdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_id='".$fdata['forum_cat']."'"));
$caption = $fcdata['forum_name']." | <a href='viewforum.php?forum_id=".$fdata['forum_id']."'>".$fdata['forum_name']."</a>";
$result = dbquery("UPDATE ".$db_prefix."threads SET thread_views=thread_views+1 WHERE thread_id='$thread_id'");
if (iMEMBER && $can_post && isset($_POST['postquickreply'])) {
$message = stripinput(censorwords($_POST['message']));
if ($message != "") {
if (EPS)
{
$przydzial = dbarray(dbquery("SELECT point_ammount from ".DB_PREFIX."eps_points WHERE point_id='1'"));
$result = dbquery("UPDATE ".DB_PREFIX."users SET points_normal=points_normal+".($przydzial['point_ammount'])." WHERE user_id='".$userdata['user_id']."'");
}
$sig = ($userdata['user_sig'] ? '1' :'0');
$smileys = isset($_POST['disable_smileys']) ? "0" : "1";
$subject = "RE: ".$tdata['thread_subject'];
$result = dbquery("UPDATE ".$db_prefix."forums SET forum_lastpost='".time()."', forum_lastuser='".$userdata['user_id']."' WHERE forum_id='$forum_id'");
$result = dbquery("UPDATE ".$db_prefix."threads SET thread_lastpost='".time()."', thread_lastuser='".$userdata['user_id']."' WHERE thread_id='$thread_id'");
$result = dbquery("INSERT INTO ".$db_prefix."posts (forum_id, thread_id, post_subject, post_message, post_showsig, post_smileys, post_author, post_datestamp, post_ip, post_edituser, post_edittime) VALUES ('$forum_id', '$thread_id', '$subject', '$message', '$sig', '$smileys', '".$userdata['user_id']."', '".time()."', '".USER_IP."', '0', '0')");
sent_notifications($thread_id);
$newpost_id = mysql_insert_id();
$result = dbquery("UPDATE ".$db_prefix."users SET user_posts=user_posts+1 WHERE user_id='".$userdata['user_id']."'");
$reply_count = dbcount("(thread_id)", "posts", "thread_id='".$thread_id."'");
$rstart = ($reply_count > $posts_per_page ? "&rowstart=".((ceil($reply_count / $posts_per_page)-1)*$posts_per_page) : "");
fallback(FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id".$rstart."#post_".$newpost_id);
}
}
opentable($locale['500']);
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='smallalt'><a href='index.php'>".$settings['sitename']."</a> | $caption</td>\n";
if (iMEMBER && $can_post) {
echo "<td align='right'>\n";
if (!$tdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=$thread_id'><img src='".THEME."forum/reply.gif' alt='".$locale['565']."' style='border:0px;'></a>\n";
}
echo "<a href='post.php?action=newthread&forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a></td>\n";
}
echo "</tr>";
if (iMEMBER)
{
$n_r = dbquery("SELECT * from ".$db_prefix."notifications WHERE thread_id='".$thread_id."' AND user_id='".$userdata['user_id']."'");
$ile = dbcount("(id)", "notifications", "user_id='".$userdata['user_id']."'");
if ($ile < 10)
{
if (dbrows($n_r))
{
$notification = dbarray($n_r);
echo "<tr><td align='right' class='smallalt' colspan='2'><a href='notifications.php'>".$locale['ep_002']."</a></td></tr>";
} else echo "<tr><td align='right' class='smallalt' colspan='2'><a href='notifications.php?a=add&forum_id=".$forum_id."&thread_id=".$thread_id."'>".$locale['ep_001']."</a></td></tr>";
} else echo "<tr><td align='right' class='smallalt' colspan='2'>".$locale['ep_005']."</td></tr>";
}
echo "</table>\n";
$rows = dbrows(dbquery("SELECT * FROM ".$db_prefix."posts WHERE thread_id='$thread_id'"));
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows > $posts_per_page) {
echo "<div align='center' style='margin-top:5px;margin-bottom:5px;'>
".makePageNav($rowstart,$posts_per_page,$rows,3,FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id&")."
</div>\n";
}
echo "<table cellspacing='0' cellpadding='0' width='100%' class='tbl-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='1' width='100%'>\n";
if ($rows != 0) {
$result = dbquery(
"SELECT * FROM ".$db_prefix."posts
LEFT JOIN ".$db_prefix."users ON ".$db_prefix."posts.post_author=".$db_prefix."users.user_id
WHERE thread_id='$thread_id' ORDER BY post_datestamp LIMIT $rowstart,$posts_per_page"
);
$numrows = dbrows($result);
$i = 0;
while ($data = dbarray($result)) {
$i++;
$message = $data['post_message'];
if ($data['post_showsig']) { $message = $message."\n\n<hr>".$data['user_sig']; }
if ($data['post_smileys']) { $message = parsesmileys($message); }
$message = parseubb($message);
$message = nl2br($message);
if ($data['post_edittime'] != "0") {
if ($data['post_author'] != $data['post_edituser']) {
$data2 = dbarray(dbquery("SELECT user_id,user_name,user_color,user_prefix FROM ".$db_prefix."users WHERE user_id='".$data['post_edituser']."'"));
$edituser = "<a href='../profile.php?lookup=".$data2['user_id']."' style='color:#".$data2['user_color']."'>".$data2['user_prefix'].$data2['user_name']."</a>";
} else {
$edituser = "<a href='../profile.php?lookup=".$data['user_id']."' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</a>";
}
$edittime = showdate("forumdate", $data['post_edittime']);
}
$is_mod = in_array($data['user_id'], $forum_mods) && $data['user_level'] < "102" ? true : false;
echo "<tr>
<td width='145' class='tbl2'>".$locale['501']."</td>
<td class='tbl2'>";
if (iMEMBER)
{
$new=1;
if ($data['post_datestamp'] > $lastvisited)
{
if (in_array($data['post_id'], $readed)) $new=0; else $readed_posts .= ".".$data['post_id'];
} else $new=0;
if ($new) echo "<span style='color:yellow;'>".$locale['ep_004']."</span>"; else echo "";
}
echo" <a name='".$data['post_id']."'></a>".$data['post_subject']." </td>
</tr>
<tr>
<td valign='top' rowspan='3' width='145' class='tbl1'>
<a href='../profile.php?lookup=".$data['user_id']."' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</a>";
if (iADMIN && $data['user_id']!=$userdata['user_id'])
{
if ($userdata['user_level'] == '103' || $userdata['user_level']>=$data['user_level'])
echo " - <a href='".INFUSIONS."cautions/cautions.php?action=add&userid=".$data['user_id']."&username=".$data['user_name']."&forum_id=".$_GET['forum_id']."&thread_id=".$_GET['thread_id']."'>".$locale['C_017']."</a>";
}
echo"<br><span class='alt'>".($is_mod ? $locale['userf1'] : getuserlevel($data['user_level']))."</span><br>\n";
if ($data['user_level'] >= 103) {
echo "<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<br>";
} else {
if (EPS) $usr_posts = show_points($data['user_id']); else $usr_posts = $dadta['user_posts'];
if ($usr_posts <= $post1 ) {
echo "<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post2) {
echo "<img src='".INFUSIONS."rank_system/img/half.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post3) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post4) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/half.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post5) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post6) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/half.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post7) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post8) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/half.gif'>
<img src='".INFUSIONS."rank_system/img/non.gif'>
<br>";
}
else if ($usr_posts <= $post9) {
echo "<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<img src='".INFUSIONS."rank_system/img/full.gif'>
<br>";
} else {
echo "<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'>
<img src='".INFUSIONS."rank_system/img/best.gif'><br>";
}
}
echo "\n";
echo "<table cellspacing='0' cellpadding='0' border='0'><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";
if ($data['user_avatar'] != "") {
echo "<img src='".IMAGES."avatars/".$data['user_avatar']."' alt='".$locale['567']."'>";
$height = "185";
} else {
echo "<img src='".FORUM."images/brak.gif' alt='".$locale['567']."'>";
$height = "185";
}
echo "</td>\n";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</tr></table>";
$caution_r = dbquery("SELECT * from ".$db_prefix."cautions WHERE user_id=".$data['user_id']);
$c_count = mysql_numrows($caution_r);
if ($c_count > 0)
echo "<span class='alt'>".$locale['C_014']."</span>".$c_count."<br>";
if (iMEMBER) {
echo "<span class='shoutboxdate'>".$locale['502']." ".$data['user_posts']."<br>";
if (EPS) echo " ".$locale['eps560']." ".check_rang($data['user_id'])."<br>".$locale['eps561']." ".show_points($data['user_id'])."<br>";
echo "".$locale['u044']."<br>";
echo ($data['user_lastvisit'] != 0 ? showdate("shortdate", $data['user_lastvisit']) : $locale['u049'])."<br>";
//echo "<span class='alt'>".$locale['504']."</span> ".showdate("%d.%m.%y", $data['user_joined']);
}
echo "</span></td>
<td>
<table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td class='tbl1'>".$locale['505'].showdate("forumdate", $data['post_datestamp'])."</td>
<td align='right' class='tbl1'>\n";
if (iMEMBER && $can_post) {
if (!$tdata['thread_locked']) {
if ($userdata['user_id'] == $data['post_author'] || iMOD || iSUPERADMIN) {
echo "<a href='post.php?action=edit&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".THEME."forum/edit.gif' border='0' alt'Edit' title='Edit'></a>\n";
}
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id'].""e=".$data['post_id']."'><img src='".THEME."forum/quote.gif' alt='".$locale['569']."' title='Quote' style='border:0px;'></a>\n";
if (iMOD || iSUPERADMIN && $data['post_ip'] != "0.0.0.0" && file_exists(THEME."forum/ip.gif")) {
echo "<img src='".THEME."forum/ip.gif' alt='".$data['post_ip']."' title='".$data['post_ip']."' border='0'>\n";
}
if ($i == $numrows-1) $last_author=$data['post_author'];
if ($userdata['user_id'] == $data['post_author'] || iMOD || iSUPERADMIN) {
if ($i == $numrows) echo "<a href='post.php?action=delete&post_author=".$data['post_author']."&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id'].(isset($last_author) ? "&last=".$last_author : "")."'><img src='".$delete_gif."' border='0' alt'Delete' title='Delete'></a>\n";
else echo "<a href='post.php?action=delete&post_author=".$data['post_author']."&forum_id=$forum_id&thread_id=".$data['thread_id']."&post_id=".$data['post_id']."'><img src='".$delete_gif."' border='0' alt'Delete' title='Delete'></a>\n";
}
}
}
echo "</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign='top' height='$height' class='tbl1'>
$message";
$result2 = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='".$data['post_id']."'");
if (dbrows($result2) != 0) {
$attach = dbarray($result2);
if ($attach['attach_ext'] == ".gif" || $attach['attach_ext'] == ".jpg" || $attach['attach_ext'] == ".png") {
echo "<br><br>
<span class='small' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span><span class='small'>".$locale['506']."</span><br><br>
<img src='".FORUM."attachments/".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext']."'>";
} else {
echo "<br><br>
<span class='small' style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span><span class='small'>".$locale['507']."</span><br>
<a href='".FORUM."attachments/".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext']."'>".$attach['attach_name']."[".$attach['attach_id']."]".$attach['attach_ext']."</a>";
}
}
if ($data['post_edittime'] != "0") {
echo "<br>
<br>
<span class='small'>".$locale['508']."$edituser".$locale['509']."$edittime</span>";
}
echo "</td>
</tr>
<tr>
<td class='tbl1'>\n";
if ($data['user_aim'] && file_exists(THEME."forum/aim.gif") && $settings['locale']!='Polish') {
echo "<a href='aim:goim?screenname=".str_replace(" ", "+", $data['user_aim'])."' target='_blank'><img src='".THEME."forum/aim.gif' alt='".$data['user_aim']."' style='border:0px;'></a> ";
}
if ($data['user_icq']) {
echo "<a href='http://web.icq.com/wwp?Uin=".$data['user_icq']."' target='_blank'><img src='".THEME."forum/icq.gif' alt='".$data['user_icq']."' style='border:0px;'></a> ";
}
if ($data['user_yahoo']) {
echo "<a href='http://ludzie.tlen.pl/$data[user_yahoo]'><img src='".THEME."forum/yahoo.gif' alt='".$data['user_yahoo']."' style='border:0px;'></a> ";
}
if ($data['user_msn']) {
echo "<a href='gg:$data[user_msn]' target='_blank'><img src='".THEME."forum/msn.gif' alt='".$data['user_msn']."' style='border:0px;'></a> ";
}
if ($data['user_web']) {
if (!strstr($data['user_web'], "http://")) { $urlprefix = "http://"; } else { $urlprefix = ""; }
echo "<a href='".$urlprefix."".$data['user_web']."' target='_blank'><img src='".THEME."forum/web.gif' alt='".$data['user_web']."' style='border:0px;'></a> ";
}
echo "<a href='".BASEDIR."messages.php?msg_send=".$data['user_id']."'><img src='".THEME."forum/pm.gif' alt='".$locale['571']."' style='border:0px;'></a>
</td>
</tr>\n";
}
}
echo "</table>
</td>
</tr>
</table>\n";
if ($rows > $posts_per_page) {
echo "<div align='center' style='margin-top:5px;'>
".makePageNav($rowstart,$posts_per_page,$rows,3,FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id&")."
</div>\n";
}
echo "<table cellpadding='0' cellspacing='0' width='100%' style='margin-top:5px;'>\n<tr>\n";
$forum_list = "";
$result = dbquery("SELECT * FROM ".$db_prefix."forums WHERE forum_cat='0' ORDER BY forum_order ASC");
while ($data = dbarray($result)) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."forums WHERE ".groupaccess('forum_access')." AND forum_cat='".$data['forum_id']."' ORDER BY forum_order ASC");
if (dbrows($result2)) {
$forum_list .= "<optgroup label='".$data['forum_name']."'>\n";
while ($data2 = dbarray($result2)) {
$sel = ($data2['forum_id'] == $fdata['forum_id'] ? " selected" : "");
$forum_list .= "<option value='".$data2['forum_id']."'$sel>".$data2['forum_name']."</option>\n";
}
$forum_list .= "</optgroup>\n";
}
}
echo "<td align='left' class='tbl'>".$locale['540']."<br>
<select name='jump_id' class='textbox' onChange=\"jumpForum(this.options[this.selectedIndex].value);\">
$forum_list</select></td>\n";
if (iMEMBER && $can_post) {
if (iMOD || iSUPERADMIN) {
echo "<td align='right' class='tbl'>
<form name='modopts' method='post' action='options.php?forum_id=$forum_id&thread_id=$thread_id'>
".$locale['520']."<br>
<select name='step' class='textbox'>
<option value='none'> </option>
<option value='renew'>".$locale['527']."</option>
<option value='delete'>".$locale['521']."</option>\n";
if (!$tdata['thread_locked']) {
echo "<option value='lock'>".$locale['522']."</option>\n";
} else {
echo "<option value='unlock'>".$locale['523']."</option>\n";
}
if (!$tdata['thread_sticky']) {
echo "<option value='sticky'>".$locale['524']."</option>\n";
} else {
echo "<option value='nonsticky'>".$locale['525']."</option>\n";
}
echo "<option value='move'>".$locale['526']."</option>\n";
echo "</select>
<input type='submit' name='go' value='".$locale['528']."' class='button'>
</form>
</td>
</tr>\n";
}
}
echo "</table>\n";
if (iMEMBER && $can_post) {
echo "<div align='right' style='margin-top:5px;'>\n";
if (!$tdata['thread_locked']) {
echo "<a href='post.php?action=reply&forum_id=$forum_id&thread_id=$thread_id'><img src='".THEME."forum/reply.gif' alt='".$locale['565']."' style='border:0px;'></a>";
}
echo " <a href='post.php?action=newthread&forum_id=$forum_id'><img src='".THEME."forum/newthread.gif' alt='".$locale['566']."' style='border:0px;'></a>
</div>\n";
}
closetable();
tablebreak();
if (iMEMBER && $can_post && !$tdata['thread_locked']) {
opentable($locale['512']);
echo "<form name='inputform' method='post' action='".FUSION_SELF."?forum_id=$forum_id&thread_id=$thread_id'>
<table align='center' cellpadding='0' cellspacing='1' class='tbl-border'>
<tr>
<td align='center' class='tbl1'><textarea name='message' cols='80' rows='7' class='textbox'></textarea><br>
<input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick=\"addText('message', '[b]', '[/b]');\">
<input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick=\"addText('message', '[i]', '[/i]');\">
<input type='button' value='s' class='button' style='font-style:italic;width:25px;' onClick=\"addText('message', '[s]', '[/s]');\">
<input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick=\"addText('message', '[u]', '[/u]');\">
<input type='button' value='url' class='button' style='width:30px;' onClick=\"addText('message', '[url]', '[/url]');\">
<input type='button' value='mail' class='button' style='width:35px;' onClick=\"addText('message', '[mail]', '[/mail]');\">
<input type='button' value='img' class='button' style='width:30px;' onClick=\"addText('message', '[img]', '[/img]');\">
<input type='button' value='center' class='button' style='width:45px;' onClick=\"addText('message', '[center]', '[/center]');\">
<input type='button' value='small' class='button' style='width:40px;' onClick=\"addText('message', '[small]', '[/small]');\">
<input type='button' value='code' class='button' style='width:40px;' onClick=\"addText('message', '[code]', ' ');\">
<input type='button' value='quote' class='button' style='width:45px;' onClick=\"addText('message', '', ' ');\"></td>
</tr>
<tr>
<td align='center' class='tbl2'>".displaysmileys("message")."<br>
<input type='checkbox' name='disable_smileys' value='1'>".$locale['513']."</td>
</tr>
<tr>
<td align='center' class='tbl1'><input type='submit' name='postquickreply' value='".$locale['514']."' class='button'></td>
</tr>
</table>
</form>\n";
closetable();
}
echo "<script type='text/javascript'>
function jumpForum(forumid) {
document.location.href='".FORUM."viewforum.php?forum_id='+forumid;
}
</script>\n";
$posts1 = implode(".", $readed);
$posts1 .= $readed_posts;
setcookie("ep_posts", $posts1, (time() + 3600*3), "/", "", "0");
require_once BASEDIR."side_right.php";
require_once BASEDIR."footer.php";
?>[/code]
Moja stronka to www.airsoftguns.r...
Prosze o natyczmiastową pomoc.Dziekuję
//Proszę o zmianę nazwy tematu, przenoszę - jantom
Edytowane przez magic19931 dnia 21.01.2007 20:47:20
|