Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-server
Commits
2c5eeac6
Commit
2c5eeac6
authored
Apr 11, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Задача 12794] Добавил редирект на страницу авторизации в случае, когда…
[Задача 12794] Добавил редирект на страницу авторизации в случае, когда пользователь не авторизирован
parent
333809ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Typos.php
cp/application/controllers/users/Typos.php
+7
-3
No files found.
cp/application/controllers/users/Typos.php
View file @
2c5eeac6
...
...
@@ -37,8 +37,13 @@ class Typos extends CI_Controller {
$this
->
load
->
model
(
'typo'
);
$this
->
load
->
helper
(
'menu'
);
$this
->
load
->
library
(
'parser'
);
$this
->
login_id
=
$this
->
session
->
userdata
(
"login_id"
);
if
(
is_null
(
$this
->
login_id
))
{
redirect
(
"authorization"
);
}
$this
->
header_name
=
"header"
;
$this
->
view_name
=
"users/typos"
;
$this
->
menu_name
=
"menus/menu"
;
...
...
@@ -52,8 +57,7 @@ class Typos extends CI_Controller {
if
(
$this
->
session
->
usertype
==
'admin'
)
{
$data
[
'menuItems'
]
=
menu_admin
(
$data
[
'base_url'
]);
}
if
(
$this
->
session
->
usertype
==
'user'
)
{
}
else
if
(
$this
->
session
->
usertype
==
'user'
)
{
$data
[
'menuItems'
]
=
menu_user
(
$data
[
'base_url'
]);
}
...
...
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