This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
109 lines (94 loc) · 4.59 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
set_include_path('/var/www/vhosts/bigbotnetwork.wh.hostnation.de/hadder/');
error_reporting(E_ALL);
ini_set('display_errors', 1);
require "auth/functions.php";
require "auth/discord.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151451625-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-151451625-3');
</script>
<title>BBN - Hadder</title>
<meta name="author" content="GregTCLTK">
<meta name="author" content="Hax">
<meta name="copyright" content="BBN">
<meta name="description" content="Web Panel for the Hadder Discord bot.">
<meta name="keywords" content="BigBotNetwork, BBN, Hadder, Skidder, Hax, 6775, Big Bot Network, Discord, JDA, Java API"/>
<meta name="language" content="DE">
<meta name="coverage" content="Worldwide">
<meta property="og:title" content="Hadder - Web Panel" />
<meta property="og:type" content="website"/>
<meta name="og:site_name" content="BBN"/>
<meta name="og:description" content="Web Panel for the Hadder Discord bot."/>
<meta property="og:image" content="https://bbn.one/images/Hadder.png" />
<meta property="og:url" content="https://hadder.bbn.one">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<noscript><link rel="stylesheet" href="css/noscript.css" /></noscript>
<link rel="stylesheet" href="css/main.css?v=1">
<link rel="stylesheet" href="css/materialize.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body class="is-preload">
<nav class="blue darken-2" role="navigation">
<div class="nav-wrapper container">
<img id="navbarIcon" src="https://bbn.one/images/Hadder.png" alt="Hadder">
<a id="logo-container" href="./" class="brand-logo">Hadder</a>
<ul id="navList" class="right hide-on-med-and-down">
<?php
if(isset($_SESSION['auth_token'])) {
echo '<li id="user"><img id=userAvatar src="https://cdn.discordapp.com/avatars/';
echo $_SESSION['user_id'] . "/" . $_SESSION['user_avatar'] . '"/>';
echo $_SESSION['username'] . '#' . $_SESSION['discrim'];
echo '</li><li><a href="auth/logout.php"><i class="material-icons left">highlight_off</i>Logout</a></li></ul>';
} else {
echo '<a href="' . url("637002314162372639", "http://hadder.bbn.one/auth/login.php", "identify guilds email connections") . '">' . '<i class="material-icons left">account_circle</i>Login with Discord</a></li>';
}
?>
</ul>
</div>
</nav>
<div id="wrapper">
<section id="main">
<header>
<span class="avatar"><img src="https://bbn.one/images/avatar.png" width="260" height="270"/></span>
<br>
<h3>BBN</h3>
</header>
<br>
<br>
<footer>
<ul class="icons">
<li><a href="https://twitter.com/BigBotNetwork" class="icon brands fa-twitter">Twitter</a></li>
<li><a href="https://github.com/BigBotNetwork" class="icon brands fa-github">GitHub</a></li>
<li><a href="https://discordapp.com/invite/Vf4zCYn" class="icon brands fa-discord">Discord</a></li>
<li><a href="https://donatebot.io/checkout/448554629282922527" class="icon brands fa-paypal">Donatebot</a></li>
</ul>
</footer>
</section>
</div>
<script>
if ('addEventListener' in window) {
window.addEventListener('load', function() { document.body.className = document.body.className.replace(/\bis-preload\b/, ''); });
document.body.className += (navigator.userAgent.match(/(MSIE|rv:11\.0)/) ? ' is-ie' : '');
}
</script>
<footer class="page-footer blue darken-2">
<div class="footer-copyright">
<div class="container">
<div class="center">
<p>© 2018-2021 BBN</p>
</div>
</div>
</div>
</footer>
<script src="https://xf8cjssvcrw5.statuspage.io/embed/script.js"></script>
</body>
</html>