Removed unnecessary acp_portal_blocks files;

Added language files for announcements module; 
Converted portal.php and acp_portal.php back to using the phpBB config table;
This commit is contained in:
Marc Alexander
2010-04-06 21:17:21 +00:00
parent 6b207166e3
commit 5bcfe37930
17 changed files with 180 additions and 1409 deletions

View File

@@ -16,21 +16,18 @@ $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
$portal_root_path = PORTAL_ROOT_PATH;
$portal_icons_path = PORTAL_ICONS_PATH;
include($phpbb_root_path . $portal_root_path . 'includes/functions.' . $phpEx);
include($phpbb_root_path . $portal_root_path . 'includes/functions_modules.' . $phpEx);
//include($phpbb_root_path . 'includes/message_parser.' . $phpEx);
$portal_config = obtain_portal_config();
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/portal');
if (!$portal_config['portal_enable'])
if (!$config['portal_enable'])
{
redirect(reapply_sid($phpbb_root_path . 'index.' . $phpEx));
}