<?php
require "shared/session.php";
require "../config/config_file.php";
if ( isset($_SESSION['tvezAccess']) || !$LOGIN_ENABLED ) {
list($page,$query) = split("\?",$_SERVER['REQUEST_URI'],2);
echo '
<html>
<head>
<title>TVEz Media Library</title>
</head>
<frameset rows="*,60" frameborder="1" framespacing="0" border="1">
<frame name="main" src="tvez.php?'.$query.'" marginwidth="0" marginheight="0" scrolling="auto" frameborder="yes">
<frameset cols="*,70,*" frameborder="1" framespacing="0" border="1">
<frame name="player" src="player/player.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="yes">
<frame name="volume" src="player/volume.php" marginwidth="0" marginheight="0" scrolling="no" frameborder="no">
<frame name="playlist" src="player/playlist.php" marginwidth="0" marginheight="0" scrolling="auto" frameborder="yes">
</frameset>
</frameset>
</html>
';
}
else {
require "tvez.php";
}