-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath.php
246 lines (215 loc) · 7.39 KB
/
path.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<?php
/**
* Início da comunicação com o servidor.
* Introdução dos dados fornecidos pelo utilizador
* e validação dos mesmos.
*
* Nota: de momento a base de dados não se encontra a ser utilizada.
* Apenas de encontra conectada para evitar trabalho para as futuras equipas.
*
* @author Rui Coelho
*/
ob_start();
session_start();
require_once('ti.php');
$servername = "mysql-sa.mgmt.ua.pt";
$username = "deti-thtw-web";
$password = "Q4ICoHbGntraIPgd";
// Session Timeout of 30 min
if (isset($_SESSION['timeout']) && (time() - $_SESSION['timeout'] > 1800)) {
session_unset();
session_destroy();
}
// MUST BE REMOVED BEFORE PROD
error_reporting(E_ALL);
ini_set("display_errors", 1);
?>
<!DOCTYPE html>
<html lang="pt-pt">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="shortcut icon" href="static/img/logos/thinktwice.png" type="image/x-icon" />
<meta name="description" content="">
<meta name="author" content="">
<?php
/**
* Chamada do complemento do header
*
* @author Rui Coelho
*/
startblock('head')
?>
<?php
/**
* Retorno ao ficheiro de path.
*
* @author Rui Coelho
*/
endblock()
?>
<!-- Bootstrap core CSS -->
<link href="static/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="static/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700' rel='stylesheet' type='text/css'>
<?php
/**
* Chamada do CSS Personalizado
*
* @author Rui Coelho
*/
startblock('custom_css')
?>
<?php
/**
* Retorno ao ficheiro de path.
*
* @author Rui Coelho
*/
endblock()
?>
</head>
<body id="page-top">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="index.html#page-top"></a>
<a href="index.php"><img src="static/img/logos/thinktwice.png" alt="ThinkTwice" style="width:60px;height:60px;"></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fa fa-bars"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav text-uppercase ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="index.php#services">O que é?</a>
</li>
<?php if(isset($_SESSION['uaccess']) && $_SESSION['uaccess']>=500) : ?>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="schedule.php#schedule">Horário</a>
</li>
<?php endif; ?>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="team.php#team">Equipa</a>
</li>
<?php if(isset($_SESSION['uaccess']) && $_SESSION['uaccess']>=500) : ?>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="sponsors.php">Patrocinadores</a>
</li>
<?php endif; ?>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="place.php">Como chegar</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="faq.php">FAQ's</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="static/documents/Regulamento_Hackathon.pdf" target="_blank">Regulamento</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger"
href="https://docs.google.com/forms/d/e/1FAIpQLSeFrENVyovpcNpS8ZKa_av9vVawyr1H1Mk0olc0BLuRmV7irg/viewform"
target="_blank">
<strong>Inscreve-te!</strong>
</a>
</li>
</ul>
</div>
</div>
</nav>
<?php
/**
* Chamada do CSS Personalizado
*
* @author Rui Coelho
*/
startblock('body')
?>
<?php
/**
* Retorno ao ficheiro de path.
*
* @author Rui Coelho
*/
endblock()
?>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<span class="copyright">Copyright © NEI- AAUAv & IEEE UA SB <br>
Developed by <a href="https://user-cube.github.io/aboutMePT/" rel="nofollow">rc</a></span>
</div>
<div class="col-md-4">
<h2>NEI-AAUAv</h2>
<ul class="list-inline social-buttons">
<li class="list-inline-item">
<a href="https://www.instagram.com/nei.aauav/">
<i class="fa fa-instagram"></i>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.facebook.com/nei.aauav">
<i class="fa fa-facebook"></i>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.linkedin.com/company/nei-aauav/">
<i class="fa fa-linkedin"></i>
</a>
</li>
</ul>
</div>
<div class="col-md-4">
<h2>IEEE UA SB</h2>
<ul class="list-inline social-buttons">
<li class="list-inline-item">
<a href="https://www.instagram.com/ieeeuasbpt/">
<i class="fa fa-instagram"></i>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.facebook.com/ieeeuasbpt/">
<i class="fa fa-facebook"></i>
</a>
</li>
<li class="list-inline-item">
<a href="https://www.linkedin.com/company/ieeeuniversityofaveirostudentbranch/">
<i class="fa fa-linkedin"></i>
</a>
</li>
</ul>
</div>
</div>
</footer>
<!-- Bootstrap core JavaScript -->
<script src="static/vendor/jquery/jquery.min.js"></script>
<script src="static/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="static/vendor/jquery-easing/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
<script src="static/js/agency.min.js"></script>
<?php
/**
* Chamada do JS Personalizado
*
* @author Rui Coelho
*/
startblock('custom_js')
?>
<?php
/**
* Retorno ao ficheiro path e
* finalização do conteúdo a apresentar.
*
* @author Rui Coelho
*/
endblock()
?>
</body>
</html>