Location: PHPKode > scripts > WH Board > wh_board/admin/blog_comments_edit.php
<?php require('management/admin_functions/session.php'); ?>
<?php require('management/admin_layout/header.php'); ?>

    <ul id="breadcrumbs">
        <li><a href="index.php"><?php echo $lang['main_navigation']; ?></a></li>
        <li><a href="blog.php">Blog</a></li>
        <li><a href="blog_comments_edit.php?id=<?php echo (int)$_GET['id']; ?>" class="actual"><?php echo $lang['manage_comments']; ?></a></li>
    </ul>

    <div class="clear_blog"></div>

    <?php

    if((isset($_GET['id'])) && (is_numeric($_GET['id']))) {

	$id = mysql_real_escape_string($_GET['id']);
	$id = intval($_GET['id']);
	$by = intval($_GET['id']);

		}else{

		echo '<p class="false">' . $lang['invalid_id'] . '!</p>';
		}

    $count = mysql_query("SELECT com_id FROM comments WHERE com_id2 = '" . $id . "'") OR die(mysql_error());
	include('../framework/navi_extended.php');

    $query = "SELECT * FROM comments WHERE com_id2 = '" . $id . "' ORDER BY com_date DESC LIMIT $start,$entries";
    $result = mysql_query($query) OR die(mysql_error());

    if(!$result) {

	echo '<p class="false">' . $lang['no_comments'] . '</p>' . mysql_error();

		}else{

		if(intval(mysql_num_rows($result)) == 0) {

		echo '<p class="false">' . $lang['no_comments'] . '</p>';

	}else{

    include_once('../functions/bbcode.php');
	include_once('../functions/badwords.php');

    while($row = mysql_fetch_assoc($result)) {

        echo '<table width="100%" class="tables">
        <tr>
        <td colspan="2"><h5>' . htmlentities($row['com_title'], ENT_QUOTES) . '</h5></td>
        </tr>
        <tr>
        <td width="10%" valign="top"><strong>Autor:</strong></td>
        <td width="90%" valign="top">' . htmlentities($row['com_author'], ENT_QUOTES) . '<span class="com_time">' . date('d.m.Y - H:i', strtotime($row['com_date'])) . '</span></td>
        </tr>
        <tr>
        <td width="10%" valign="top"><strong>Kommentar:</strong></td>
        <td width="90%" valign="top">' . bbcode(badwords(stripslashes(nl2br($row['com_comment'])))) . '</td>
        </tr>
        <tr>
        <td colspan="2" align="right"><a href="blog_comments_delete.php?id=' . (int)$row['com_id'] . '&from=' . $by . '"><img src="../style/images/admin/icons/delete.png" alt="l&ouml;schen" title="l&ouml;schen" border="0"></a></td>
        </tr>
        </table>
        <div class="cleaning"></div>';
        }

    echo '<div id="navigation">
    <span class="pages">' . $lang['page'] . ' ' . $page . ' ' . $lang['of'] . ' ' . $allsites . '</span>';
    echo $link_string;
    echo '</div>
    <div class="clear_navi"></div>';
    }
    }

    ?>

<?php require('management/admin_layout/footer.php'); ?>
Return current item: WH Board