Skip to content

Commit a8ab5df

Browse files
author
florisweb
committed
Did some fixes with the cookie-system and added the metadata to the subdomain-page
1 parent 0a94650 commit a8ab5df

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

index.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
<?php
2-
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
3-
require_once "$root/git/todo/database/modules/app.php";
4-
5-
6-
$isLinkUser = setLink();
72
// system that redirects the user to the welcome page if they're new
83
if (!isset($_COOKIE["Veratio_hasSeenWelcomeMessage"]))
94
{
10-
if ($isLinkUser)
5+
if ($_GET["link"])
116
{
127
header("Location: welcome?link=" . $_GET["link"]);
138
} else header("Location: welcome");
14-
setcookie("Veratio_hasSeenWelcomeMessage", true, time() + 60 * 60 * 24 * 365);
159
}
1610

11+
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
12+
require_once "$root/git/todo/database/modules/app.php";
1713

1814

15+
$isLinkUser = setLink();
1916
if ($isLinkUser == "false") $GLOBALS["SESSION"]->clear("veratio_userLink");
2017
if ($isLinkUser == "false" && userNeedsRedirect())
2118
{

subdomain/.DS_Store

-6 KB
Binary file not shown.

subdomain/index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
<html>
33
<head>
44
<title>Veratio - Florisweb.tk</title>
5+
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0' name='viewport'/>
6+
<meta name="theme-color" content="#636ad5">
7+
<link rel="manifest" href="https://florisweb.tk/git/todo/manifest.json">
8+
<link rel="shortcut icon" href="https://florisweb.tk/git/todo/images/pressSet/favicon.ico">
59
<style>
610
iframe {
711
position: fixed;

welcome/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
2+
setcookie("Veratio_hasSeenWelcomeMessage", "1", time() + 60 * 60 * 24 * 365, "/git/todo");
23
echo "<script>const LINKUSER_LINK = decodeURIComponent('" . urlencode((string)$_GET["link"]) . "');</script>";
34
?>
45

5-
66
<!DOCTYPE html>
77
<html>
88
<head>
@@ -221,7 +221,7 @@
221221
</div>
222222

223223
<div class="button bBoxy bDefault text clickable" onclick="
224-
window.location.replace('../?link=' + LINKUSER_LINK);
224+
window.location.replace('../?link=' + LINKUSER_LINK);
225225
" style="width: 100px">Open Veratio</div>
226226
</div>
227227
</div>

0 commit comments

Comments
 (0)