generated from TheMaxium69/TyroSiteFrameWork
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathactu.php
75 lines (47 loc) · 1.74 KB
/
actu.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
<?php include "app/app.php"; $page = 3; head($page); ?>
<body> <header> <?php navbar($page); ?> </header>
<main>
<section id="start">
<div class="ac-head">
<div class="ac-centertext">
<h1>Actualité</h1>
</div>
</div>
</section>
<section id="actu" class="container">
<ul class="chat-thread">
<?php
require "api/bot/recup.php";
$actuAll = getAllActu();
foreach ($actuAll as $actu){
if ($env_admin[$actu['user']]){
$username = $env_admin[$actu['user']];
if ($username == "Maxime Tournier"){
$id = "m";
} else if ($username == "Pierre-Louis Devaud"){
$id = "p";
}
$dateSrc = $actu['date'];
$dateTime = new DateTime($dateSrc);
?>
<li id="<?=$id?>">
<h3><?php echo $username ?></h3>
<small><?php echo $env_admin_role[$username] ?></small>
<p>
<?php echo nl2br($actu['content']); ?>
</p>
<small><?= $dateTime->format('H:i d/m/y') ?></small>
</li>
<?php
}
} ?>
</ul>
</section>
<section id="intro" class="container">
<hr>
<br>
<p>Nos actualité sont poster sur notre Discord et rediriger ici</p>
<button id="btn-intro" class="tyrobutton" data-url="https://discord.com">Rejoindre notre Discord</button>
</section>
</main>
<?php footer($page); ?> </body> </html>