Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
85474d5a
Commit
85474d5a
authored
Jul 11, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cas 退出
parent
89a1b130
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
8 deletions
+36
-8
config_ibanshou.php
e/back_conf/dev/config_ibanshou.php
+2
-2
config_ibanshou.php
e/back_conf/test/config_ibanshou.php
+1
-1
config_ibanshou.php
e/config/config_ibanshou.php
+3
-3
ClientCas.php
e/extend/ibanshou/ClientCas.php
+1
-1
cas.php
e/member/cas.php
+2
-1
logincas.php
e/member/login/logincas.php
+27
-0
No files found.
e/back_conf/dev/config_ibanshou.php
View file @
85474d5a
...
@@ -17,8 +17,8 @@ $config = [
...
@@ -17,8 +17,8 @@ $config = [
'server_ca_cert_path'
=>
''
,
'server_ca_cert_path'
=>
''
,
'debug'
=>
false
,
'debug'
=>
false
,
'server_ip'
=>
[
'54.222.158.174'
],
'server_ip'
=>
[
'54.222.158.174'
],
'logs'
=>
'
./data/log
/phpcas.log'
,
'logs'
=>
'
e/data
/phpcas.log'
,
'uc_base_url'
=>
'http://
pre.u.ibanshou.cn
/'
,
'uc_base_url'
=>
'http://
u.yunya.com
/'
,
],
],
//产品
//产品
...
...
e/back_conf/test/config_ibanshou.php
View file @
85474d5a
...
@@ -17,7 +17,7 @@ $config = [
...
@@ -17,7 +17,7 @@ $config = [
'server_ca_cert_path'
=>
''
,
'server_ca_cert_path'
=>
''
,
'debug'
=>
false
,
'debug'
=>
false
,
'server_ip'
=>
[
'54.222.158.174'
],
'server_ip'
=>
[
'54.222.158.174'
],
'logs'
=>
'
./data/log
/phpcas.log'
,
'logs'
=>
'
e/data
/phpcas.log'
,
'uc_base_url'
=>
'http://u.test.yunyamooc.com/'
,
'uc_base_url'
=>
'http://u.test.yunyamooc.com/'
,
],
],
...
...
e/config/config_ibanshou.php
View file @
85474d5a
...
@@ -15,10 +15,10 @@ $config = [
...
@@ -15,10 +15,10 @@ $config = [
'context'
=>
'/cas'
,
'context'
=>
'/cas'
,
'port'
=>
443
,
'port'
=>
443
,
'server_ca_cert_path'
=>
''
,
'server_ca_cert_path'
=>
''
,
'debug'
=>
fals
e
,
'debug'
=>
tru
e
,
'server_ip'
=>
[
'54.222.158.174'
],
'server_ip'
=>
[
'54.222.158.174'
],
'logs'
=>
'
./data/log
/phpcas.log'
,
'logs'
=>
'
e/data
/phpcas.log'
,
'uc_base_url'
=>
'http://
pre.u.ibanshou.cn
/'
,
'uc_base_url'
=>
'http://
u.yunya.com
/'
,
],
],
//产品
//产品
...
...
e/extend/ibanshou/ClientCas.php
View file @
85474d5a
...
@@ -145,7 +145,7 @@ class ClientCas
...
@@ -145,7 +145,7 @@ class ClientCas
$selfurl
=
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
];
$selfurl
=
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
];
$url
=
$this
->
casLoginUrl
(
$selfurl
);
$url
=
$this
->
casLoginUrl
(
$selfurl
);
header
(
"Location:
$url
"
);
header
(
"Location:
$url
"
);
}
elseif
(
$iscas
&&
$islogin
==
=
false
)
{
}
elseif
(
$iscas
&&
$islogin
==
false
)
{
EmptyEcmsCookie
();
EmptyEcmsCookie
();
$selfurl
=
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
];
$selfurl
=
'http://'
.
$_SERVER
[
'HTTP_HOST'
]
.
$_SERVER
[
'REQUEST_URI'
];
header
(
"Location:
$selfurl
"
);
header
(
"Location:
$selfurl
"
);
...
...
e/member/cas.php
View file @
85474d5a
...
@@ -80,7 +80,8 @@ if ($mod == 'check') {
...
@@ -80,7 +80,8 @@ if ($mod == 'check') {
$url
=
$ecms_config
[
'site_url'
]
.
'/e/member/cas.php?mod=login&ref_url='
.
urlencode
(
$ref_url
);
$url
=
$ecms_config
[
'site_url'
]
.
'/e/member/cas.php?mod=login&ref_url='
.
urlencode
(
$ref_url
);
header
(
"Location:
$url
"
);
header
(
"Location:
$url
"
);
}
else
{
}
else
{
esetcookie
(
"mlcascheck"
,
1
,
time
()
+
30
);
EmptyEcmsCookie
();
esetcookie
(
"mlcascheck"
,
1
,
time
()
+
20
);
header
(
"Location:
$ref_url
"
);
header
(
"Location:
$ref_url
"
);
}
}
}
}
...
...
e/member/login/logincas.php
0 → 100644
View file @
85474d5a
<?php
require
(
"../../class/connect.php"
);
require
(
"../class/user.php"
);
$cas
=
new
ClientCas
();
$islogin
=
$cas
->
checkAuth
();
$iscas
=
getcvar
(
'mlcas'
);
$ischeck
=
getcvar
(
'mlcascheck'
);
$isjump
=
false
;
if
(
!
$ischeck
)
{
if
(
!
$iscas
&&
$islogin
)
{
$isjump
=
true
;
}
elseif
(
$iscas
&&
$islogin
==
false
)
{
EmptyEcmsCookie
();
esetcookie
(
"mlcascheck"
,
""
,
0
);
$isjump
=
true
;
}
}
//var_dump($isjump);die();
?>
<?php
if
(
$isjump
)
{
?>
location.href = "/e/member/cas.php?mod=check
&
ref_url=" + encodeURIComponent(window.location.href);
<?php
}
?>
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