diff options
| -rw-r--r-- | BitBoardTopic.php | 20 | ||||
| -rw-r--r-- | admin/admin_bitboards_inc.php | 10 | ||||
| -rw-r--r-- | admin/schema_inc.php | 22 | ||||
| -rw-r--r-- | ajax.php | 2 | ||||
| -rw-r--r-- | board.php | 6 | ||||
| -rw-r--r-- | post.php | 4 | ||||
| -rw-r--r-- | templates/admin_bitboards.tpl | 2 | ||||
| -rw-r--r-- | templates/board.tpl | 12 | ||||
| -rw-r--r-- | templates/flipswitch.tpl | 10 | ||||
| -rw-r--r-- | templates/menu_bitboards.tpl | 2 | ||||
| -rw-r--r-- | templates/post.tpl | 6 | ||||
| -rw-r--r-- | templates/post_display.tpl | 2 | ||||
| -rw-r--r-- | templates/topic.tpl | 16 | ||||
| -rw-r--r-- | topic.php | 6 | ||||
| -rw-r--r-- | topic_move.php | 2 |
15 files changed, 61 insertions, 61 deletions
diff --git a/BitBoardTopic.php b/BitBoardTopic.php index e4f2ff5..1406e92 100644 --- a/BitBoardTopic.php +++ b/BitBoardTopic.php @@ -1,7 +1,7 @@ <?php /** -* $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.2 2006/07/06 15:05:27 hash9 Exp $ -* $Id: BitBoardTopic.php,v 1.2 2006/07/06 15:05:27 hash9 Exp $ +* $Header: /cvsroot/bitweaver/_bit_boards/BitBoardTopic.php,v 1.3 2006/07/06 19:44:26 hash9 Exp $ +* $Id: BitBoardTopic.php,v 1.3 2006/07/06 19:44:26 hash9 Exp $ */ /** @@ -10,7 +10,7 @@ * * @date created 2004/8/15 * @author spider <spider@steelsun.com> -* @version $Revision: 1.2 $ $Date: 2006/07/06 15:05:27 $ $Author: hash9 $ +* @version $Revision: 1.3 $ $Date: 2006/07/06 19:44:26 $ $Author: hash9 $ * @class BitBoardTopic */ @@ -52,11 +52,11 @@ class BitBoardTopic extends LibertyAttachable { array_push( $bindVars, $lookupId = @BitBase::verifyId( $this->mRootId ) ? $this->mRootId : $this->mContentId ); $this->getServicesSql( 'content_load_sql_function', $selectSql, $joinSql, $whereSql, $bindVars ); - if (!($gBitUser->hasPermission('p_bitboard_edit') || $gBitUser->hasPermission('p_bitforum_post_edit'))) { + if (!($gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit'))) { //$whereSql .= " AND ((first.`approved` = 1) OR (flc.`user_id` >= 0))"; } - if (!($gBitUser->hasPermission('p_bitboard_edit'))) { + if (!($gBitUser->hasPermission('p_bitboards_edit'))) { //$whereSql .= " AND (th.`deleted` = 0)"; } @@ -111,7 +111,7 @@ WHERE * This function removes a bitboard entry **/ function expunge() { - $gBitSystem->verifyPermission('p_bitboard_edit'); + $gBitSystem->verifyPermission('p_bitboards_edit'); $this->mDb->StartTrans(); $comment = new LibertyComment($this->mRootId); $comment->expungeComments(); @@ -130,7 +130,7 @@ WHERE if ($state==null || !is_numeric($state) || $state > 1 || $state<0) { $this->mErrors[]=("Invalid current state"); } else { - $gBitSystem->verifyPermission('p_bitboard_edit'); + $gBitSystem->verifyPermission('p_bitboards_edit'); $state = (($state+1)%2); $query_sel = "SELECT * FROM `".BIT_DB_PREFIX."forum_thread` WHERE `parent_id` = ?"; $query_ins = "INSERT INTO `".BIT_DB_PREFIX."forum_thread` (`parent_id`,`locked`) VALUES ( ?, $state)"; @@ -155,7 +155,7 @@ WHERE if ($state==null || !is_numeric($state) || $state > 1 || $state<0) { $this->mErrors[]=("Invalid current state"); } else { - $gBitSystem->verifyPermission('p_bitboard_edit'); + $gBitSystem->verifyPermission('p_bitboards_edit'); $state = (($state+1)%2); $query_sel = "SELECT * FROM `".BIT_DB_PREFIX."forum_thread` WHERE `parent_id` = ?"; $query_ins = "INSERT INTO `".BIT_DB_PREFIX."forum_thread` (`parent_id`,`sticky`) VALUES ( ?, $state)"; @@ -243,7 +243,7 @@ WHERE } - if (!($gBitUser->hasPermission('p_bitboard_edit') || $gBitUser->hasPermission('p_bitforum_post_edit'))) { + if (!($gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit'))) { /*$whereSql .= " AND ((post.`approved` = TRUE) OR (lc.`user_id` >= 0))"; $selectSql = " 0 AS unreg";*/ } else { @@ -254,7 +254,7 @@ WHERE WHERE s.`deleted`=FALSE AND ((s.`approved` = FALSE) AND (lc.`user_id` < 0)) AND s.`thread_id` = th.`thread_id` ) AS unreg";*/ } - if (!($gBitUser->hasPermission('p_bitboard_edit'))) { + if (!($gBitUser->hasPermission('p_bitboards_edit'))) { //$whereSql .= " AND (th.`deleted` = FALSE)"; } diff --git a/admin/admin_bitboards_inc.php b/admin/admin_bitboards_inc.php index fe45b89..154d237 100644 --- a/admin/admin_bitboards_inc.php +++ b/admin/admin_bitboards_inc.php @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_boards/admin/Attic/admin_bitboards_inc.php,v 1.2 2006/07/06 14:31:22 hash9 Exp $ +// $Header: /cvsroot/bitweaver/_bit_boards/admin/Attic/admin_bitboards_inc.php,v 1.3 2006/07/06 19:44:26 hash9 Exp $ // Copyright (c) 2005 bitweaver BitForum // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -13,19 +13,19 @@ require_once( BITBOARDS_PKG_PATH.'BitBoard.php' ); $formBitForumLists = array( - "bitboard_list_bitforum_id" => array( + "bitboards_list_bitforum_id" => array( 'label' => 'Id', 'note' => 'Display the bitboard id.', ), - "bitboard_list_title" => array( + "bitboards_list_title" => array( 'label' => 'Title', 'note' => 'Display the title.', ), - "bitboard_list_description" => array( + "bitboards_list_description" => array( 'label' => 'Description', 'note' => 'Display the description.', ), - "bitboard_list_data" => array( + "bitboards_list_data" => array( 'label' => 'Text', 'note' => 'Display the text.', ), diff --git a/admin/schema_inc.php b/admin/schema_inc.php index 1d1a83a..dc0dddb 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -46,24 +46,24 @@ $gBitInstaller->registerSchemaSequences( BITBOARDS_PKG_NAME, $sequences ); $gBitInstaller->registerSchemaDefault( BITBOARDS_PKG_NAME, array( - // "INSERT INTO `".BIT_DB_PREFIX."bit_bitboard_types` (`type`) VALUES ('BitForum')", + // "INSERT INTO `".BIT_DB_PREFIX."bit_bitboards_types` (`type`) VALUES ('BitForum')", ) ); // ### Default UserPermissions $gBitInstaller->registerUserPermissions( BITBOARDS_PKG_NAME, array( - array( 'p_bitboard_admin', 'Can admin bitforum', 'admin', BITBOARDS_PKG_NAME ), - array( 'p_bitboard_create', 'Can create a bitforum', 'admin', BITBOARDS_PKG_NAME ), - array( 'p_bitboard_edit', 'Can edit any bitforum', 'admin', BITBOARDS_PKG_NAME ), - array( 'p_bitboard_read', 'Can read bitforum', 'basic', BITBOARDS_PKG_NAME ), - array( 'p_bitboard_remove', 'Can delete bitforum', 'admin', BITBOARDS_PKG_NAME ), + array( 'p_bitboards_admin', 'Can admin bitforum', 'admin', BITBOARDS_PKG_NAME ), + array( 'p_bitboards_create', 'Can create a bitforum', 'admin', BITBOARDS_PKG_NAME ), + array( 'p_bitboards_edit', 'Can edit any bitforum', 'admin', BITBOARDS_PKG_NAME ), + array( 'p_bitboards_read', 'Can read bitforum', 'basic', BITBOARDS_PKG_NAME ), + array( 'p_bitboards_remove', 'Can delete bitforum', 'admin', BITBOARDS_PKG_NAME ), ) ); // ### Default Preferences $gBitInstaller->registerPreferences( BITBOARDS_PKG_NAME, array( - array( BITBOARDS_PKG_NAME, 'bitboard_default_ordering', 'bitforum_id_desc' ), - array( BITBOARDS_PKG_NAME, 'bitboard_list_bitforum_id', 'y' ), - array( BITBOARDS_PKG_NAME, 'bitboard_list_title', 'y' ), - array( BITBOARDS_PKG_NAME, 'bitboard_list_description', 'y' ), - array( BITBOARDS_PKG_NAME, 'bitboard_list_bitforums', 'y' ), + array( BITBOARDS_PKG_NAME, 'bitboards_default_ordering', 'bitforum_id_desc' ), + array( BITBOARDS_PKG_NAME, 'bitboards_list_bitforum_id', 'y' ), + array( BITBOARDS_PKG_NAME, 'bitboards_list_title', 'y' ), + array( BITBOARDS_PKG_NAME, 'bitboards_list_description', 'y' ), + array( BITBOARDS_PKG_NAME, 'bitboards_list_bitforums', 'y' ), ) ); ?> @@ -18,7 +18,7 @@ require_once( BITBOARDS_PKG_PATH.'BitBoard.php' ); $gBitSystem->verifyPackage( 'bitboards' ); // Now check permissions to access this page -$gBitSystem->verifyPermission( 'p_bitboard_read' ); +$gBitSystem->verifyPermission( 'p_bitboards_read' ); function ajax_nice_error($errno, $errstr, $errfile, $errline) { $errortype = array ( @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_boards/Attic/board.php,v 1.2 2006/07/06 14:31:21 hash9 Exp $ +// $Header: /cvsroot/bitweaver/_bit_boards/Attic/board.php,v 1.3 2006/07/06 19:44:26 hash9 Exp $ // Copyright (c) 2004 bitweaver Messageboards // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -10,7 +10,7 @@ require_once( BITBOARDS_PKG_PATH.'BitBoard.php' ); $gBitSystem->verifyPackage( 'bitboards' ); // Now check permissions to access this page -$gBitSystem->verifyPermission( 'p_bitboard_read' ); +$gBitSystem->verifyPermission( 'p_bitboards_read' ); /* mass-remove: the checkboxes are sent as the array $_REQUEST["checked[]"], values are the wiki-PageNames, @@ -24,7 +24,7 @@ if so, we call histlib's method remove_all_versions for all the checked bitboard if( isset( $_REQUEST["submit_mult"] ) && isset( $_REQUEST["checked"] ) && $_REQUEST["submit_mult"] == "remove_bitboards" ) { // Now check permissions to remove the selected bitboard - $gBitSystem->verifyPermission( 'p_bitboard_remove' ); + $gBitSystem->verifyPermission( 'p_bitboards_remove' ); if( !empty( $_REQUEST['cancel'] ) ) { // user cancelled - just continue on, doing nothing @@ -5,7 +5,7 @@ require_once( BITBOARDS_PKG_PATH.'BitBoard.php' ); if (!empty($_REQUEST['action'])) { // Now check permissions to access this page - $gBitSystem->verifyPermission( 'p_bitboard_edit' ); + $gBitSystem->verifyPermission( 'p_bitboards_edit' ); require_once( BITBOARDS_PKG_PATH.'lookup_inc.php' ); switch ($_REQUEST['action']) { @@ -41,7 +41,7 @@ $board = new LibertyContent(); $board->mContentId=$thread->mInfo['th_root_id']; $board->mInfo['content_id']=$thread->mInfo['th_root_id']; $board->mInfo=BitBoard::loadContent($thread->mInfo['th_root_id']); -$board->mInfo['display_url']=BitBoard::getForumDisplayUrl(&$board); +$board->mInfo['display_url']=BitBoard::getForumDisplayUrl($board); $board->load(); $gBitSmarty->assign_by_ref( 'board', $board ); diff --git a/templates/admin_bitboards.tpl b/templates/admin_bitboards.tpl index 0330d1f..2e3eb45 100644 --- a/templates/admin_bitboards.tpl +++ b/templates/admin_bitboards.tpl @@ -9,7 +9,7 @@ {forminput} <select name="homeBitForum" id="homeBitForum"> {section name=ix loop=$bitboards} - <option value="{$bitboards[ix].bitforum_id|escape}" {if $bitforums[ix].bitforum_id eq $home_bitforum}selected="selected"{/if}>{$bitforums[ix].title|escape|truncate:20:"...":true}</option> + <option value="{$bitboards[ix].bitboards_id|escape}" {if $bitforums[ix].bitboards_id eq $home_bitforum}selected="selected"{/if}>{$bitforums[ix].title|escape|truncate:20:"...":true}</option> {sectionelse} <option>{tr}No records found{/tr}</option> {/section} diff --git a/templates/board.tpl b/templates/board.tpl index 9c54e3a..b4fcdc8 100644 --- a/templates/board.tpl +++ b/templates/board.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/board.tpl,v 1.1 2006/06/28 15:45:26 spiderr Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/board.tpl,v 1.2 2006/07/06 19:44:26 hash9 Exp $ *} {strip} <div class="floaticon">{bithelp}</div> @@ -30,12 +30,12 @@ </td> <td><a href="{$board.url}" title="{$board_title}">{$board_title}</a></td> {* - {if $gBitUser->hasPermission('p_bitboard_edit') || $gBitUser->hasPermission('p_bitforum_post_edit')} + {if $gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit')} <td style="text-align:right;">{if $board.unreg > 0}<a style="color: blue;" href="{$smarty.const.MESSAGEBOARDS_PKG_URL}index.php?board_id={$board.board_id|escape:"url"}" title="{$board.title|escape}">{$board.unreg} Unregistered Posts</a>{/if}</td>{/if} - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <td class="actionicon"> {smartlink ititle="Edit" ifile="edit.php" ibiticon="liberty/edit" board_id=$board.board_id} - <input type="checkbox" name="checked[]" title="{$board.title|escape}" value="{$board.bitboard_id}" /> + <input type="checkbox" name="checked[]" title="{$board.title|escape}" value="{$board.bitboards_id}" /> </td> {/if} *} @@ -49,7 +49,7 @@ {/foreach} </table> {* - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <div style="text-align:right;"> <script type="text/javascript">/* <![CDATA[ check / uncheck all */ document.write("<label for=\"switcher\">{tr}Select All{/tr}</label> "); @@ -58,7 +58,7 @@ <select name="submit_mult" onchange="this.form.submit();"> <option value="" selected="selected">{tr}with checked{/tr}:</option> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <option value="remove_bitboards">{tr}remove{/tr}</option> {/if} </select> diff --git a/templates/flipswitch.tpl b/templates/flipswitch.tpl index 453e0c0..de3a282 100644 --- a/templates/flipswitch.tpl +++ b/templates/flipswitch.tpl @@ -13,7 +13,7 @@ $flip_downname=>$flip.$flip_name.downname {if $gBitUser->hasPermission( 'p_boards_edit' )} <span> <a onclick=" - var url = '{$smarty.const.BITBOARDS_PKG_URL}ajax.php?req={$flip.$flip_name.req}&seq=' + var url = '{$smarty.const.BITBOARDS_PKG_URL}ajax.php?req={$flip.$flip_name.req}&seq=' + new Date().getTime()+ '&{$flip.$flip_name.idname}={$flip.$flip_name.id|escape:"url"} &{$flip_name}={$flip.$flip_name.state|escape:"url"}'; @@ -31,13 +31,13 @@ $flip_downname=>$flip.$flip_name.downname &{$flip_name}={$flip.$flip_name.state|escape:"url"}"> {/if} {if $flip.$flip_name.state==1} - {biticon ipackage=bitboard iname=$flip.$flip_name.up iexplain=$flip.$flip_name.upname} + {biticon ipackage=bitboards iname=$flip.$flip_name.up iexplain=$flip.$flip_name.upname} {else} - {if $gBitUser->hasPermission( 'p_bitboard_edit' )} - {biticon ipackage=bitboard iname=$flip.$flip_name.down iexplain=$flip.$flip_name.downname} + {if $gBitUser->hasPermission( 'p_bitboards_edit' )} + {biticon ipackage=bitboards iname=$flip.$flip_name.down iexplain=$flip.$flip_name.downname} {/if} {/if} -{if $gBitUser->hasPermission( 'p_bitboard_edit' )} +{if $gBitUser->hasPermission( 'p_bitboards_edit' )} </a> </span> {/if} diff --git a/templates/menu_bitboards.tpl b/templates/menu_bitboards.tpl index 3cc272e..39401d7 100644 --- a/templates/menu_bitboards.tpl +++ b/templates/menu_bitboards.tpl @@ -1,6 +1,6 @@ {strip} <ul> - {if $gBitUser->hasPermission( 'p_bitboard_read')} + {if $gBitUser->hasPermission( 'p_bitboards_read')} <li><a class="item" href="{$smarty.const.BITBOARDS_PKG_URL}index.php">{tr}BitBoard Home{/tr}</a></li> {/if} </ul> diff --git a/templates/post.tpl b/templates/post.tpl index 6f4ba9e..11cba4e 100644 --- a/templates/post.tpl +++ b/templates/post.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/post.tpl,v 1.2 2006/07/06 14:31:23 hash9 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/post.tpl,v 1.3 2006/07/06 19:44:26 hash9 Exp $ *} {strip} {if $comments and $gBitSystem->isFeatureActive('comments_display_option_bar')} {form action="`$comments_return_url`#editcomments"} @@ -73,7 +73,7 @@ {/foreach} </table> <p style="text-align: right;"><a title="{tr}Post on this thread{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{tr}Post on this thread{/tr} {biticon ipackage=bitboard iname="mail_new" iexplain="Post on this thread"}</a></p> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <div style="text-align:right;"> <script type="text/javascript">/* <![CDATA[ check / uncheck all */ document.write("<label for=\"switcher\">{tr}Select All{/tr}</label> "); @@ -82,7 +82,7 @@ <select name="submit_mult" onchange="this.form.submit();"> <option value="" selected="selected">{tr}with checked{/tr}:</option> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <option value="remove_bitboards">{tr}remove{/tr}</option> {/if} </select> diff --git a/templates/post_display.tpl b/templates/post_display.tpl index b6c667c..9174706 100644 --- a/templates/post_display.tpl +++ b/templates/post_display.tpl @@ -23,7 +23,7 @@ <div class="display bitboard"> <div class="floaticon"> {if $print_page ne 'y' && $comment.deleted==0 } - {if $gBitUser->hasPermission( 'p_bitboard_edit' ) && (($comment.user_id<0 && $comment.approved==0)||$comment.user_id>=0)} + {if $gBitUser->hasPermission( 'p_bitboards_edit' ) && (($comment.user_id<0 && $comment.approved==0)||$comment.user_id>=0)} <div style="display: inline; border-right: 1px solid blue; padding: 2px; margin-right: 8px;"> {if $comment.user_id<0 && $comment.approved==0} <a title="{tr}Approve this post{/tr}" href="{$smarty.const.BITBOARDS_PKG_URL}post.php?t={$thread->mRootId}&action=1&post_id={$comment.post_id}"> diff --git a/templates/topic.tpl b/templates/topic.tpl index 356c378..9db5c46 100644 --- a/templates/topic.tpl +++ b/templates/topic.tpl @@ -1,4 +1,4 @@ -{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/topic.tpl,v 1.2 2006/07/06 14:31:24 hash9 Exp $ *} +{* $Header: /cvsroot/bitweaver/_bit_boards/templates/Attic/topic.tpl,v 1.3 2006/07/06 19:44:26 hash9 Exp $ *} {strip} <div class="listing bitboard"> <div class="header"> @@ -29,7 +29,7 @@ <th>{smartlink ititle="Started" isort=flc_created offset=$control.offset}</th> <th>{smartlink ititle="Last Update By" isort=llc_user_id offset=$control.offset}</th> <th>{smartlink ititle="Last Update" isort=llc_created offset=$control.offset}</th> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <th>{tr}Actions{/tr}</th> {/if} </tr>*} @@ -66,12 +66,12 @@ <td> <a href="{$thread.url}" title="{$thread.flc_title}">{$thread.flc_title|escape}</a>, started by {if $thread.flc_user_id < 0}{$thread.first_unreg_uname|escape}{else}{displayname user_id=$thread.flc_user_id}{/if} {$thread.flc_created|reltime|escape}{if $thread.post_count > 1}, with {$thread.post_count|escape} posts, last update by {if $thread.flc_user_id < 0}{$thread.first_unreg_uname|escape}{else}{displayname user_id=$thread.flc_user_id}{/if} {$thread.llc_last_modified|reltime|escape}{/if}. </td> - {if $gBitUser->hasPermission('p_bitboard_edit') || $gBitUser->hasPermission('p_bitforum_post_edit')} + {if $gBitUser->hasPermission('p_bitboards_edit') || $gBitUser->hasPermission('p_bitboards_post_edit')} <td style="text-align:right;">{if $thread.unreg > 0}<a style="color: blue;" href="{$smarty.const.BITBOARDS_PKG_URL}index.php?board_id={$thread.th_board_id|escape:"url"}&thread_id={$thread.th_thread_id|escape:"url"}" title="{$thread.flc_title}">{$thread.unreg} Unregistered Posts</a>{/if}</td> - {if ($gBitUser->hasPermission( 'p_bitboard_edit' )||$gBitUser->hasPermission( 'p_bitforum_remove' ))} + {if ($gBitUser->hasPermission( 'p_bitboards_edit' )||$gBitUser->hasPermission( 'p_bitboards_remove' ))} <td class="actionicon"> {if $thread.th_moved==0} - {if $gBitUser->hasPermission( 'p_bitboard_edit' )} + {if $gBitUser->hasPermission( 'p_bitboards_edit' )} {*smartlink ititle="Edit" ifile="edit.php" ibiticon="liberty/edit" board_id=$thread.board_id*} <a onclick=" document.getElementById('move_block_{$thread.th_thread_id|escape:"url"}').style['display']='inline'; @@ -98,7 +98,7 @@ </select> </div> {/if} - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <a title="{tr}Delete Thread{/tr}" href="{$smarty.const.BITBOARDS_PKG_URL}remove_bitboard.php?thread_id={$thread.th_thread_id|escape:"url"}">{biticon ipackage=bitboard iname="mail_delete" iexplain="Delete Thread"}</a> <input type="checkbox" name="checked[]" title="{$thread.flc_title|escape}" value="{$thread.th_thread_id}" /> {/if} @@ -115,7 +115,7 @@ </table> <p style="text-align: right;"><a title="{tr}Start a new thread{/tr}" href="{$comments_return_url}&post_comment_request=1#editcomments">{tr}Start a new thread{/tr} {biticon ipackage=bitboard iname="mail_new" iexplain="Start a new thread"}</a></p> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <div style="text-align:right;"> <script type="text/javascript">/* <![CDATA[ check / uncheck all */ document.write("<label for=\"switcher\">{tr}Select All{/tr}</label> "); @@ -124,7 +124,7 @@ <select name="submit_mult" onchange="this.form.submit();"> <option value="" selected="selected">{tr}with checked{/tr}:</option> - {if $gBitUser->hasPermission( 'p_bitboard_remove' )} + {if $gBitUser->hasPermission( 'p_bitboards_remove' )} <option value="remove_bitboards">{tr}remove{/tr}</option> {/if} </select> @@ -1,5 +1,5 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_boards/Attic/topic.php,v 1.2 2006/07/06 14:31:21 hash9 Exp $ +// $Header: /cvsroot/bitweaver/_bit_boards/Attic/topic.php,v 1.3 2006/07/06 19:44:26 hash9 Exp $ // Copyright (c) 2004 bitweaver Messageboards // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. @@ -15,7 +15,7 @@ $gBitSmarty->assign( 'loadAjax', TRUE ); $gBitSystem->verifyPackage( 'bitboards' ); // Now check permissions to access this page -$gBitSystem->verifyPermission( 'p_bitboard_read' ); +$gBitSystem->verifyPermission( 'p_bitboards_read' ); if (isset($_REQUEST["locked"]) || isset($_REQUEST["sticky"])) { @@ -51,7 +51,7 @@ if so, we call histlib's method remove_all_versions for all the checked bitboard if( isset( $_REQUEST["submit_mult"] ) && isset( $_REQUEST["checked"] ) && $_REQUEST["submit_mult"] == "remove_bitboards" ) { // Now check permissions to remove the selected bitboard - $gBitSystem->verifyPermission( 'p_bitboard_remove' ); + $gBitSystem->verifyPermission( 'p_bitboards_remove' ); if( !empty( $_REQUEST['cancel'] ) ) { // user cancelled - just continue on, doing nothing diff --git a/topic_move.php b/topic_move.php index eeef82b..4d34ba8 100644 --- a/topic_move.php +++ b/topic_move.php @@ -7,7 +7,7 @@ require_once( BITBOARDS_PKG_PATH.'BitBoard.php' ); $gBitSystem->verifyPackage( 'bitboards' ); // Now check permissions to access this page -$gBitSystem->verifyPermission( 'p_bitboard_edit' ); +$gBitSystem->verifyPermission( 'p_bitboards_edit' ); if( isset( $_REQUEST["confirm"] ) ) { |
