-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplay-all.php
More file actions
57 lines (56 loc) · 1.83 KB
/
Copy pathplay-all.php
File metadata and controls
57 lines (56 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
Copyright 2008 - Peer Oliver Schmidt
GPLv2 Licensed
*/
/*
* This file is used to display the detail page for the supplied media file
* identified by PK_File
*/
include_once("lib.inc.php");
error_reporting(E_ALL);
connectDB();
/* $currentUser = 1;
$currentScreen = 1;
$currentRoom = 3;
$PK_File = 0;
*/ 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"];
}
print "<ul><li>Playing</li>\n";
if (isset($_GET["where"])) {
print "<ul><li>Where Set.</li>\n";
$where = $_GET["where"];
$content = $_GET["content"];
print "<ul><li>Adding files to the queue</li>\n";
flush();
if ($where == "FK_Attribute") {
$files = getMyArray($mediaLink,"SELECT FK_File From File_Attribute WHERE FK_Attribute = " . $content);
}
foreach($files as $PK_File) {
playFile($mediaLink,$PK_File[0]);
}
if (count($files)>0) die();
}
print "<ul><li>Playing</li>\n";
// $currentRoom $currentEntertainArea</li>\n";
// print "<li>pk file $PK_File</li>\n";
// getPicture($mediaLink,$PK_File);
// playFile($mediaLink,$PK_File);
print "</ul>\n";
?>