After yet another migration of my hosts doing, this time my external pages do not keep the user logged in. First, I had to go into the CP and select php 5.6 from the php version manager. Then I noticed my external pages weren't keeping the user logged in. I'm using the code below but wondering if the php manager somehow changed it. My host is clueless.
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './buskers/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//$phpbb_root_path = './buskers/';
if ($user->data['user_id'] == ANONYMOUS){
?>
Non-logged in HTML
<?php
}
else
{
?>
Logged in HTML
<?php
}
?>