summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-03-31 15:54:14 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-03-31 15:54:14 +0000
commit65a6ecbd758c331a851ae5ac12abed135abe0334 (patch)
tree0e2741a679966a1a711580ac50290bf09b17bb24 /admin
parent9806e9356f7ee3793510747d52313bd79eff0f7e (diff)
downloadboards-65a6ecbd758c331a851ae5ac12abed135abe0334.tar.gz
boards-65a6ecbd758c331a851ae5ac12abed135abe0334.tar.bz2
boards-65a6ecbd758c331a851ae5ac12abed135abe0334.zip
rename bitboards to boards
Diffstat (limited to 'admin')
-rw-r--r--admin/admin_boards_inc.php (renamed from admin/admin_bitboards_inc.php)18
-rw-r--r--admin/schema_inc.php34
-rw-r--r--admin/upgrade_inc.php2
3 files changed, 27 insertions, 27 deletions
diff --git a/admin/admin_bitboards_inc.php b/admin/admin_boards_inc.php
index aae59d6..9fc2299 100644
--- a/admin/admin_bitboards_inc.php
+++ b/admin/admin_boards_inc.php
@@ -1,27 +1,27 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_boards/admin/Attic/admin_bitboards_inc.php,v 1.10 2007/01/08 04:58:37 spiderr Exp $
+// $Header: /cvsroot/bitweaver/_bit_boards/admin/admin_boards_inc.php,v 1.1 2007/03/31 15:54:13 squareing Exp $
// Copyright (c) 2005 bitweaver BitBoards
// 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.
// is this used?
-//if (isset($_REQUEST["bitboardset"]) && isset($_REQUEST["homeBitBoards"])) {
+//if (isset($_REQUEST["boardset"]) && isset($_REQUEST["homeBitBoards"])) {
// $gBitSystem->storeConfig("home_bitboard", $_REQUEST["homeBitBoards"]);
// $gBitSmarty->assign('home_bitboard', $_REQUEST["homeBitBoards"]);
//}
-require_once( BITBOARDS_PKG_PATH.'BitBoard.php' );
+require_once( BOARDS_PKG_PATH.'BitBoard.php' );
$formBitBoardsLists = array(
- 'bitboards_thread_track' => array(
+ 'boards_thread_track' => array(
'label' => 'Enable Topic Status Tracking',
'note' => 'Allow users to see what topic have been changed since they last logged on.',
),
- 'bitboards_thread_notification' => array(
+ 'boards_thread_notification' => array(
'label' => 'Enable Topic Reply Notification',
'note' => 'Allow users to be sent emails when topics they are interested in receive replies.',
),
- 'bitboards_posts_anon_moderation' => array(
+ 'boards_posts_anon_moderation' => array(
'label' => 'Enable Forced Anon Post Moderation',
'note' => 'Require that ALL Anonymous posts must be validated before they are shown.',
),
@@ -33,12 +33,12 @@ $processForm = set_tab();
if( $processForm ) {
$bitboardToggles = array_merge( $formBitBoardsLists );
foreach( $bitboardToggles as $item => $data ) {
- simple_set_toggle( $item, BITBOARDS_PKG_NAME );
+ simple_set_toggle( $item, BOARDS_PKG_NAME );
}
}
$board = new BitBoard();
-$bitboards = $board->getBoardSelectList( $_REQUEST );
-$gBitSmarty->assign_by_ref(BITBOARDS_PKG_NAME, $bitboards['data']);
+$boards = $board->getBoardSelectList( $_REQUEST );
+$gBitSmarty->assign_by_ref(BOARDS_PKG_NAME, $boards['data']);
?>
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d036ea2..da16cd2 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -20,13 +20,13 @@ $tables = array(
board_id I4 PRIMARY,
content_id I4 NOTNULL,
migrate_board_id INT
- CONSTRAINT ', CONSTRAINT `bitboards_content_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)'
+ CONSTRAINT ', CONSTRAINT `boards_content_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)'
",
'boards_map' => "
board_content_id I4 NOTNULL,
topic_content_id I4 PRIMARY
- CONSTRAINT ', CONSTRAINT `bitboards_topics_boards_ref` FOREIGN KEY (`board_content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)
- , CONSTRAINT `bitboards_topics_related_ref` FOREIGN KEY (`topic_content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)'
+ CONSTRAINT ', CONSTRAINT `boards_topics_boards_ref` FOREIGN KEY (`board_content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)
+ , CONSTRAINT `boards_topics_related_ref` FOREIGN KEY (`topic_content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content` (`content_id`)'
",
'boards_tracking' => "
user_id I4 NOTNULL,
@@ -40,10 +40,10 @@ $tables = array(
global $gBitInstaller;
foreach( array_keys( $tables ) AS $tableName ) {
- $gBitInstaller->registerSchemaTable( BITBOARDS_PKG_NAME, $tableName, $tables[$tableName] );
+ $gBitInstaller->registerSchemaTable( BOARDS_PKG_NAME, $tableName, $tables[$tableName] );
}
-$gBitInstaller->registerPackageInfo( BITBOARDS_PKG_NAME, array(
+$gBitInstaller->registerPackageInfo( BOARDS_PKG_NAME, array(
'description' => "Highly integrated message boards package.",
'license' => '<a href="http://www.gnu.org/licenses/licenses.html#LGPL">LGPL</a>',
) );
@@ -52,30 +52,30 @@ $gBitInstaller->registerPackageInfo( BITBOARDS_PKG_NAME, array(
$indices = array(
'boards_id_idx' => array('table' => 'boards', 'cols' => 'board_id', 'opts' => NULL ),
);
-$gBitInstaller->registerSchemaIndexes( BITBOARDS_PKG_NAME, $indices );
+$gBitInstaller->registerSchemaIndexes( BOARDS_PKG_NAME, $indices );
// ### Sequences
$sequences = array (
'boards_board_id_seq' => array( 'start' => 1 ),
);
-$gBitInstaller->registerSchemaSequences( BITBOARDS_PKG_NAME, $sequences );
+$gBitInstaller->registerSchemaSequences( BOARDS_PKG_NAME, $sequences );
// ### Default UserPermissions
-$gBitInstaller->registerUserPermissions( BITBOARDS_PKG_NAME, array(
- array( 'p_bitboards_admin' , 'Can admin message boards' , 'admin' , BITBOARDS_PKG_NAME ),
- array( 'p_bitboards_create', 'Can create a message board', 'editors', BITBOARDS_PKG_NAME ),
- array( 'p_bitboards_edit' , 'Can edit any message board', 'editors', BITBOARDS_PKG_NAME ),
- array( 'p_bitboards_read' , 'Can read message boards' , 'basic' , BITBOARDS_PKG_NAME ),
- array( 'p_bitboards_remove', 'Can delete message boards' , 'editors', BITBOARDS_PKG_NAME ),
+$gBitInstaller->registerUserPermissions( BOARDS_PKG_NAME, array(
+ array( 'p_boards_admin' , 'Can admin message boards' , 'admin' , BOARDS_PKG_NAME ),
+ array( 'p_boards_create', 'Can create a message board', 'editors', BOARDS_PKG_NAME ),
+ array( 'p_boards_edit' , 'Can edit any message board', 'editors', BOARDS_PKG_NAME ),
+ array( 'p_boards_read' , 'Can read message boards' , 'basic' , BOARDS_PKG_NAME ),
+ array( 'p_boards_remove', 'Can delete message boards' , 'editors', BOARDS_PKG_NAME ),
) );
// ### Default Preferences
-$gBitInstaller->registerPreferences( BITBOARDS_PKG_NAME, array(
- array( BITBOARDS_PKG_NAME, 'bitboards_thread_track', 'y' ),
+$gBitInstaller->registerPreferences( BOARDS_PKG_NAME, array(
+ array( BOARDS_PKG_NAME, 'boards_thread_track', 'y' ),
));
if(defined('RSS_PKG_NAME')) {
- $gBitInstaller->registerPreferences( BITBOARDS_PKG_NAME, array(
- array( RSS_PKG_NAME, BITBOARDS_PKG_NAME.'_rss', 'y'),
+ $gBitInstaller->registerPreferences( BOARDS_PKG_NAME, array(
+ array( RSS_PKG_NAME, BOARDS_PKG_NAME.'_rss', 'y'),
));
}
?>
diff --git a/admin/upgrade_inc.php b/admin/upgrade_inc.php
index def297d..a9aeb4b 100644
--- a/admin/upgrade_inc.php
+++ b/admin/upgrade_inc.php
@@ -15,7 +15,7 @@ INSERT INTO boards_map (board_content_id, topic_content_id) (SELECT content_id,
*/
require_once( '../../bit_setup_inc.php' );
-require_once( BITBOARDS_PKG_PATH.'admin/phpbb_upgrade.php' );
+require_once( BOARDS_PKG_PATH.'admin/phpbb_upgrade.php' );
migrate_phpbb();