-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathresource.php
53 lines (48 loc) · 1.92 KB
/
resource.php
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
<?php
/****************************************************************************************
* LiveZilla resource.php
*
* Copyright 2018 LiveZilla GmbH
* All rights reserved.
* LiveZilla is a registered trademark.
*
* Improper changes to this file may cause critical errors.
***************************************************************************************/
$ftype = (true) ? "min." : "";
$paramIndex = 1;
$code = "";
$version = "ahgzixd7";
while(isset($_REQUEST[$paramIndex]))
{
if(strtolower($_REQUEST[$paramIndex])=="style.min.css")
$code .= file_get_contents("./templates/style.".$ftype."css");
else if(strtolower($_REQUEST[$paramIndex])=="chat_".$version."/style.min.css")
{
$code .= file_get_contents("./templates/overlays/chat_".$version."/style.".$ftype."css");
}
else if(strtolower($_REQUEST[$paramIndex])=="jsglobal.min.js")
{
$code .= file_get_contents("./templates/".$version."/jsglobal.".$ftype."js");
$code .= file_get_contents("./templates/".$version."/icons.".$ftype."js");
}
else if(strtolower($_REQUEST[$paramIndex])=="jsbox.min.js")
{
$code .= file_get_contents("./templates/".$version."/jsbox.".$ftype."js");
$code .= file_get_contents("./templates/".$version."/jsboxv2.".$ftype."js");
}
else if(strtolower($_REQUEST[$paramIndex])=="jstrack.min.js")
$code .= file_get_contents("./templates/".$version."/jstrack.".$ftype."js");
else if(strtolower($_REQUEST[$paramIndex])=="jsextern.min.js")
$code .= file_get_contents("./templates/overlays/chat_".$version."/jsextern.".$ftype."js");
$paramIndex++;
}
if($_REQUEST["t"]=="css")
header("Content-Type: text/css");
else
header("Content-Type: application/javascript");
$expires = 60*60*24*365;
header("Pragma: public");
header("Cache-Control: maxage=".$expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
exit($code);
?>