Commit 0457ad79 authored by root's avatar root

Additional option to play files locally from iOrbiter

parent bf62644f
......@@ -639,8 +639,9 @@
foreach ($addAnEntry as $addAnEntrySingle) {
print "<li id='$label"." $addAnEntrySingle[0]" . "'><a href='$addAnEntrySingle[2]&currentUser$currentUser&currentRoom=$currentRoom'>$addAnEntrySingle[1]</a></li>\n";
}
} else {
print "<li id='$label"." $addAnEntry[0]" . "'><a href='$addAnEntry[2]'>$addAnEntry[1]</a></li>\n";
}
print "<li id='$label"." $addAnEntry[0]" . "'><a href='$addAnEntry[2]'>$addAnEntry[1]</a></li>\n";
}
foreach($array as $member) {
if ($groupByField >= 0) {
......@@ -841,9 +842,12 @@
$query .= "JOIN AttributeType ON PK_AttributeType = FK_AttributeType ";
$query .= "WHERE File_Attribute.FK_File = $pk_file And Name <> \"*\" ";
$query .= "Order By (Description != \"Title\"),(Description != \"Performer\"), Description";
// print "Query: $query";
listMyArray($mediaLink,$query,"Details",2,array($pk_file,"Play","play.php?currentUser=$currentUser&currentRoom=$currentRoom&pk_file=$pk_file"),"findmore.php?currentUser=$currentUser&currentRoom=$currentRoom&",$withUL = $withUL);
listMyArray($mediaLink,$query,"Details",2,array(
array($pk_file,"Play","play.php?currentUser=$currentUser&currentRoom=$currentRoom&pk_file=$pk_file"),
array($PK_file,"Play locally","play-locally.php?pk_file=$pk_file")
),
"findmore.php?currentUser=$currentUser&currentRoom=$currentRoom&",$withUL = $withUL);
}
function getMyValue($link,$query) {
......
<?php
/*
Copyright 2008 - Peer Oliver Schmidt
GPLv2 Licensed
*/
/*
* This file is used to return the URL to the file to be played.
*/
include_once("lib.inc.php");
/*
cBaseURL contains the base that is a softlink off of /var/www/ pointing to the root of the media.
*/
$cBaseURL="/lmce-admin/tmp/";
error_reporting(E_ALL);
connectDB();
global $pk_file,$currentUser, $currentScreen, $currentRoom, $currentEntertainArea, $link, $mediaLink;
if (isset($_COOKIE["currentUser"])) { $currentUser = $_COOKIE["currentUser"]; }
if (isset($_COOKIE["currentRoom"])) { $currentRoom = $_COOKIE["currentRoom"]; }
if (isset($_GET["room"])) {
$currentRoom = $_GET["room"];
$currentRoom = intval($currentRoom);
$currentEntertainArea = getEntertainArea($link,$currentRoom);
}
if (isset($_GET["screen"])) {
$currentScreen = $_GET["screen"];
$currentScreen = intval($currentScreen);
}
if (isset($_GET["user"])) {
$currentUser = $_GET["user"];
}
if (isset($_GET["pk_file"])) {
$PK_File = $_GET["pk_file"];
}
$cFilename = system("/usr/pluto/bin/ProvideSoftlink.sh $PK_File",$returnValue);
if ($returnValue == 0) {
$cURL = $cBaseURL . "/" . $cFilename;
header('Location: ' . $cURL);
}
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment