aboutsummaryrefslogtreecommitdiff
path: root/index.php
blob: 009d90bcdabc1a73e4e7b740580f7e4958fde640 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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>