<?php /********************************************* /* Action Script for GiantDisc Server written by Andreas Baierl in 2009 Project Homepage: http://sourceforge.net/projects/gdrestfulwebint/ Help: http://sourceforge.net/apps/mediawiki/gdrestfulwebint/index.php */ require_once "includes/inc.includes.php"; // Include necessary files $action = $_GET['action']; $id = $_GET['id']; $filename = urldecode($_GET['filename']); if (strcmp($action, 'play') == 0) { header("Content-Type: audio/mp3"); header("Content-Disposition: attachment; filename=\"" . $filename . "\""); echo get_audio($id); } if (strcmp($action, 'edit') == 0) { echo "Edit Track"; }
<div class="page-container"> <div class="container"> <div class="row"> <!-- start of page content --> <?php if (isset($_COOKIE['token'])) { if (isset($_GET['query'])) { ?> <div class="span5 page-content"> <div class="list-group"> <?php $index_array = get_audio($query, $token); array_shift($index_array); ?> <?php foreach ($index_array as $result) { ?> <a href="http://<?php echo $url; ?> ?query=<?php echo $query; ?> &lyrics=<?php echo $result['lyrics_id'];