Added MDE (issue #4)

This commit is contained in:
2017-09-15 13:56:24 +07:00
parent 0f011f2545
commit ec548a46b7
21 changed files with 4351 additions and 44 deletions

View File

@@ -8,6 +8,7 @@ use \Core\Token;
use \Core\Session;
use \Core\Redirect;
use \Core\XSS;
use \Michelf\Markdown;
class Posts
{
@@ -120,7 +121,7 @@ class Posts
{
if (Session::exists('userid')) {
$date = new \DateTime();
$now = $date->format("Y-m-d");
$now = $date->format("d-m-Y");
$get_categories = $this->model->showAll([], 'kategori');
$categories = [];
@@ -187,7 +188,7 @@ class Posts
], $table);
$date = new \DateTime();
$timestamp = $date->format("Y-m-d");
$timestamp = $date->format("d-m-Y");
View::render(
'Data/edit_pengumuman.html',