summaryrefslogtreecommitdiffstats
path: root/radio.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 06:08:14 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-23 06:08:14 +0000
commit216e691dfa53a28af8beca7aad2bf0ffb71dba2c (patch)
tree8b371e856d8107832a724f1ee0ad42f270435d0a /radio.php
parent84eca6a3d59fc591a7e28b3d7e0c11746dc837fc (diff)
downloadampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.tar.gz
ampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.tar.bz2
ampache-216e691dfa53a28af8beca7aad2bf0ffb71dba2c.zip
- Added Live Stream (Internet Radio) support
- New Database Update corrects some issues and makes internet radio possible - Fixed ratings - Added new Transcode preference, doesn't do anything yet - New "Radio Stations" browse type
Diffstat (limited to 'radio.php')
-rw-r--r--radio.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/radio.php b/radio.php
new file mode 100644
index 00000000..bec97565
--- /dev/null
+++ b/radio.php
@@ -0,0 +1,56 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2007 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; version 2
+ of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+
+require 'lib/init.php';
+
+show_header();
+
+// Switch on Action
+switch ($_REQUEST['action']) {
+ case 'show_create':
+ if (!$GLOBALS['user']->has_access('25')) {
+ access_denied();
+ exit;
+ }
+
+ require_once Config::get('prefix') . '/templates/show_add_live_stream.inc.php';
+
+ break;
+ case 'create':
+ if (!$GLOBALS['user']->has_access('25')) {
+ access_denied();
+ exit;
+ }
+
+ // Try to create the sucker
+ $results = Radio::create($_POST);
+
+ if (!$results) {
+ require_once Config::get('prefix') . '/templates/show_add_live_stream.inc.php';
+ }
+
+ break;
+} // end data collection
+
+show_footer();
+
+?>