Location: PHPKode > projects > board-tnk > board-tnk/include/delete_thread_answer.inc
<?
// delete thread in admin mode
if($admin_action=="delete_thread"){
        ?>
        <br>
        <form action="<? print("$PHP_SELF"); ?>" method="post">
        <input type="hidden" name="id_delete" value="<? print("$id"); ?>">
        <input type="hidden" name="admin" value="admin">
        <input type="hidden" name="admin_action" value="delete_thread_really">
        <input type="hidden" name="rows_init" value="<? print("$rows_init"); ?>">
        <input type="hidden" name="show" value="thread_list">
        <? include("include/all_forum_form.inc"); ?>
        <center>
        <b><input type="submit" value="<? print("$talk[58]"); ?>"></b>
        </center>
        </form>
        <br>
<?
}
// end delete thread

// delete answer in admin mode
if($admin_action=="delete_answer"){
        ?>
        <br>
        <form action="<? print("$PHP_SELF"); ?>" method="post">
        <input type="hidden" name="id" value="<? print("$id"); ?>">
        <input type="hidden" name="id_delete" value="<? print("$id_delete"); ?>">
        <input type="hidden" name="admin" value="admin">
        <input type="hidden" name="admin_action" value="delete_answer_really">
        <input type="hidden" name="rows_init" value="<? print("$rows_init"); ?>">
        <input type="hidden" name="threads" value="<? print("$threads"); ?>">
        <input type="hidden" name="show" value="reply_list">
        <? include("include/all_forum_form.inc"); ?>
        <center>
        <b><input type="submit" value="<? print("$talk[75]"); ?>"></b>
        </center>
        </form>
        <br>
<?
}
// end answer delete

// message answer has been deleted
if($auth && $admin_action=="delete_answer_really"){
        print("<br><center><b>$talk[79]</b></center><br>");
}
Return current item: board-tnk