forked from bizley/yii2-podium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurl-rules.php
76 lines (75 loc) · 5.61 KB
/
url-rules.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/**
* Podium UrlManager rules.
* @author Paweł Bizley Brzozowski <[email protected]>
* @since 0.2
*/
return [
'activate/<token:[\w\-]+>' => 'account/activate',
'admin/ban/<id:\d+>' => 'admin/ban',
'admin/contents/<name:[\w\-]+>' => 'admin/contents',
'admin/delete/<id:\d+>' => 'admin/delete',
'admin/delete-category/<id:\d+>' => 'admin/delete-category',
'admin/delete-forum/<cid:\d+>/<id:\d+>' => 'admin/delete-forum',
'admin/edit-category/<id:\d+>' => 'admin/edit-category',
'admin/edit-forum/<cid:\d+>/<id:\d+>' => 'admin/edit-forum',
'admin/forums/<cid:\d+>' => 'admin/forums',
'admin/mod/<uid:\d+>/<fid:\d+>' => 'admin/mod',
'admin/mods/<id:\d+>' => 'admin/mods',
'admin/new-forum/<cid:\d+>' => 'admin/new-forum',
'admin/pm/<id:\d+>' => 'admin/pm',
'admin/update/<id:\d+>' => 'admin/update',
'admin/view/<id:\d+>' => 'admin/view',
'admin' => 'admin/index',
'category/<id:\d+>/<slug:[\w\-]+>' => 'forum/category',
'delete/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/delete',
'deletepoll/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/deletepoll',
'deletepost/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/deletepost',
'deleteposts/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/deleteposts',
'demote/<id:\d+>' => 'admin/demote',
'edit/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/edit',
'editpoll/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/editpoll',
'forum/<cid:\d+>/<id:\d+>/<slug:[\w\-]+>/<toggle:\w+>' => 'forum/forum',
'forum/<cid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/forum',
'home' => 'forum/index',
'install' => 'install/run',
'last/<id:\d+>' => 'forum/last',
'level-up' => 'install/level-up',
'lock/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/lock',
'login' => 'account/login',
'logout' => 'profile/logout',
'maintenance' => 'forum/maintenance',
'mark-seen' => 'forum/mark-seen',
'members/friend/<id:\d+>' => 'members/friend',
'members/posts/<id:\d+>/<slug:[\w\-]+>' => 'members/posts',
'members/threads/<id:\d+>/<slug:[\w\-]+>' => 'members/threads',
'members/view/<id:\d+>/<slug:[\w\-]+>' => 'members/view',
'members' => 'members/index',
'members/ignore/<id:\d+>' => 'members/ignore',
'messages/delete-received/<id:\d+>' => 'messages/delete-received',
'messages/delete-sent/<id:\d+>' => 'messages/delete-sent',
'messages/new/<user:\d+>' => 'messages/new',
'messages/reply/<id:\d+>' => 'messages/reply',
'messages/view-received/<id:\d+>' => 'messages/view-received',
'messages/view-sent/<id:\d+>' => 'messages/view-sent',
'move/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/move',
'moveposts/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/moveposts',
'new-email/<token:[\w\-]+>' => 'account/new-email',
'new-thread/<cid:\d+>/<fid:\d+>' => 'forum/new-thread',
'pin/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/pin',
'post/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/post',
'post/<cid:\d+>/<fid:\d+>/<tid:\d+>' => 'forum/post',
'profile' => 'profile/index',
'profile/add/<id:\d+>' => 'profile/add',
'profile/delete/<id:\d+>' => 'profile/delete',
'profile/mark/<id:\d+>' => 'profile/mark',
'promote/<id:\d+>' => 'admin/promote',
'reactivate' => 'account/reactivate',
'register' => 'account/register',
'report/<cid:\d+>/<fid:\d+>/<tid:\d+>/<pid:\d+>' => 'forum/report',
'reset' => 'account/reset',
'search' => 'forum/search',
'show/<id:\d+>' => 'forum/show',
'thread/<cid:\d+>/<fid:\d+>/<id:\d+>/<slug:[\w\-]+>' => 'forum/thread',
'unread-posts' => 'forum/unread-posts',
];