diff --git a/upload/admin/admin_board.php b/upload/admin/admin_board.php
index 88707deef..ed6aa6f62 100644
--- a/upload/admin/admin_board.php
+++ b/upload/admin/admin_board.php
@@ -3,8 +3,8 @@
// ACP Header - START
if (!empty($setmodules))
{
- $module['General']['Configuration'] = basename(__FILE__) .'?mode=config';;
- $module['Mods']['Configuration'] = basename(__FILE__) .'?mode=config_mods';;
+ $module['General']['Configuration'] = basename(__FILE__) .'?mode=config';
+ $module['Mods']['Configuration'] = basename(__FILE__) .'?mode=config_mods';
return;
}
require('./pagestart.php');
@@ -15,8 +15,8 @@ require(INC_DIR .'functions_selects.php');
$mode = isset($_GET['mode']) ? $_GET['mode'] : '';
$return_links = array(
- 'index' => '
'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''),
- 'config' => '
'. sprintf($lang['CLICK_RETURN_CONFIG'], '', ''),
+ 'index' => '
'. sprintf($lang['CLICK_RETURN_ADMIN_INDEX'], '', ''),
+ 'config' => '
'. sprintf($lang['CLICK_RETURN_CONFIG'], '', ''),
'config_mods' => '
'. sprintf($lang['CLICK_RETURN_CONFIG_MODS'], '', '')
);
@@ -53,7 +53,7 @@ else
bb_update_config(array($config_name => $new[$config_name]));
}
}
-
+
if( isset($_POST['submit']) )
{
if ($mode == 'config')
@@ -73,7 +73,7 @@ switch($mode)
$template->assign_vars(array(
'S_CONFIG_ACTION' => append_sid('admin_board.php?mode=config_mods'),
'CONFIG_MODS' => true,
-
+
'REPORTS_ENABLED' => $new['reports_enabled'],
'GOLD_SILVER_ENABLED' => $new['gold_silver_enabled'],
'GALLERY_ENABLED' => $new['gallery_enabled'],
@@ -95,23 +95,23 @@ switch($mode)
'WHOIS_INFO' => $new['whois_info'],
));
break;
-
+
default:
$template->assign_vars(array(
'S_CONFIG_ACTION' => append_sid('admin_board.php?mode=config'),
'CONFIG' => true,
-
+
'SITENAME' => htmlCHR($new['sitename']),
'CONFIG_SITE_DESCRIPTION' => htmlCHR($new['site_desc']),
'DISABLE_BOARD' => ($new['board_disable']) ? true : false,
-
+
'ACTIVATION_NONE' => USER_ACTIVATION_NONE,
'ACTIVATION_NONE_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_NONE) ? 'checked="checked"' : '',
'ACTIVATION_USER' => USER_ACTIVATION_SELF,
'ACTIVATION_USER_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_SELF) ? 'checked="checked"' : '',
'ACTIVATION_ADMIN' => USER_ACTIVATION_ADMIN,
'ACTIVATION_ADMIN_CHECKED' => ($new['require_activation'] == USER_ACTIVATION_ADMIN) ? 'checked="checked"' : '',
-
+
'VISUAL_CONFIRM' => ($new['enable_confirm']) ? true : false,
'ALLOW_AUTOLOGIN' => ($new['allow_autologin']) ? true : false,
'AUTOLOGIN_TIME' => (int) $new['max_autologin_time'],
@@ -158,6 +158,5 @@ switch($mode)
));
break;
}
-
+
print_page('admin_board.tpl', 'admin');
-
\ No newline at end of file
diff --git a/upload/config.php b/upload/config.php
index e31115f46..57d4faed0 100644
--- a/upload/config.php
+++ b/upload/config.php
@@ -63,7 +63,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
// Increase number of revision after update
$bb_cfg['tp_version'] = '2.4 (beta)';
-$bb_cfg['tp_release_state'] = 'R350';
+$bb_cfg['tp_release_state'] = 'R351';
$bb_cfg['tp_release_date'] = '02-02-2012';
// Database
diff --git a/upload/modcp.php b/upload/modcp.php
index 7f94fac91..cc79db463 100644
--- a/upload/modcp.php
+++ b/upload/modcp.php
@@ -255,7 +255,7 @@ switch ($mode)
$datastore->enqueue('latest_news');
$datastore->update('latest_news');
}
-
+
$net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
if(isset($net_forums[$forum_id]) && $bb_cfg['show_network_news'] && $result)
{
@@ -291,7 +291,7 @@ switch ($mode)
$datastore->enqueue('latest_news');
$datastore->update('latest_news');
}
-
+
$net_forums = array_flip(explode(',', $bb_cfg['network_news_forum_id']));
if((isset($news_forums[$forum_id]) || isset($news_forums[$new_forum_id])) && $bb_cfg['show_network_news'] && $result)
{
@@ -474,7 +474,7 @@ switch ($mode)
do
{
$user_id_sql .= (($user_id_sql != '') ? ', ' : '') . intval($row['poster_id']);
- $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']);;
+ $post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']);
}
while ($row = DB()->sql_fetchrow($result));