-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfindmore.php
More file actions
58 lines (54 loc) · 1.62 KB
/
Copy pathfindmore.php
File metadata and controls
58 lines (54 loc) · 1.62 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
58
<?php
/*
Copyright 2008 - Peer Oliver Schmidt
GPLv2 Licensed
*/
include_once("lib.inc.php");
error_reporting(E_ALL);
connectDB();
/* $currentUser = 1;
$currentScreen = 1;
$currentRoom = 3;
$PK_File = 0;
*/ $Details = "";
$SortedBy = "";
$mediaType = "";
$Subtype = "";
global $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);
}
if (isset($_GET["screen"])) {
$currentScreen = $_GET["screen"];
$currentScreen = intval($currentScreen);
}
if (isset($_GET["user"])) {
$currentUser = $_GET["user"];
}
if (isset($_GET["Details"])) {
$Details = $_GET["Details"];
}
if (isset($_GET["SortedBy"])) {
$SortedBy = $_GET["SortedBy"];
}
if (isset($_GET["Subtype"])) {
$Subtype = $_GET["Subtype"];
}
if (isset($_GET["mediaType"])) {
$mediaType = $_GET["mediaType"];
}
$currentEntertainArea = getMyValue($link,"SELECT PK_EntertainArea FROM EntertainArea WHERE FK_Room = $currentRoom");
$heading = getMyValue($link,"SELECT Description FROM Room WHERE PK_Room = $currentRoom") . " - " . getMyValue($link,"SELECT UserName FROM Users WHERE PK_Users = $currentUser");
if ($Details != "") {
buildFileListFromAttribute($mediaLink,$Details,$mediaType);
}
if ($SortedBy != "") {
buildFileListFromSortedBy($mediaLink, $SortedBy,$mediaType);
}
If ($Subtype != "") {
buildFileListFromSubtype($mediaLink, $Subtype, $mediaType);
}
?>