-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.php
34 lines (34 loc) · 1.08 KB
/
notes.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
<?php
include_once("../../header.php");
include_once("../../User.php");
if(isset($_REQUEST['id'])){
$note_id = $_REQUEST['id'];
$username = basename(dirname(__FILE__));
$user = new User($username);
$note = $user->get_noteby_link($note_id);
if($note){
$desc = nl2br($note->note);
$no = <<<NOTE
<div class="container-fluid mt-5">
<div class="row">
<div class="col-md-5 mx-auto">
<div class="card-4 mb-3" style="border-top:4px solid orange;">
<h1 class='text-teal text-md text-center'>$note->title</h1><hr>
<div class="px-3">$desc</div>
<div class="card-footer">
<small style="color: #999;">This note was added on $note->added_on</small>
</div>
</div>
</div>
</div>
</div>
NOTE;
echo $no;
}else{
echo "<br><br>";
include("../../404.html");
}
}else{
echo "<br><br>";
include("../../404.html");
}