예제 #1
0
     } else {
         $reply_del = '';
     }
     echo "\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t<TD colspan=\"2\">\n\t\t\t\t\t\t\t\t<TABLE width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t\t\t\t\t\t\t\t\t<TBODY>\n\t\t\t\t\t\t\t\t\t\t<TR>\n\t\t\t\t\t\t\t\t\t\t\t<TD align=\"left\">\n\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript:scroll(0,0)\"><img src=\"theme/{$STORED['THEME']}/images/webboard/p_up.gif\" border=\"0\" alt=\"top\"></a>\n\t\t\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t\t\t<TD align=\"right\">\n\t\t\t\t\t\t\t\t\t\t\t\t{$reply_del}\n";
     if (!empty($CP[login_id]) && ($CP[login_id] == $row[reply_user_id] || $IS_EDIT_POST)) {
         echo "<a style='text-decoration:none;' id=\"edit_post_" . $row[reply_id] . "\" href=\"index.php?act=post&code=02&f={$forum_id}&t={$GET_showtopic}&p={$row['reply_id']}\"><img src=\"theme/{$STORED['THEME']}/images/webboard/p_edit.gif\" border=\"0\" alt=\"Edit�Post\"></a>\n<script type='text/javascript'>\nmenu_build_menu('edit_post_" . $row[reply_id] . "','85',\n\tnew Array('<a id=\\'Button\\' onclick=\"hyperlink(\\'index.php?act=post&code=02&f={$forum_id}&t={$GET_showtopic}&p={$row['reply_id']}\\');return false;\" href=\"#\">Full Edit</a>',\n\t'<a id=\\'Button\\' onclick=\"quick_edit(\\'replyid_" . $row[reply_id] . "\\',\\'p={$row['reply_id']}\\');return false;\" href=\"#\">Quick Edit</a>'));\n</script>\n";
     }
     echo "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"index.php?act=post&code=01&f={$forum_id}&t={$GET_showtopic}&qpid={$row['reply_id']}\"><img src=\"theme/{$STORED['THEME']}/images/webboard/p_quote.gif\" border=\"0\" alt=\"Quote�Post\"></a>\n\t\t\t\t\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t\t\t\t</TBODY>\n\t\t\t\t\t\t\t\t</TABLE>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n";
 }
 echo "\t\t\t\t\t</TBODY>\n\t\t\t\t</TABLE>\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<script type='text/javascript'>\n\tvar max_width = " . $CONFIG_max_img_width . ";\n\tvar max_height = " . $CONFIG_max_img_height . ";\n\tvar total_img_resize = " . $CP[images_num] . ";\n\twindow.onload=resize_img;\n</script>\n<BR>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD>\n";
 get_selectpage($total, $CONFIG_per_page, $page, "index.php?showtopic={$GET_showtopic}");
 echo "\n\t\t\t</TD>\n\t\t\t<TD align=\"right\">\n";
 if ($qr_open = check_forum_perm($forum_id, $CP['g_id'], 'reply_perm') && !$topic_closed) {
     echo "\t<a href=\"javascript:ShowHide('qr_open');\" title=\"Fast Reply\"><img src=\"theme/{$STORED['THEME']}/images/webboard/t_qr.gif\" border=\"0\"></a>\n";
 }
 get_menuwb($forum_id, 2, $t_reply);
 echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n";
 if (checkprivilege_action($CP[login_id], g_view_topic_option)) {
     if ($topic_closed == '1') {
         $val01 = "{$lang['Open_Topic']}";
     } else {
         $val01 = "{$lang['Close_Topic']}";
     }
     if ($topic_pin == '1') {
         $val04 = "{$lang['Unpin_Topic']}";
     } else {
         $val04 = "{$lang['Pin_Topic']}";
     }
     echo "\n<form action=\"index.php?act=mod\" method=\"post\" enctype=\"multipart/form-data\" name=\"topic_option\" onsubmit=\"return CheckMod()\">\n\t<input type=\"hidden\" name=\"f\" value=\"{$forum_id}\">\n\t<input type=\"hidden\" name=\"t\" value=\"{$GET_showtopic}\">\n\t<input type=\"hidden\" name=\"topic_pin\" value=\"{$topic_pin}\">\n\t<input type=\"hidden\" name=\"topic_closed\" value=\"{$topic_closed}\">\n\t<select name=\"code\" class=\"textinput\">\n\t\t<option value=\"00\">Moderation Options</option>\n\t\t<option value=\"07\">-{$lang['Move_Topic']}</option>\n";
     if (checkprivilege_action($CP[login_id], g_closed_topics)) {
         echo "\t\t<option value=\"01\">-{$val01}</option>\n";
예제 #2
0
                    echo "\t\t\t\t\t\t\t\t{$topic_description}\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t<TD align=\"center\">\n";
                    if (empty($topic_starter)) {
                        echo "\t\t\t\t\t\t{$lang['Guest']}\n\t\t";
                    } else {
                        echo "\t\t\t\t\t\t<a href=\"index.php?showuser="******"\">{$topic_starter}</a>\n\t\t";
                    }
                    echo "\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t\t<TD align=\"center\">{$row['topic_replying']}</TD>\n\t\t\t\t\t\t\t<TD align=\"center\">{$row['topic_reading']}</TD>\n\t\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t\t{$last_reply_date}<BR>\n\t\t\t\t\t\t\t\t<a href=\"index.php?showtopic={$row['topic_id']}&view=getnewpost\">{$lang['Last_Post']}:</a>\n";
                    if (empty($topic_lastreply_name)) {
                        echo "\t\t\t\t\t\t{$lang['Guest']}\n\t\t";
                    } else {
                        echo "\t\t\t\t\t\t<a href=\"index.php?showuser="******"\">{$topic_lastreply_name}</a>\n\t\t";
                    }
                    echo "\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n";
                }
            } else {
                echo "\t\t\t\t\t\t<TR height=\"27\" class=\"topic_title4\">\n\t\t\t\t\t\t\t<TD colspan=\"7\" align=\"center\">\n\t\t\t\t\t\t\t\t<B>Topic(s) not found in this forum.</B>\n\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n";
            }
            echo "\t\t\t\t\t</TBODY>\n\t\t\t\t</TABLE>\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD>\n";
            get_selectpage($total, $CONFIG_t_per_page, $page, "index.php?showforum={$GET_showforum}");
            echo "\t\t\t</TD>\n\t\t\t<TD align=\"right\">\n";
            get_menuwb($GET_showforum, 1);
            echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n\n<TABLE width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\" width=\"30%\"><img src=\"theme/{$STORED['THEME']}/images/f_norm.gif\">&nbsp;{$lang['Open_Topic1']}</TD>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\" width=\"70%\"><img src=\"theme/{$STORED['THEME']}/images/f_poll.gif\">&nbsp;{$lang['Open_Poll1']}</TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\"><img src=\"theme/{$STORED['THEME']}/images/f_norm_no.gif\">&nbsp;{$lang['Open_Topic2']}</TD>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\"><img src=\"theme/{$STORED['THEME']}/images/f_poll_no.gif\">&nbsp;{$lang['Open_Poll2']}</TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\"><img src=\"theme/{$STORED['THEME']}/images/f_hot.gif\">&nbsp;{$lang['Hot_Topic1']}</TD>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\"><img src=\"theme/{$STORED['THEME']}/images/f_closed.gif\">&nbsp;{$lang['Closed_Topic']}</TD>\n\t\t</TR>\n\t\t<TR>\n\t\t\t<TD class=\"textinput\" class=\"title_face4\"><img src=\"theme/{$STORED['THEME']}/images/f_hot_no.gif\">&nbsp;{$lang['Hot_Topic2']}</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n";
        } else {
            redir("index.php?act=forum", "{$lang['No_privilege']}", 3);
        }
    } else {
        redir("index.php?act=forum", "{$lang['No_Forum']}", 3);
    }
} else {
    redir("index.php?act=idx", "{$lang['No_privilege']}", 3);
}