forked from om3rcitak/lyk2016
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuye.php
executable file
·32 lines (27 loc) · 975 Bytes
/
uye.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
<?php require "header.php"; ?>
<div class="container well">
<h2 class="text-center">BAUN Bilgisayar ve İnternet Topluluğu Üye Yönetim Sistemi</h2>
<h4 class="text-center">Merhaba hoşgeldiniz. Lütfen üye iseniz giriş yapınız değil ise üye olunuz</h4>
<?php
if (!isset($_SESSION["login"])) {
echo '<div class="alert alert-danger" style="margin-top:50px;"><strong>Opps!</strong> Bu sayfayı görüntüleyebilmek için giriş yapmalısınız</div>';
die();
}
$id = $_GET["id"];
if($id<1 OR $id>11){
$id = 1;
}
$row = $db->get_row("SELECT * FROM users WHERE id=" . $id);
?>
<h3><a href="index.php"><< Anasayfa'ya Dön</a></h3>
<div class="container" style="margin-top:50px;">
<div class="row">
<?php
echo $row->username;
?>
<br />
<br />
<img src="<?php echo $row->image; ?>" alt="" />
</div>
</div>
<?php require "footer.php"; ?>