Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
41f86fe8
Commit
41f86fe8
authored
Jan 16, 2019
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Controller: Admin pages
parent
9bb4effd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
140 additions
and
133 deletions
+140
-133
page.php
qa-include/app/page.php
+4
-2
Points.php
qa-src/Controllers/Admin/Points.php
+136
-131
Stats.php
qa-src/Controllers/Admin/Stats.php
+0
-0
No files found.
qa-include/app/page.php
View file @
41f86fe8
...
...
@@ -421,9 +421,7 @@ function qa_page_routing()
'admin/moderate'
=>
'pages/admin/admin-moderate.php'
,
'admin/pages'
=>
'pages/admin/admin-pages.php'
,
'admin/plugins'
=>
'pages/admin/admin-plugins.php'
,
'admin/points'
=>
'pages/admin/admin-points.php'
,
'admin/recalc'
=>
'pages/admin/admin-recalc.php'
,
'admin/stats'
=>
'pages/admin/admin-stats.php'
,
'admin/userfields'
=>
'pages/admin/admin-userfields.php'
,
'admin/usertitles'
=>
'pages/admin/admin-usertitles.php'
,
'answers/'
=>
'pages/answers.php'
,
...
...
@@ -476,6 +474,10 @@ function qa_routing_config()
$router
->
addRoute
(
'ip'
,
'get'
,
'ip/{str}'
,
'\Q2A\Controllers\User\Ip'
,
'address'
);
$router
->
addRoute
(
'ip'
,
'post'
,
'ip/{str}'
,
'\Q2A\Controllers\User\Ip'
,
'address'
);
$router
->
addRoute
(
'admin-stats'
,
'get'
,
'admin/stats'
,
'\Q2A\Controllers\Admin\Stats'
,
'index'
);
$router
->
addRoute
(
'admin-points'
,
'get'
,
'admin/points'
,
'\Q2A\Controllers\Admin\Points'
,
'index'
);
$router
->
addRoute
(
'admin-points'
,
'post'
,
'admin/points'
,
'\Q2A\Controllers\Admin\Points'
,
'index'
);
}
...
...
qa-
include/pages/admin/admin-p
oints.php
→
qa-
src/Controllers/Admin/P
oints.php
View file @
41f86fe8
This diff is collapsed.
Click to expand it.
qa-
include/pages/admin/admin-s
tats.php
→
qa-
src/Controllers/Admin/S
tats.php
View file @
41f86fe8
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment