-
Notifications
You must be signed in to change notification settings - Fork 0
/
show.php
80 lines (68 loc) · 2.11 KB
/
show.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
<?php
require 'db.php';
$title_txt = '404';
$txt = 'Le texte est indisponible !';
if($_SERVER['REQUEST_METHOD'] == 'GET'){
if(isset($_GET['uid'])){
$uid = $_GET['uid'];
$sql = $bdd->prepare('SELECT titre, contenu FROM content WHERE uid=:uid');
$sql->execute(array(
'uid' => $uid
));
while($content = $sql->fetch()){
$title_txt = $content['titre'];
$txt = $content['contenu'];
}
$sql->closeCursor();
}
}
$title = "TXT - ".htmlspecialchars($title_txt);
include 'header.php';
?>
<body>
<!--Navbar-->
<?php include 'navbar.php'; ?>
<!--/Navbar-->
<!--Contenu-->
<div class="container" style="margin-top:80px;">
<div class="jumbotron">
<h2><?php echo htmlspecialchars($title_txt); ?></h2>
<hr/>
<p><?php echo nl2br(htmlspecialchars($txt)); ?></p>
<br/>
<textarea style="resize:vertical;height:150px;" class="form-control"><?php echo htmlspecialchars($txt); ?></textarea>
<hr class="mini" />
<ul class="list-inline text-center">
<li><a href="http://realitygaming.fr/members/wayz-gtp.14838/" class="fui-link social" title="Profil RealityGaming"></a></li>
<li><a href="https://plus.google.com/113331512613643181335/" class="fui-google-plus social" title="Profil Google+"></a></li>
<li><a href="https://twitter.com/WayzPY/" class="fui-twitter social" title="Profil Twitter"></a></li>
<li><a href="https://github.com/WayzRG/" class="fui-github social" title="Profil Github"></a></li>
</ul>
</div>
</div>
<!-- Script -->
<script src="bootstrap/js/vendor/jquery.min.js">Script impossible à charger</script>
<script src="bootstrap/js/flat-ui.min.js">Script impossible à charger</script>
<script>
$('#search').on('focus', function(){
$(this).parent().attr('class', 'input-group focus');
}).on('blur', function(){
$(this).parent().attr('class', 'input-group');
});
</script>
<script>
$("textarea").focus(function() {
var $this = $(this);
$this.select();
// Work around Chrome's little problem
$this.mouseup(function() {
// Prevent further mouseup intervention
$this.unbind("mouseup");
return false;
});
});
</script>
</body>
<?php
include 'footer.php';
?>