.codebox code
Code: Select all
<?php
/**
*
* This file is part of the phpBB Forum Software package.
* @ignore
*/
define('IN_PHPBB', true);
$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);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
// Mark notifications read
if (($mark_notification = $request->variable('mark_notification', 0)))
{
if ($user->data['user_id'] == ANONYMOUS)
{
if ($request->is_ajax())
{
trigger_error('LOGIN_REQUIRED');
}