forked from AllskyTeam/allsky-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
show_thumbnails.php
33 lines (31 loc) · 1.21 KB
/
show_thumbnails.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
<?php
$configFilePrefix = "../";
include_once('functions.php'); disableBuffering(); // must be first line
// Settings are now in $settings_array.
if (! isset($dir) || ! isset($prefix) || ! isset($title)) {
echo "<p>INTERNAL ERROR: incomplete arguments given to view thumbnails.</p>";
echo "dir, prefix, and/or title missing.";
exit;
}
$homePage = v("homePage", null, $settings_array);
$includeGoogleAnalytics = v("includeGoogleAnalyticsx", false, $homePage);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="../allsky-favicon.png">
<title><?php echo $title; ?></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<?php if ($includeGoogleAnalytics && file_exists("../analyticsTracking.js")) {
echo "<script src='../analyticsTracking.js'></script>";
}
?>
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/js/all.min.js"></script>
<link href="../allsky.css" rel="stylesheet">
</head>
<body>
<?php display_thumbnails($dir, $prefix, $title); ?>
</body>
</html>