-
Notifications
You must be signed in to change notification settings - Fork 0
/
actualite.php
125 lines (105 loc) · 5.05 KB
/
actualite.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
<?php
session_start();
include 'header.php';
if(!empty($_SESSION["mode"]))
{}
else
{
$_SESSION["mode"] = "clair";
}
if(isset($_GET['id']))
{
$getid = intval($_GET['id']);
$reqdoc = $bdd->prepare('SELECT * FROM actualites WHERE id = ?');
$reqdoc->execute(array($getid));
$actuExist = $reqdoc->rowCount();
if($actuExist == 1)
{
$donnees = $reqdoc->fetch();
}
else
{
header('Location: erreur.php');
}
}
else
{
header('Location: erreur.php');
}
?>
<!DOCTYPE HTML>
<!--
Editorial by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>DVKBuntu - Actualités</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<?php
if($_SESSION['mode'] == "sombre")
{?>
<link rel="stylesheet" href="assets/css/main.css" />
<?php }
else
{ ?>
<link rel="stylesheet" href="assets/css/main_clair.css" />
<?php } ?>
<link rel="icon" type="image/png" href="images/LogoGenerale.png" />
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Main -->
<div id="main">
<div class="inner">
<!-- Header -->
<header id="header">
<a href="index.php" class="logo"><strong>DVKBuntu</strong></a>
<ul class="icons">
<li><a href="mode.php?id=1" style="color: yellow; background-color: black;">Mode malvoyant : </a> <a href="mode.php" style="color:#000000" alt="Changer les contrastes"><i class="fas fa-low-vision fa-lg" id="icone_oeil"></i></a></li>
<li><a href="https://twitter.com/handyopensource" class="icons-header" alt="Twitter"><i class="fab fa-twitter-square fa-lg"></i></a></li>
<li><a href="https://www.facebook.com/Handyopensource" class="icons-header" alt="Facebbok"><i class="fab fa-facebook fa-lg"></i></a></li>
<li><a href="https://discord.gg/zG7g8cU" class="icons-header" alt="discord"><i class="fab fa-discord fa-lg"></i></a></li>
<li><a href="https://www.forum.dvkbuntu.org/" class="icons-header" alt="Le forum"><i class="far fa-comments fa-lg"></i></a></li>
<li><a href="#contact" class="icons-header" alt="Email"><i class="far fa-envelope fa-lg"></i></a></li>
<li> <a href="donnation.php" class="icons-header" alt="Email" class="icons"><i class="fas fa-hand-holding-usd fa-lg"></i></a></li>
</ul>
</header>
<!-- Content -->
<section>
<h1><u><?php echo $donnees['titre']; ?></u></h1>
<h6 style="color: darkgrey;"><i>Ecrit par <?php echo $donnees['auteur']; ?> (relu par un administrateur)</i></h6>
<?php if(!empty($donnees['image']))
{ ?>
<span class="image main"><img src="images/actus/<?php echo $donnees['image']; ?>" alt=""/></span>
<?php } ?>
<p><?php echo $donnees['description']; ?></p>
<a href="list_actu.php" alt="">← Retourner aux actualités</a>
</section>
</div>
</div>
<!-- Sidebar -->
<?php include 'sidebar.html'; ?>
</div>
<!--Bottom menu -->
<div class="navbar-bottom">
<a href="mode.php?id=1" alt="Changer les contrastes"><i class="fas fa-low-vision fa-lg"></i></a>
 
<a href="https://twitter.com/handyopensource" class="icons" alt="Twitter"><i class="fab fa-twitter-square fa-lg"></i></a>
<a href="https://www.facebook.com/Handyopensource" class="icons" alt="Facebbok"><i class="fab fa-facebook fa-lg"></i></a>
<a href="https://discord.gg/zG7g8cU" class="icons" alt="discord"><i class="fab fa-discord fa-lg"></i></a>
<a href="https://www.forum.dvkbuntu.org/" class="icons" alt="Le forum"><i class="far fa-comments fa-lg"></i></a>
<a href="contact.php" class="icons" alt="Email"><i class="far fa-envelope fa-lg"></i></a>
<a href="donnation.php" class="icons" alt="Email" class="icons"><i class="fas fa-hand-holding-usd fa-lg"></i></a>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>