Huge updates:

1. Redesigned the web
2. Fixed logging in redirect issue
3. Added new route
4. Fixed sql issue on entry
5. Fixed typos
This commit is contained in:
2017-09-14 16:39:53 +07:00
parent ae8ce075e8
commit 00c5aba77d
12 changed files with 348 additions and 116 deletions

View File

@@ -12,7 +12,7 @@ set_error_handler("Core\Error::errorHandler");
set_exception_handler("Core\Error::exceptionHandler");
if (Core\Session::exists('info')) {
echo '<h3 style="margin:auto;"><span class="label top">';
echo '<h3 style="margin:auto;position:absolute;left:43%;"><span id="info" class="label top" style="position:fixed;" onclick="fadeOutEffect()">';
echo Core\Session::flash('info');
echo '</span></h3>';
}
@@ -23,6 +23,7 @@ $router->add('', ['controller' => 'posts', 'action' => 'index']);
$router->add('{controller}/{action}');
$router->add('{controller}/{action}/{id:\d+}');
$router->add('{action}', ['controller' => 'home']);
$router->add('{?status:\d+}', ['controller' => 'posts', 'action' => 'index']);
$url = $_SERVER['REQUEST_URI'];
$router->dispatch($url);