2016-01-30 00:18:23 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* Router paths
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Define namespace
|
|
|
|
namespace Sakura;
|
2016-01-30 13:25:18 +00:00
|
|
|
|
|
|
|
// Meta pages
|
2016-02-27 16:46:16 +00:00
|
|
|
Router::get('/', 'MetaController@index', 'main.index');
|
|
|
|
Router::get('/faq', 'MetaController@faq', 'main.faq');
|
|
|
|
Router::get('/search', 'MetaController@search', 'main.search');
|
|
|
|
Router::get('/p/{id}', 'MetaController@infoPage', 'main.infopage');
|
2016-01-30 13:25:18 +00:00
|
|
|
|
2016-02-05 12:26:31 +00:00
|
|
|
// Auth
|
2016-02-27 16:46:16 +00:00
|
|
|
Router::get('/login', 'AuthController@loginGet', 'auth.login');
|
|
|
|
Router::post('/login', 'AuthController@loginPost', 'auth.login');
|
|
|
|
Router::get('/logout', 'AuthController@logout', 'auth.logout');
|
2016-02-28 17:45:25 +00:00
|
|
|
Router::get('/register', 'AuthController@registerGet', 'auth.register');
|
|
|
|
Router::post('/register', 'AuthController@registerPost', 'auth.register');
|
2016-03-09 11:58:08 +00:00
|
|
|
Router::get('/resetpassword', 'AuthController@resetPasswordGet', 'auth.resetpassword');
|
|
|
|
Router::post('/resetpassword', 'AuthController@resetPasswordPost', 'auth.resetpassword');
|
|
|
|
Router::get('/reactivate', 'AuthController@reactivateGet', 'auth.reactivate');
|
|
|
|
Router::post('/reactivate', 'AuthController@reactivatePost', 'auth.reactivate');
|
|
|
|
Router::get('/activate', 'AuthController@activate', 'auth.activate');
|
2016-02-05 12:26:31 +00:00
|
|
|
|
2016-01-30 13:25:18 +00:00
|
|
|
// News
|
2016-03-09 18:41:43 +00:00
|
|
|
Router::group(['prefix' => 'news'], function () {
|
|
|
|
Router::get('/', 'MetaController@news', 'news.index');
|
|
|
|
Router::get('/{category}', 'MetaController@news', 'news.category');
|
|
|
|
Router::get('/{category}/{id}', 'MetaController@news', 'news.post');
|
|
|
|
});
|
2016-01-30 13:25:18 +00:00
|
|
|
|
|
|
|
// Forum
|
2016-03-09 18:41:43 +00:00
|
|
|
Router::group(['prefix' => 'forum'], function () {
|
2016-03-20 16:37:59 +00:00
|
|
|
// Post
|
|
|
|
Router::group(['prefix' => 'post'], function () {
|
|
|
|
Router::get('/{id:i}', 'ForumController@post', 'forums.post');
|
2016-03-25 17:10:42 +00:00
|
|
|
Router::get('/{id:i}/raw', 'ForumController@postRaw', 'forums.post.raw');
|
|
|
|
Router::get('/{id:i}/delete', 'ForumController@deletePost', 'forums.post.delete');
|
|
|
|
Router::post('/{id:i}/delete', 'ForumController@deletePost', 'forums.post.delete');
|
|
|
|
Router::post('/{id:i}/edit', 'ForumController@editPost', 'forums.post.edit');
|
2016-03-20 16:37:59 +00:00
|
|
|
});
|
|
|
|
|
2016-03-10 18:54:36 +00:00
|
|
|
// Thread
|
|
|
|
Router::group(['prefix' => 'thread'], function () {
|
2016-03-13 20:35:51 +00:00
|
|
|
Router::get('/{id:i}', 'ForumController@thread', 'forums.thread');
|
|
|
|
Router::post('/{id:i}/mod', 'ForumController@threadModerate', 'forums.thread.mod');
|
2016-03-20 16:37:59 +00:00
|
|
|
Router::post('/{id:i}/reply', 'ForumController@threadReply', 'forums.thread.reply');
|
2016-03-10 18:54:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
// Forum
|
2016-03-09 18:41:43 +00:00
|
|
|
Router::get('/', 'ForumController@index', 'forums.index');
|
2016-03-13 20:35:51 +00:00
|
|
|
Router::get('/{id:i}', 'ForumController@forum', 'forums.forum');
|
|
|
|
Router::get('/{id:i}/mark', 'ForumController@markForumRead', 'forums.mark');
|
2016-03-25 01:31:57 +00:00
|
|
|
Router::get('/{id:i}/new', 'ForumController@createThread', 'forums.new');
|
|
|
|
Router::post('/{id:i}/new', 'ForumController@createThread', 'forums.new');
|
2016-03-09 18:41:43 +00:00
|
|
|
});
|
2016-02-04 20:56:40 +00:00
|
|
|
|
|
|
|
// Members
|
2016-03-09 18:41:43 +00:00
|
|
|
Router::group(['prefix' => 'members'], function () {
|
|
|
|
Router::get('/', 'UserController@members', 'members.index');
|
2016-03-13 20:35:51 +00:00
|
|
|
Router::get('/{rank:i}', 'UserController@members', 'members.rank');
|
2016-03-09 18:41:43 +00:00
|
|
|
});
|
2016-02-04 20:56:40 +00:00
|
|
|
|
|
|
|
// User
|
2016-02-27 16:46:16 +00:00
|
|
|
Router::get('/u/{id}', 'UserController@profile', 'user.profile');
|
|
|
|
Router::get('/u/{id}/header', 'FileController@header', 'user.header');
|
2016-02-15 21:20:46 +00:00
|
|
|
|
|
|
|
// Files
|
2016-02-27 16:46:16 +00:00
|
|
|
Router::get('/a/{id}', 'FileController@avatar', 'file.avatar');
|
|
|
|
Router::get('/bg/{id}', 'FileController@background', 'file.background');
|
2016-01-30 13:25:18 +00:00
|
|
|
|
2016-02-13 13:36:21 +00:00
|
|
|
// Premium
|
2016-03-09 18:41:43 +00:00
|
|
|
Router::group(['prefix' => 'support'], function () {
|
|
|
|
Router::get('/', 'PremiumController@index', 'premium.index');
|
|
|
|
Router::get('/tracker', 'PremiumController@tracker', 'premium.tracker');
|
|
|
|
});
|
2016-02-13 13:36:21 +00:00
|
|
|
|
2016-03-25 01:31:57 +00:00
|
|
|
// Helpers
|
|
|
|
Router::group(['prefix' => 'helper'], function () {
|
|
|
|
// BBcode
|
|
|
|
Router::group(['prefix' => 'bbcode'], function () {
|
|
|
|
Router::post('/parse', 'HelperController@bbcodeParse', 'helper.bbcode.parse');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2016-03-11 19:13:14 +00:00
|
|
|
// Settings
|
|
|
|
/*
|
|
|
|
* General
|
|
|
|
* - Home (make this not worthless while you're at it)
|
|
|
|
* - Edit Profile
|
|
|
|
* - Site Options
|
|
|
|
* Friends
|
|
|
|
* - Listing
|
|
|
|
* - Requests
|
|
|
|
* Groups
|
|
|
|
* - Listing
|
|
|
|
* - Invites
|
|
|
|
* Notifications (will probably deprecate this entire section at some point but not relevant yet)
|
|
|
|
* - History
|
|
|
|
* Appearance (possibly combine ava, bg and header down into one menu as well as userpage and signature maybe)
|
|
|
|
* - Avatar
|
|
|
|
* - Background
|
|
|
|
* - Header
|
|
|
|
* - Userpage
|
|
|
|
* - Signature
|
|
|
|
* Account (also down to one section maybe)
|
|
|
|
* - E-mail
|
|
|
|
* - Username
|
|
|
|
* - Usertitle
|
|
|
|
* - Password
|
|
|
|
* - Ranks (except this one i guess)
|
|
|
|
* Advanced
|
|
|
|
* - Session manager
|
|
|
|
* - Deactivate account
|
|
|
|
*/
|
|
|
|
|
2016-02-15 21:20:46 +00:00
|
|
|
// Management
|
|
|
|
/*
|
|
|
|
* General
|
|
|
|
* - Dashboard
|
|
|
|
* - Info pages (possibly deprecate with wiki)
|
|
|
|
* Configuration
|
|
|
|
* - General
|
|
|
|
* - Files
|
|
|
|
* - User
|
|
|
|
* - Mail
|
|
|
|
* Forums
|
|
|
|
* - Manage
|
|
|
|
* - Settings
|
|
|
|
* Comments
|
|
|
|
* - Manage
|
|
|
|
* Users
|
|
|
|
* - Manage users
|
|
|
|
* - Manage ranks
|
|
|
|
* - Profile fields
|
|
|
|
* - Option fields
|
|
|
|
* - Bans and restrictions
|
|
|
|
* - Warnings
|
|
|
|
* Permissions
|
|
|
|
* - Site
|
|
|
|
* - Management
|
|
|
|
* - Forum
|
|
|
|
* Logs
|
|
|
|
* - Actions
|
|
|
|
* - Management
|
|
|
|
* - Errors
|
|
|
|
*/
|