5
A couple of errors:
1) Missing end braces
2) Semi-colon attached to if statement declaration.
If corrected, the final code section might look like this :
le="color: #000000"><?php if ( $isDeleteOne ){ insertlog("Post Deleted"); redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTDELETED); }else { insertlog("Post Deleted"); redirect_header("viewforum.php?forum=$forum", 2, _MD_POSTSDELETED); exit(); } //add bracket here if (include XOOPS_ROOT_PATH."/header.php"){ // delete semi-colon and add bracket here if ( $act == 1 ) { xoops_confirm(array('post_id' => $post_id, 'viewmode' => $viewmode, 'order' => $order, 'forum' => $forum, 'topic_id' => $topic_id, 'ok' => NEWBB_DELETEONE), 'delete.php', _MD_DEL_ONE); } if ( $act == 99 ) { xoops_confirm(array('post_id' => $post_id, 'viewmode' => $viewmode, 'order' => $order, 'forum' => $forum, 'topic_id' => $topic_id, 'ok' => NEWBB_DELETEONE), 'delete.php', _MD_DEL_ONE); xoops_confirm(array('post_id' => $post_id, 'viewmode' => $viewmode, 'order' => $order, 'forum' => $forum, 'topic_id' => $topic_id, 'ok' => NEWBB_DELETEALL), 'delete.php', _MD_DEL_RELATED); } }
みんなちがってみんないい。
XOOPS 2.0.13.2