Exemplo n.º 1
0
         echo "\t\t\t\t\t\t\t\t<BR><BR><BR>--------------------<BR>{$reply_signature_}\n";
     }
     echo "\t\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t</TR>\n\t\t\t\t\t\t<TR class=\"topic_title5\">\n\t\t\t\t\t\t\t<TD class=\"textinput\">\n\t\t\t\t\t\t\t\t{$status_bar}\n";
     if ($IS_DELETE_POST && $reply_num != '1') {
         $reply_del = "<a href=\"javascript:delete_post('index.php?act=post&code=03&t={$GET_showtopic}&p={$row['reply_id']}')\"><img src=\"theme/{$STORED['THEME']}/images/webboard/p_delete.gif\" border=\"0\" alt=\"Delete�Post\"></a>";
     } 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 {
Exemplo n.º 2
0
         clmain_body();
     }
 } else {
     if ($GET_code == "view_inactiveid") {
         if (!isset($GET_st)) {
             $GET_st = 0;
         }
         $GET_st = (int) $GET_st;
         $page = get_page($GET_st, $CONFIG_AM_per_page);
         $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"activate_id\"", 'account_manage.php');
         $total = $sql->result();
         $query = "SELECT memory_value1,memory_value2 FROM {$CONFIG_sql_cpdbname}.memory WHERE memory_object=\"activate_id\" ORDER by memory_value1 ASC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_AM_per_page) . "";
         $sql->result = $sql->execute_query($query, 'account_manage.php');
         $sql->total_query++;
         echo "<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n";
         get_selectpage($total, $CONFIG_AM_per_page, $page, "index.php?act=account_manage&code=view_inactiveid");
         echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n";
         opmain_body("Inactive Account");
         if ($sql->count_rows()) {
             echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">\n\t<TBODY>\n\t\t<TR height=\"27\" class=\"title_bar2\" align=\"center\">\n\t\t\t<TD width=\"5%\"><div class=\"title_face\">No.</div></TD>\n\t\t\t<TD width=\"25%\"><div class=\"title_face\">User ID</div></TD>\n\t\t\t<TD width=\"20%\"><div class=\"title_face\">Registed date</div></TD>\n\t\t\t<TD width=\"50%\"></TD>\n\t\t</TR>\n";
             $i = 0;
             while ($row = $sql->fetch_row()) {
                 $i++;
                 $query = "SELECT user_joined FROM {$CONFIG_sql_cpdbname}.user_profile WHERE user_id=\"{$row['memory_value2']}\"";
                 $sql->result2 = $sql->execute_query($query, 'account_manage.php');
                 $urow = $sql->fetch_row($sql->result2);
                 $user_joined = get_date("j-M y", $urow[user_joined]);
                 $userid = get_username($row[memory_value2]);
                 echo "\t\t<form action=\"index.php?act=account_manage&manage=activeaccount\" method=\"post\" enctype=\"multipart/form-data\" name=\"Account_Manage_Form\">\n\t\t<input type=\"hidden\" name=\"account_id\" value=\"{$row['memory_value2']}\">\n\t\t<TR class=\"topic_title7\" align=\"center\">\n\t\t\t<TD>{$i}</TD>\n\t\t\t<TD>{$userid}</TD>\n\t\t\t<TD>{$user_joined}</TD>\n\t\t\t<TD><input type=\"submit\" name=\"Submit\" value=\"Active this account\" class=\"textinput\"><input type=\"button\" name=\"Remove\" value=\"Delete this account\" class=\"textinput\" onClick=\"hyperlink('index.php?act=account_manage&manage=deleteinactiveid&account_id={$row['memory_value2']}');\"></TD>\n\t\t</TR>\n\t\t</form>\n";
             }
             echo "\t</TBODY>\n</TABLE>\n";
Exemplo n.º 3
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);
}
Exemplo n.º 4
0
}
if ($STORED_loginname && $STORED_loginpass && !empty($guild_rank_menu)) {
    if (!isset($GET_st)) {
        $GET_st = 0;
    }
    $GET_st = (int) $GET_st;
    $page = get_page($GET_st, $CONFIG_guild_per_page);
    $query = "SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.guild";
    $sql->result = $sql->execute_query($query, 'guild_rank.php');
    $sql->total_query++;
    $total = $sql->result();
    $query = "SELECT name,master,guild_id,emblem_data,guild_lv,average_lv FROM {$CONFIG_sql_dbname}.guild ORDER by guild_lv DESC LIMIT " . mysql_res($GET_st) . "," . mysql_res($CONFIG_guild_per_page) . "";
    $sql->result = $sql->execute_query($query, 'guild_rank.php');
    $sql->total_query++;
    echo "<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n";
    get_selectpage($total, $CONFIG_guild_per_page, $page, "index.php?act=g_rank");
    echo "\n\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n";
    opmain_body("Guild Ranking");
    echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>No.</TD>\n\t\t\t<TD>Guild</TD>\n\t\t\t<TD>Guild Master</TD>\n\t\t\t<TD>Guild Level</TD>\n\t\t\t<TD>Average Level</TD>\n\t\t\t<TD>Emblem</TD>\n\t\t</TR>\n";
    if ($sql->count_rows()) {
        $countstanding = 0;
        $i = ($page - 1) * $CONFIG_guild_per_page;
        while ($grow = $sql->fetch_row()) {
            $i++;
            $countstanding = 1;
            $guild_name = htmlspecialchars($grow['name']);
            $g_master_name = htmlspecialchars($grow['master']);
            $guild_id = $grow[guild_id];
            $emblems[$guild_id] = $grow[emblem_data];
            echo "\t\t<TR align=\"center\" class=\"topic_title4\">\n\t\t\t<TD>{$i}</TD>\n\t\t\t<TD><a href=\"index.php?act=guildinfo&guild_id={$guild_id}\">{$guild_name}</a></TD>\n\t\t\t<TD>{$g_master_name}</TD>\n\t\t\t<TD>{$grow['guild_lv']}</TD>\n\t\t\t<TD>{$grow['average_lv']}</TD>\n\t\t\t<TD><img src=\"emblem.php?data={$guild_id}\" alt=\"{$guild_name}\"></TD>\n\t\t</TR>\n";
        }
Exemplo n.º 5
0
     $search_map = " AND last_map LIKE \"%" . mysql_res($GET_map) . "%\"";
 } else {
     $search_map = "";
 }
 if (!isset($GET_st)) {
     $GET_st = 0;
 }
 $GET_st = (int) $GET_st;
 $page = get_page($GET_st, $GET_rows);
 $sql->result = $sql->execute_query("SELECT COUNT(*) FROM {$CONFIG_sql_dbname}.char " . $job . " " . $online . " " . $showid . " " . $search_name_1 . "" . $search_map . "", 'player_rank.php');
 $total = $sql->result();
 $query = "SELECT account_id,name,class,base_level,job_level,max_hp,max_sp,last_map,online\n\tFROM {$CONFIG_sql_dbname}.char\n\t" . $job . " " . $online . " " . $showid . " " . $search_name_1 . "" . $search_map . "\n\tORDER by " . mysql_res($GET_ptype) . " " . mysql_res($GET_key) . " LIMIT " . mysql_res($GET_st) . "," . mysql_res($GET_rows) . "";
 $sql->result = $sql->execute_query($query, 'player_rank.php');
 $sql->total_query++;
 echo "<BR>\n<TABLE width=\"95%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n\t<TBODY>\n\t\t<TR>\n\t\t\t<TD align=\"right\">\n";
 get_selectpage($total, $GET_rows, $page, "index.php?act=p_rank&charname={$charname}&ctype={$GET_ctype}&job={$GET_job}&ptype={$GET_ptype}&map={$GET_map}&key={$GET_key}&status={$GET_status}&rows={$GET_rows}");
 echo "\t\t\t</TD>\n\t\t</TR>\n\t</TBODY>\n</TABLE>\n<BR>\n";
 opmain_body("Player(s) Ranking");
 echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"1\" align=\"center\">\n\t<TBODY>\n\t\t<TR align=\"center\" class=\"topic_title3\" style=\"font-weight: bold;\">\n\t\t\t<TD>No.</TD>\n\t\t\t<TD>Name</TD>\n\t\t\t<TD>Class</TD>\n\t\t\t<TD>Base Level</TD>\n\t\t\t<TD>Job Level</TD>\n\t\t\t<TD>Max HP</TD>\n\t\t\t<TD>Max SP</TD>\n\t\t\t<TD>Last Map</TD>\n\t\t\t<TD>Status</TD>\n\t\t</TR>\n";
 if ($sql->count_rows()) {
     $IS_SEARCHING_ID = checkprivilege_action($CP[login_id], g_searching_id) ? 1 : 0;
     $n = ($page - 1) * $GET_rows;
     while ($row = $sql->fetch_row()) {
         $n++;
         if ($row[online]) {
             $online = "<font class=\"status_on\">Online</font>";
         } else {
             $online = "<font class=\"status_off\">Offline</font>";
         }
         $jobid = $row['class'];
         $name = $IS_SEARCHING_ID ? "<a href=\"index.php?act=searching_id&account_id={$row['account_id']}\">" . htmlspecialchars($row['name']) . "</a>" : "" . htmlspecialchars($row['name']) . "";
Exemplo n.º 6
0
function get_page_select($name, $st)
{
    header("Content-type: text/xml;charset=windows-874");
    $sql = new MySQL();
    global $STORED, $lang, $CONFIG_show_ro_news_per, $CONFIG_sql_dbname, $CONFIG_sql_cpdbname, $CP;
    $name = strip_tags($name);
    if (!isset($st)) {
        $st = 0;
    }
    $st = (int) $st;
    switch ($name) {
        case "news":
        case "readnews":
            $cols = '3';
            $limit = $name == 'readnews' ? 15 : $CONFIG_show_ro_news_per;
            $page = get_page($st, $limit);
            $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.mainnews";
            $sql->result = $sql->execute_query($query, 'lib_ajax.php');
            $total = $sql->result();
            $query = "SELECT post_id,title,date FROM {$CONFIG_sql_cpdbname}.mainnews ORDER by date DESC LIMIT " . mysql_res($st) . "," . mysql_res($limit) . "";
            $sql->result = $sql->execute_query($query, 'lib_ajax.php');
            $totalp = $sql->count_rows();
            echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">\n";
            if ($totalp) {
                while ($row = $sql->fetch_row()) {
                    if ($trcolor != 'topic_title4') {
                        $trcolor = 'topic_title4';
                    } else {
                        $trcolor = 'topic_title3';
                    }
                    $date_news = get_date("d-m-Y", $row[date]);
                    echo "<TR class=\"{$trcolor}\" height=\"20\">\n\t<TD width=\"5%\" align=\"center\">\n\t\t<img src=\"theme/{$STORED['THEME']}/images/f_news.gif\">\n\t</TD>\n\t<TD>\n\t\t&nbsp;&nbsp;<a href=\"index.php?act=shownews&post_id={$row['post_id']}\" title=\"{$lang['Click_More']}\">{$row['title']}</a>\n\t</TD>\n\t<TD width=\"25%\" align=\"center\">\n\t\t{$date_news}\n\t</TD>\n";
                    if ($name == 'readnews') {
                        $cols = '5';
                        echo "\t<TD width=\"5%\" align=\"center\">\n\t\t<a href=\"index.php?act=action_news&code=03&post_id={$row['post_id']}\"><img src=\"theme/{$STORED['THEME']}/images/edit.gif\" border=0 title=\"Edit\"></a>\n\t</TD>\n\t<TD width=\"5%\" align=\"center\">\n\t\t<a href=javascript:delete_post(\"index.php?act=action_news&code=05&post_id={$row['post_id']}\")><img src=\"theme/{$STORED['THEME']}/images/drop.gif\" border=\"0\" title=\"Remove\"></a>\n\t</TD>\n";
                    }
                    echo " </TR>\n";
                }
                if ($trcolor != 'topic_title3') {
                    $trcolor = 'topic_title3';
                } else {
                    $trcolor = 'topic_title4';
                }
                echo "<TR class=\"{$trcolor}\" height=\"20\">\n\t<TD width=\"100%\" colspan=\"{$cols}\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\n";
                get_selectpage($total, $limit, $page, "index.php?act=idx", '', $name);
                echo "\t</TD>\n</TR>\n";
            } else {
                echo "<TR class=\"topic_title5\" height=\"20\"><TD></TD></TR>\n<TR class=\"topic_title4\" height=\"20\">\n\t<TD align=\"center\">\n\t\t<B>{$lang['News_nf']}</B>\n\t</TD>\n</TR>\n";
            }
            echo "</TABLE>\n";
            break;
        case "bugreport":
            $limit = '5';
            $IS_EDIT_NEWS = checkprivilege_action($CP[login_id], g_edit_news) ? 1 : 0;
            $page = get_page($st, $limit);
            $query = "SELECT COUNT(*) FROM {$CONFIG_sql_cpdbname}.bugreport";
            $sql->result = $sql->execute_query($query, 'lib_ajax.php');
            $total = $sql->result();
            $query = "SELECT post_id,poster,report,sex,ip,date FROM {$CONFIG_sql_cpdbname}.bugreport ORDER by post_id DESC LIMIT " . mysql_res($st) . "," . mysql_res($limit) . "";
            $sql->result = $sql->execute_query($query, 'lib_ajax.php');
            $totalp = $sql->count_rows();
            echo "\n<TABLE width=\"90%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">\n\t<TR>\n\t\t<TD align=\"right\">\n";
            get_selectpage($total, $limit, $page, "index.php?act=bugreport", '', 'bugreport');
            echo "\t\t</TD>\n\t</TR>\n</TABLE>\n";
            $reply_num = $total - ($page - 1) * $limit + 1;
            while ($row = $sql->fetch_row()) {
                $reply_num--;
                $reply_date = get_date("D-M-Y H:i:s", $row[date]);
                $reply_message = replace_text($row[report]);
                if ($row[sex] == 'M') {
                    $bsex = "<img src=\"theme/{$STORED['THEME']}/images/male.gif\" border=\"0\">";
                } else {
                    $bsex = "<img src=\"theme/{$STORED['THEME']}/images/female.gif\" border=\"0\">";
                }
                echo "<br />\n<TABLE width=\"90%\" border=\"0\" cellpadding=\"3\" cellspacing=\"1\" align=\"center\" class=\"emptytable3\">\n\t<TR class=\"topic_title8\">\n\t\t<TD width=\"25%\" align=\"center\" vAlign=\"top\">\n\t\t\t{$bsex}\n\t\t</TD>\n\t\t<TD width=\"75%\" height=\"100\" valign=\"top\">\n\t\t\t<a href=\"#{$row['post_id']}\" name=\"{$row['post_id']}\">{$lang['Bug_postid']} : #{$reply_num}</a><br />\n\t\t\t<div class=\"poststyle\">{$reply_message}</div>\n\t\t</TD>\n\t</TR>\n\t<TR class=\"topic_title5\">\n\t\t<TD width=\"25%\" align=\"center\">\n\t\t\t{$row['poster']}\n\t\t</TD>\n\t\t<TD width=\"75%\" align=\"right\">\n";
                if ($IS_EDIT_NEWS) {
                    echo "\t\t\t<a href=\"index.php?act=bugreport&code=02&post_id={$row['post_id']}\" title=\"Edit\"><img src =\"theme/{$STORED['THEME']}/images/edit.gif\" border=\"0\"></a>\n\t\t\t&nbsp;&nbsp;&nbsp;<a href=\"index.php?act=bugreport&code=03&post_id={$row['post_id']}\" title=\"Remove\"><img src =\"theme/{$STORED['THEME']}/images/drop.gif\" border=\"0\"></a>&nbsp;&nbsp;&nbsp;\n";
                }
                echo "\t\t\t{$lang['Date']} : {$reply_date} IP : <a href=\"http://{$row['ip']}\" target=\"_blank\">{$row['ip']}\n\t\t</TD>\n\t</TR>\n</TABLE>\n<br />\n";
            }
            break;
    }
}