Нужна помощь по решению ошибки
Установлен CMS MODx 2.0.6
Установлен форум phpBB 3.0.8
Пытаюсь реализовать Session Website Integration
создал файл logi.php в корне форума с кодом:
Код: Выделить всё
<?php
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);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// check for logout request
$cp = $_GET['cp'];
// is it a logout? then kill the session!
if ($cp == "logout") {
$user->session_kill();
$user->session_begin();
}
$template->assign_block_vars('topicrow', array(
));
// Page login notice
if ($user->data['user_id'] == ANONYMOUS)
{
$template->set_filenames(array('body' => 'logi_body.html'));
} else {
$template->set_filenames(array('body' => 'logi_sucses.html'));
}
page_footer();
?>Код: Выделить всё
<script language='JavaScript' type='text/javascript' src='/forum/logi.php'></script>Код: Выделить всё
Uncaught SyntaxError: Unexpected identifier /forum/logi.php:1

