Checking for a login, I have the html displayed. Without login, I have the page redirected. I've got it working but wondering if theres a better way?
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './buskers/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_LOGIN);
init_userprefs($userdata);
if($userdata['session_logged_in'])
{
?>
<html></html>
<?php
}
else
{
header ("Location: video.php");
}
?>
Unfortunately, I can't echo includes on my server...so I'm using this method of displaying the html
Thanks