-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.php
executable file
·38 lines (32 loc) · 1.01 KB
/
utils.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
<?php
defined("ABSPATH") || define("ABSPATH", __DIR__ . "/");
defined("CSS") || define("CSS", __DIR__ . "/css/style.css");
defined("IMAGESIZES") || define("IMAGESIZES", __DIR__ . "/json/imageSizes.json");
defined("TILINGJS") || define("TILINGJS", __DIR__ . "/js/tiling.js");
defined("TILINGPHP") || define("TILINGPHP", __DIR__ . "/tiling.php");
defined("CREATERGBARRAY") || define("CREATERGBARRAY", __DIR__ . "/createRGBArray.php");
if (!function_exists("openCSS")) {
function openCSS() {
$toOpen = fopen(CSS, "r");
$toReturn = fread($toOpen, filesize(CSS));
fclose($toOpen);
return $toReturn;
}
}
if (!function_exists("openJS")) {
function openJS() {
$toOpen = fopen(TILINGJS, "r");
$toReturn = fread($toOpen, filesize(TILINGJS));
fclose($toOpen);
return $toReturn;
}
}
if (!function_exists("openIMAGESIZES")) {
function openIMAGESIZES() {
$toOpen = fopen(IMAGESIZES, "r");
$toReturn = fread($toOpen, filesize(IMAGESIZES));
fclose($toOpen);
return $toReturn;
}
}
?>