aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php98
1 files changed, 98 insertions, 0 deletions
diff --git a/index.php b/index.php
new file mode 100644
index 0000000..009d90b
--- /dev/null
+++ b/index.php
@@ -0,0 +1,98 @@
+<?php
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/private/session.php";
+
+/** @var string $_FULLNAME
+ * @var string $_USER
+ * @var array $_PROFILE
+ * @var boolean $_ADMIN
+ * @var array $_CONFIG
+ */
+
+?>
+
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Familine</title>
+ <link rel="icon" href="/favicon.svg">
+ <link rel="stylesheet" href="/styles.css">
+ <?= strpos($_SERVER['HTTP_USER_AGENT'], "+Familine/") !== false ? '<link rel="stylesheet" href="/native.css">' : "" ?>
+ <?= strpos($_SERVER['HTTP_USER_AGENT'], "+Familine/") !== false ? '<script>$ = require(\'jquery\');jQuery = require(\'jquery\');</script>' : '<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>' ?>
+</head>
+<body>
+ <div class='progress' style="display:none;" id="progress_div">
+ <div class='bar' id='bar1'></div>
+ <div class='percent' id='percent1'></div>
+ </div>
+ <input type="hidden" id="progress_width" value="0">
+ <script src="/js/loading.js"></script>
+ <div id="loading">
+ <img src="/loader.svg" style="filter:invert(1);width:96px;">
+ </div>
+
+ <div id="explore">
+ <div>
+ <img src="/favicon.svg" width="128px" height="128px">
+ <h1 style="font-size: 48px;">Familine</h1>
+ <div id="explore-grid"<?php if ($_ADMIN): ?> class="admin"<?php endif; ?>>
+ <?php if ($_ADMIN): ?>
+ <a href="https://console.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-camera.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Camera</span>
+ </a>
+ <?php endif; ?>
+ <a href="https://docs.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-docs.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Docs</span>
+ </a>
+ <a href="https://support.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-help.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Help</span>
+ </a>
+ <a href="https://money.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-money.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Money</span>
+ </a>
+ <a href="https://cinema.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-movies.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Movies</span>
+ </a>
+ <a href="https://photos.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-photos.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Photos</span>
+ </a>
+ <a href="https://cloud.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-review.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Review</span>
+ </a>
+ <a href="https://share.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-share.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Share</span>
+ </a>
+ <a href="https://chat.<?= $_CONFIG["Global"]["domain"] ?>" class="explore-btn">
+ <img src="/icns/familine-you.svg" width="48px" height="48px" style="margin: 0 20px;"><br>
+ <span>Yikes</span>
+ </a>
+ </div>
+ </div>
+ </div>
+
+ <?php
+
+ $icons = scandir($_SERVER['DOCUMENT_ROOT'] . "/icns");
+ foreach ($icons as $icon) {
+ if ($icon != "." && $icon != ".." && $icon != ".htaccess") {
+ echo("<img src='/icns/{$icon}' style='opacity:0;pointer-events:none;width:0;'>");
+ }
+ }
+
+ ?>
+
+ <script src="/js/iframe.js"></script>
+ <script src="/js/navigation.js"></script>
+ <script src="/js/statusbar.js"></script>
+</body>
+</html> \ No newline at end of file