-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
34 lines (24 loc) · 776 Bytes
/
index.php
File metadata and controls
34 lines (24 loc) · 776 Bytes
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
<?php
// include configuration file
include('config.php');
// connect to the database
$db = mysqli_connect ($db_host, $db_user, $db_password, $db_name) OR die ('Could not connect to MySQL: ' . mysqli_connect_error());
?>
<!-- HTML -->
<!-- top navigation -->
<?php include('header.php'); ?>
<!-- content -->
<div class="container" style="margin-top: 65px">
<h2 class="text-primary">Nachrichten</h2>
<!-- sign in link -->
<p class="text-muted">Um Nachrichten zu schreiben, musst du angemeldet sein.</p>
<div class="form-group">
<p><a class="btn btn-primary" href="signin.php">Anmelden</a></p>
</div>
<!-- show messages -->
<div class="messages">
<?php include('messages.php'); ?>
</div>
</div>
</body>
</html>