summaryrefslogtreecommitdiff
path: root/admin/admin_boards_inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/admin_boards_inc.php')
-rwxr-xr-x[-rw-r--r--]admin/admin_boards_inc.php77
1 files changed, 38 insertions, 39 deletions
diff --git a/admin/admin_boards_inc.php b/admin/admin_boards_inc.php
index e9c494e..3ece564 100644..100755
--- a/admin/admin_boards_inc.php
+++ b/admin/admin_boards_inc.php
@@ -10,57 +10,57 @@
// $gBitSmarty->assign('home_bitboard', $_REQUEST["homeBitBoards"]);
//}
-require_once( BOARDS_PKG_CLASS_PATH.'BitBoard.php' );
+namespace Bitweaver\Boards;;
-$formBitBoardsLists = array(
- 'boards_thread_track' => array(
+$formBitBoardsLists = [
+ 'boards_thread_track' => [
'label' => 'Enable Topic Status Tracking',
- 'note' => 'Allow users to see what topic have been changed since they last logged on.',
- ),
- 'boards_thread_notification' => array(
+ 'note' => 'Allow users to see what topic have been changed since they last logged on.',
+ ],
+ 'boards_thread_notification' => [
'label' => 'Enable Topic Reply Notification',
- 'note' => 'Allow users to be sent emails when topics they are interested in receive replies.',
- ),
- 'boards_posts_anon_moderation' => array(
+ 'note' => 'Allow users to be sent emails when topics they are interested in receive replies.',
+ ],
+ 'boards_posts_anon_moderation' => [
'label' => 'Require Anonymous Post Moderation',
- 'note' => 'Require that ALL Anonymous posts must be validated before they are shown.',
- ),
- 'boards_hide_edit_tpl' => array(
+ 'note' => 'Require that ALL Anonymous posts must be validated before they are shown.',
+ ],
+ 'boards_hide_edit_tpl' => [
'label' => 'Hide Linked Boards Option',
- 'note' => 'Hide the <em>Linked Boards</em> option on edit pages to link any given content to a forum thread. If you hide this, you will have to manually assign content to a forum thread if you want to make full use of the boards.',
- ),
- 'boards_link_by_pigeonholes' => array(
+ 'note' => 'Hide the <em>Linked Boards</em> option on edit pages to link any given content to a forum thread. If you hide this, you will have to manually assign content to a forum thread if you want to make full use of the boards.',
+ ],
+ 'boards_link_by_pigeonholes' => [
'label' => 'Link by Pigeonholes',
- 'note' => 'Link content to boards based on pigeonholes. This is useful when you have only one board in a given pigeonhole and want all content in the same pigeonhole to be shown in the board. Note that you MUST run the following SQL on your database to allow content in more than one board: "alter table boards_map drop constraint boards_map_pkey;" This is therfore a very advanced option.'
- ),
-);
+ 'note' => 'Link content to boards based on pigeonholes. This is useful when you have only one board in a given pigeonhole and want all content in the same pigeonhole to be shown in the board. Note that you MUST run the following SQL on your database to allow content in more than one board: "alter table boards_map drop constraint boards_map_pkey;" This is therfore a very advanced option.',
+ ],
+];
$gBitSmarty->assign( 'formBitBoardsLists',$formBitBoardsLists );
-$formBitBoardsSync = array(
- 'boards_sync_mail_server' => array(
+$formBitBoardsSync = [
+ 'boards_sync_mail_server' => [
'label' => 'Email Server',
- 'note' => 'Internet address of your mail server.',
- ),
- 'boards_sync_user' => array(
+ 'note' => 'Internet address of your mail server.',
+ ],
+ 'boards_sync_user' => [
'label' => 'Email Username',
- 'note' => 'Username used to login to the board sync email account.',
- ),
- 'boards_sync_password' => array(
+ 'note' => 'Username used to login to the board sync email account.',
+ ],
+ 'boards_sync_password' => [
'label' => 'Email Password',
- 'note' => 'Password used to login to the board sync email account.',
- ),
-);
+ 'note' => 'Password used to login to the board sync email account.',
+ ],
+];
$gBitSmarty->assign( 'formBitBoardsSync',$formBitBoardsSync );
$processForm = set_tab();
-$formBoardsEmailList = array(
- "boards_email_list" => array(
+$formBoardsEmailList = [
+ "boards_email_list" => [
'label' => 'Group Email List',
- 'note' => 'Enable groups to have an associated email list',
- ),
-);
+ 'note' => 'Enable groups to have an associated email list',
+ ],
+];
$gBitSmarty->assign( 'formBoardsEmailList',$formBoardsEmailList );
-$formBoardsEmailText = array( 'boards_email_host', 'boards_email_admin', 'server_mailman_bin', 'server_mailman_cmd', 'server_newaliases_cmd', 'server_aliases_file' );
+$formBoardsEmailText = [ 'boards_email_host', 'boards_email_admin', 'server_mailman_bin', 'server_mailman_cmd', 'server_newaliases_cmd', 'server_aliases_file' ];
if( $processForm ) {
$bitboardToggles = array_merge( $formBitBoardsLists,$formBoardsEmailList );
@@ -68,16 +68,15 @@ if( $processForm ) {
simple_set_toggle( $item, BOARDS_PKG_NAME );
}
foreach( $formBitBoardsSync as $key => $data ) {
- $gBitSystem->storeConfig( $key, (!empty( $_REQUEST[$key] ) ? $_REQUEST[$key] : NULL), BOARDS_PKG_NAME );
+ $gBitSystem->storeConfig( $key, $_REQUEST[$key] ?? null, BOARDS_PKG_NAME );
}
foreach( $formBoardsEmailText as $text ) {
- $gBitSystem->storeConfig( $text, ( !empty( $_REQUEST[$text] ) ? trim( $_REQUEST[$text] ) : NULL ), BOARDS_PKG_NAME );
+ $gBitSystem->storeConfig( $text, !empty( $_REQUEST[$text] ) ? trim( $_REQUEST[$text] ) : null, BOARDS_PKG_NAME );
}
}
$board = new BitBoard();
$boards = $board->getBoardSelectList( $_REQUEST );
-$gBitSmarty->assignByRef(BOARDS_PKG_NAME, $boards['data']);
-?>
+$gBitSmarty->assign(BOARDS_PKG_NAME, $boards['data'] ?? '');