-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesign.php
More file actions
50 lines (42 loc) · 1.61 KB
/
Copy pathdesign.php
File metadata and controls
50 lines (42 loc) · 1.61 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
<?php
/*
Copyright 2008 - Peer Oliver Schmidt
GPLv2 Licensed
*/
error_reporting(E_ALL);
include("lib.inc.php");
connectdb();
global $UI, $SKIN;
global $PK_File, $currentUser, $currentScreen, $currentRoom, $currentEntertainArea, $link, $mediaLink;
$mainDesignObj = NULL;
if (isset($_COOKIE["currentUser"])) { $currentUser = $_COOKIE["currentUser"]; }
if (isset($_COOKIE["currentRoom"])) { $currentRoom = $_COOKIE["currentRoom"]; }
If (isset($_GET["CommandGroup"])) {
$commandGroup = $_GET["CommandGroup"];
doCommandGroup($link,$commandGroup);
}
If (isset($_GET["CommandGroup_D"])) {
$commandGroup = $_GET["CommandGroup_D"];
doCommandGroup_D($link,$commandGroup);
}
if (isset($_GET["PK_File"])) {
$PK_File = $_GET["PK_File"];
}
// We get the main Screens object
$query = "SELECT FK_DesignObj FROM Screen_DesignObj Where FK_Screen = $currentScreen AND $UI AND $SKIN";
if ($currentScreen != 1) {
print "<h2>Gxetting screen $currentScreen.</h2>\n";
$mainDesignObj = getMyValue($link,$query);
print "<pre>mainDesignObj $mainDesignObj</pre>\n";
} else {
// We just want to go back to the main screen.
print "<h2 onload='refresh;'></h2>";
}
// And we get the standard variation of the main menu first.
orbiterDoVariation($link, $mainDesignObj, $currentRoom, $currentEntertainArea,$UI = NULL); // First we use the standard variation.
orbiterDoVariation($link, $mainDesignObj, $currentRoom, $currentEntertainArea,$UI = 1); // After that we add everything from the Normal 4:3 Variation
print "<p>End Of Table</p>\n";
print "</body></html>\n";
mysql_close($mediaLink);
mysql_close($link);
?>