-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php~
35 lines (33 loc) · 891 Bytes
/
admin.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
<?php
session_start();
include("connect_db.php");
if (isset($_POST['exit']))
{
$_SESSION['ent'] = 3;
}
if (isset($_POST['create_news']))
{
Header("Location: addnews.html");
}
include('translate.php');
include('header.html');
include('leftside.html');
echo'<div class="center">';
$STH = $DBH->query("SELECT * FROM user");
$STH->setFetchMode(PDO::FETCH_ASSOC);
while($row = $STH->fetch())
{
$link_profil="profil.php?id=".$row['id'];
$link_change = "change_profil.php?id=".$row['id'];
$link_delete = "delete_profil.php?id=".$row['id'];
echo '<div class="post">';
echo"Login:<a href=".$link_profil.">".$row['login']."</a>";
echo '<div class="post">';
echo"<a href=".$link_change.">Change</a>";
echo"<a href=".$link_delete.">Delete</a>";
echo '</div></div>';
}
echo '</div>';
include('rightside.php');
echo "</body></html>";
?>