-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
94 lines (78 loc) · 2.09 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
<?php
if (isset($_REQUEST['error_description'])) {
$error = htmlEntities($_GET['error_description'], ENT_QUOTES);
} else {
$code = base64_decode($_GET['code'], true);
if (!$code) {
$code = 'There is no code !';
} else {
$code = htmlEntities($_GET['code'], ENT_QUOTES);
}
}
?>
<html>
<head>
<title>Get your code</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<style type="text/css">
body {
background-color: #0C6898;
font-family: 'Open Sans', sans-serif;
max-width: 1080px;
margin: auto;
}
body article {
height: 400px;
padding: 50px 0;
color: white;
}
body footer {
color: white;
text-align: right;
font-size: 0.8em;
}
.panel-body {
background-color: #F5F3EC;
color: black;
}
</style>
</head>
<body>
<header class="row">
<div class="col-xs-10 col-xs-offset-1">
<img src="https://hubic.com/home/static/images/logo.png" alt="hubiC" />
</div>
</header>
<article class="row">
<div class="col-xs-10 col-xs-offset-1">
<?php if (isset($error)): ?>
<h2>Error : </h2>
<div class="panel panel-danger">
<div class="panel-heading">
<?php echo $error; ?>
</div>
</div>
<?php else: ?>
<h2>Your code is :</h2>
<div class="panel panel-default">
<div class="panel-body">
<?php echo $code; ?>
</div>
</div>
<?php endif; ?>
</div>
</article>
<footer class="row">
<div class="col-xs-10 col-xs-offset-1">
Unofficial webpage <br />
Be safe with this code, developers could be dangerous with it !
</div>
</footer>
</body>
</html>