-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
134 lines (117 loc) · 4.84 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
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
<!DOCTYPE html>
<html lang="en">
<body bgcolor="#OOOOOO">
<head>
<title>main</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="popups.css">
<meta name="google-site-verification" content="f7S9blLxu2nJn1EGjPR-bVMyKWewDYFmkrh8eaUEGjs" />
<style>
@font-face { font-family: Lcs; src: url('LucymarSans-Regular.ttf'); }
p {
font-family: Lcs
}
body {
margin: 0;
padding: 0;
background-image: url("media/panorama/panorama1.jpg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
z-index: -1;
}
#main-content {
background-color: rgba(255, 255, 255, 0.1);
padding: 20px;
}
</style>
<!--script désactivé-->
<noscript><p align="center"><font color="#FFOOOO"><strong><i>Javascript is disabled. Please re-enable it to enjoy an optimal web experience.<a href="https://support.google.com/admanager/answer/12654?hl=en">How to enable javascript?</a></i></strong></font></p></noscript>
<!--logo-->
<div id="main-content">
<div class="logo-container">
<center><a href="https://www.phoenintel.org"><img src="media/logo.png" width="300" height="300" alt="Logo" class="logo" /></a></center>
</div><br>
<!--main message-->
<br><p align="center"><font color="#OOOOOO" size="8"><strong>Welcome to Phoen Intelligence ! 🕊️ </strong></font></p><br>
<!--domain name change warning-->
<br><p align="center"><font color="#OOOOOO" size="4"><strong>ℹ️ Important note:</strong> The name of our website has been changed: it is now <a href='https://www.phoen.org'>phoen.org</a> and no longer <a href="https://www.phoenintel.org">phoenintel.org</a>.<br>The old name currently redirects to the new one, but this will no longer be the case in the near future.</font></p><br>
<!-- discover more button-->
<br><p align="center"><font color="#OOOOOO" size="4">Don't know who are we?</font><br>
<a class="main-page_buttons" href="aboutus.html">Discover more about us ➡️ </a><br><br>
<a class="main-page_buttons" href="join.html">Join us ➡️ </a>
</p>
<style>
/* button effects */
.main-page_buttons {
display: inline-block;
padding: 10px 20px;
background-color: #034191;
color: #ffffff;
text-decoration: none;
font-size: 16px;
border-radius: 5px;
transition: background-color 0.3s;
}
/* survol */
.main-page_buttons:hover {
background-color: #010B19;
}
</style>
<!--menu-->
<label for="ch" id="lab"></label>
<input type="checkbox" id="ch">
<nav>
<a href="index.php"><p><font size="5">main</font></p></a>
<a href="articles.html"><p><font size="5">articles</font></p></a>
<a href="media.html"><p><font size="5">media</font></p></a>
<a href="aboutus.html"><p><font size="5">about us</font></p></a>
<a href="contacts.html"><p><font size="5">contacts</font></p></a>
<a href="partnerships.php"><p><font size="5">partnerships</font></p></a>
<a href="tos.html"><p><font size="5">privacy policy</font></p></a>
</nav>
<!--text-->
<main>
<?php
// Connexion à la base de données
$dsn = 'mysql:host=localhost;dbname=database_name';
$user = 'admin';
$password = 'password';
$options = array(
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
);
$dbh = new PDO($dsn, $user, $password, $options);
// Récupération des données
$stmt = $dbh->prepare("SELECT titre, url, description, date FROM liens ORDER BY date DESC");
$stmt->execute();
$liens = $stmt->fetchAll();
// Affichage des données
foreach ($liens as $lien) {
echo '<article class="lien">';
echo '<header>';
echo '<h2>' . $lien['titre'] . '</h2>';
echo '<time>' . date('d/m/Y H:i:s', strtotime($lien['date'])) . '</time>';
echo '</header>';
echo '<p>' . $lien['description'] . '</p>';
echo '<a href="' . $lien['url'] . '" target="_blank">Check out here</a>';
echo '</article>';
}
?>
</main>
<!--footer (bas de page)-->
<footer>
<p align="center"><font color="#FFFFFF"><strong><u>Contacts</u></strong></font></p>
<p align="center"><font color="#FFFFFF"><a href="mailto:contact@phoen.org">contact@phoen.org</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://github.com/phoenorg">Github</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://mastodon.social/@phoen">Mastodon</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://www.facebook.com/profile.php?id=100090404687359">Facebook</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://twitter.com/phoenorg">Twitter</a></font></p>
<p align="center"><font color="#FFFFFF"><a href="https://www.instagram.com/phoenorg/">Instagram</a></font></p>
</footer>
</div>
<!-- Ajout du script pour le diaporama aléatoire -->
<script src="background.js"></script>
</body>
</html>