-
Notifications
You must be signed in to change notification settings - Fork 1
/
view.php
82 lines (67 loc) · 1.81 KB
/
view.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
<?php
include("conf/access.php");
include("conf/head.php");
$dil = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2);
$gelen1 = $_GET['id'];
$sorgu=$db->prepare("SELECT * from icerik WHERE id = '{$gelen1}'");
$sorgu->execute();
$verial = $sorgu->fetch(PDO::FETCH_ASSOC);
$gelen2 = $verial['id'];
if(!isset($_GET['id'])){
echo"<script>alert('Sunucu Hatası 503')</script>";
header("Refresh:1; url=index.php");
}
?>
<div class="container">
<center><b><h2><?php
switch ($dil) {
case 'tr':
print $verial['tr_baslik'];
break;
case 'en':
print $verial['en_baslik'];
default:
print $verial['tr_icerik'];
break;
}
?></h2></b></center>
<hr>
<img style="max-height: 400px" src="admin/<?php echo $verial['gorsel'];?>" class="img-fluid" alt="...">
<hr>
<div id="aciklama" >
<?php
switch ($dil) {
case 'tr':
print $verial['tr_icerik'];
break;
case 'en':
print $verial['en_icerik'];
default:
print $verial['en_icerik'];
break;
}
?>
</div>
<hr>
<center><b><h2>
<?php
if ($dil == "tr") {
echo "Dinle";
}
elseif ($dil == "en") {
echo "Listen";
}
else {
echo "Listen";
}
?>
</h2></b></center>
<audio controls>
<source src="admin/<?php echo $verial['ses'];?>" type="audio/mpeg" />
Browser Error
</audio>
<hr>
<center><b><h2>Google Maps</h2></b>
<iframe src="<?php echo $verial['maps_api'];?>" width="400" height="400" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</center>
</div>