-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·89 lines (76 loc) · 1.96 KB
/
index.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
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
<?php
require_once "./configuration.php";
require_once "./languages.php";
if (isset($_COOKIE["SPITESESS"])) {
header("Location: ./dashboard");
die();
}
?>
<!DOCTYPE html>
<html lang="<?php echo $htmlLang; ?>">
<head>
<title><?php echo word("spiteful-chat"); ?></title>
<?php echo metaTags(2); ?>
<meta name="google-signin-client_id" content="<?php echo $googleClientId; ?>">
<style>
html,
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
.container {
width: 100%;
height: 100%;
display: flex;
align-items: center;
flex-flow: column;
}
.wrapper {
display: flex;
flex-flow: column;
gap: 5px;
padding: 1rem;
border-radius: 12px;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
/* MEDIA TAGS */
@media (prefers-color-scheme: dark) {
:root {
--text: #f2f2f2;
--outside: #303030;
--inside: #383838;
--inside-detail: #505050;
}
body {
background-color: var(--outside);
color: var(--text);
}
.wrapper {
background-color: var(--inside);
}
}
</style>
</head>
<body>
<div class="container">
<h1><?php echo word("welcome-to-spiteful-chat"); ?></h1>
<div class="wrapper">
<h3><?php echo word("hello"); ?></h3>
<h5><?php echo word("please-login"); ?></h5>
<div id="g_id_onload" data-client_id="<?php echo $googleClientId; ?>" data-context="signin" data-ux_mode="redirect" data-login_uri="<?php echo $googleLoginUri; ?>" data-nonce="" data-auto_prompt="false"></div>
<div class="g_id_signin" data-type="standard" data-shape="pill" data-theme="filled_black" data-text="continue_with" data-size="large" data-logo_alignment="left"></div>
</div>
</div>
<script src="https://accounts.google.com/gsi/client" async defer></script>
</body>
</html>