diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-11 07:13:13 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-11 07:13:13 +0200 |
commit | 85e48b669f65933d5376f9214219c7e5eb10a9e7 (patch) | |
tree | 5a08463dc9d770d98442e1c9f8d65044cdd9f1ff /index.php | |
parent | dd0433cf81fe5329b694a148191f09e427d4a56c (diff) | |
download | blog-1.2.tar.gz blog-1.2.tar.xz blog-1.2.zip |
The system directory has been moved to a non-public directory. After the commit e33c245d910e55b8cab407a03e669470509a705d, it is no longer necessary that the directory is publicly accessible via HTTP because all requests are running through the router.v1.2
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -14,16 +14,16 @@ $USERPATH = Application::get('USER.DIRECTORY'); #=============================================================================== # ROUTE: Item #=============================================================================== -Router::add("{$PAGEPATH}/([^/]+)/", function($param) { require 'system/page/main.php'; }); -Router::add("{$POSTPATH}/([^/]+)/", function($param) { require 'system/post/main.php'; }); -Router::add("{$USERPATH}/([^/]+)/", function($param) { require 'system/user/main.php'; }); +Router::add("{$PAGEPATH}/([^/]+)/", function($param) { require 'core/include/page/main.php'; }); +Router::add("{$POSTPATH}/([^/]+)/", function($param) { require 'core/include/post/main.php'; }); +Router::add("{$USERPATH}/([^/]+)/", function($param) { require 'core/include/user/main.php'; }); #=============================================================================== # ROUTE: Item overview #=============================================================================== -Router::add("{$PAGEPATH}/", function() { require 'system/page/list.php'; }); -Router::add("{$POSTPATH}/", function() { require 'system/post/list.php'; }); -Router::add("{$USERPATH}/", function() { require 'system/user/list.php'; }); +Router::add("{$PAGEPATH}/", function() { require 'core/include/page/list.php'; }); +Router::add("{$POSTPATH}/", function() { require 'core/include/post/list.php'; }); +Router::add("{$USERPATH}/", function() { require 'core/include/user/list.php'; }); #=============================================================================== # REDIRECT: Item (trailing slash) @@ -43,28 +43,28 @@ Router::addRedirect("{$USERPATH}", Application::getUserURL()); # ROUTE: Home #=============================================================================== Router::add('', function() { - require 'system/home.php'; + require 'core/include/home.php'; }); #=============================================================================== # ROUTE: Feed #=============================================================================== Router::add('feed/', function() { - require 'system/feed/main.php'; + require 'core/include/feed/main.php'; }); #=============================================================================== # ROUTE: Feed [item type only] #=============================================================================== Router::add('feed/(page|post)/', function($param) { - require 'system/feed/main.php'; + require 'core/include/feed/main.php'; }); #=============================================================================== # ROUTE: Search #=============================================================================== Router::add('search/', function() { - require 'system/search/main.php'; + require 'core/include/search/main.php'; }); #=============================================================================== |