diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-23 08:00:34 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-23 08:00:34 +0000 |
commit | f283e4040e0dea301c94278470515ca6472af8c2 (patch) | |
tree | 72ddc03245026420fe128c5cd149fa9fa8103d80 /tv.php | |
parent | 2faea5f7b345ba0d9319d4466261b52c7bff0325 (diff) | |
download | ampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.gz ampache-f283e4040e0dea301c94278470515ca6472af8c2.tar.bz2 ampache-f283e4040e0dea301c94278470515ca6472af8c2.zip |
few more tweaks and some work on the tv pages
Diffstat (limited to 'tv.php')
-rw-r--r-- | tv.php | 47 |
1 files changed, 24 insertions, 23 deletions
@@ -25,27 +25,28 @@ require_once('lib/init.php'); $dbh = dbh(); $web_path = conf('web_path'); -$htmllang = str_replace("_","-",conf('lang')); -$location = get_location(); + +/* Make sure they have access to this */ +if (!conf('allow_democratic_playback') || $GLOBALS['user']->prefs['play_type'] != 'democratic') { + access_denied(); + exit; +} + +/* Attempt to build the temp playlist */ +$playlist = new tmpPlaylist('-1'); +$action = scrub_in($_REQUEST['action']); + + +switch ($action) { + case 'create_playlist': + + break; + default: + + require_once(conf('prefix') . '/templates/show_tv.inc.php'); + + break; +} // end switch on action + + ?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $htmllang; ?>" lang="<?php echo $htmllang; ?>"> - -<head> -<link rel="shortcut icon" href="<?php echo $web_path; ?>/favicon.ico" /> -<meta http-equiv="Content-Type" content="text/html; charset=<?php echo conf('site_charset'); ?>" /> -<title><?php echo conf('site_title'); ?> - <?php echo $location['title']; ?></title> -<link rel="stylesheet" href="<?php echo $web_path; ?>/templates/default.css" type="text/css" /> -<link rel="stylesheet" href="<?php echo $web_path; ?><?php echo conf('theme_path'); ?>/templates/default.css" type="text/css" /> -</head> -<body> -<script src="<?php echo $web_path; ?>/lib/general.js" language="javascript" type="text/javascript"></script> -<script src="<?php echo $web_path; ?>/modules/kajax/ajax.js" language="javascript" type="text/javascript"></script> -<!-- Control DIV --> -<div id="tv_control"> - -</div> -<!-- End Control Div --> -<div id="tv_np"> -<div id="tv_playlist"> -</div> |