Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
32b92e595fd054cbf4fc06d0feeab35baf0d37f6
1 parent
b369478b
测试
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
website/controller/Onlinereg.class.php
website/public/index.php
website/controller/Onlinereg.class.php
View file @
32b92e5
...
...
@@ -158,6 +158,14 @@ class Controller_Onlinereg extends Controller_Abstract
}
public
function
setcodeAction
()
{
$g
=
trim
(
$this
->
_request
->
query
(
'g'
));
$namespace
=
!
empty
(
$g
)
?
$g
:
'passport_istration'
;
Util_Captcha
::
setToSession
(
$namespace
,
'123'
);
// echo strtolower(Util_Captcha::getFromSession($namespace));
}
public
function
getcodeAction
()
{
$g
=
trim
(
$this
->
_request
->
query
(
'g'
));
...
...
website/public/index.php
View file @
32b92e5
...
...
@@ -32,6 +32,6 @@ include($config['Framework_Dir'] . '/Y.class.php');
// 实例化APP应用
$y
=
Framework_Y
::
instance
(
$config
);
//设置保存session
Util_Session
::
setSaveHandler
(
new
Util_Common_Session
()
);
//
Util_Session::setSaveHandler ( new Util_Common_Session () );
// 执行请求派遣
$y
->
dispatch
();
...
...
Please
register
or
login
to post a comment