Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
aebcd4f8
authored
2018-04-01 22:30:36 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
acefaac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
12 deletions
application/hooks/CheckLogin.php
application/hooks/CheckLogin.php
View file @
aebcd4f
...
...
@@ -13,6 +13,20 @@ class CheckLogin
public
function
check
()
{
$session
=
$this
->
CI
->
session
;
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
return;
}
}*/
if
(
preg_match
(
'/work/config/data/finance/loan/perm/tool/user/i'
,
uri_string
()))
{
if
(
!
$this
->
CI
->
session
->
islogin
)
{
redirect
(
'login'
);
return
;
}
}
// if (!$session->products) {
$session
->
products
=
$this
->
getProduct
();
// }
...
...
@@ -89,18 +103,7 @@ class CheckLogin
if
(
!
$session
->
sourceBaseType
)
{
$session
->
sourceBaseType
=
$this
->
getSourceBaseType
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
return;
}
}
if (preg_match('/ucenter/i', uri_string())) {
if (!$this->CI->session->islogin) {
redirect('login/app');
return;
}
}*/
}
private
function
getProduct
()
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment