Showing
2 changed files
with
9 additions
and
1 deletions
@@ -158,6 +158,14 @@ class Controller_Onlinereg extends Controller_Abstract | @@ -158,6 +158,14 @@ class Controller_Onlinereg extends Controller_Abstract | ||
158 | } | 158 | } |
159 | 159 | ||
160 | 160 | ||
161 | + public function setcodeAction() | ||
162 | + { | ||
163 | + $g = trim($this->_request->query('g')); | ||
164 | + $namespace = !empty($g) ? $g : 'passport_istration'; | ||
165 | + Util_Captcha::setToSession($namespace,'123'); | ||
166 | + // echo strtolower(Util_Captcha::getFromSession($namespace)); | ||
167 | + } | ||
168 | + | ||
161 | public function getcodeAction() | 169 | public function getcodeAction() |
162 | { | 170 | { |
163 | $g = trim($this->_request->query('g')); | 171 | $g = trim($this->_request->query('g')); |
@@ -32,6 +32,6 @@ include($config['Framework_Dir'] . '/Y.class.php'); | @@ -32,6 +32,6 @@ include($config['Framework_Dir'] . '/Y.class.php'); | ||
32 | // 实例化APP应用 | 32 | // 实例化APP应用 |
33 | $y = Framework_Y::instance($config); | 33 | $y = Framework_Y::instance($config); |
34 | //设置保存session | 34 | //设置保存session |
35 | - Util_Session::setSaveHandler ( new Util_Common_Session () ); | 35 | +// Util_Session::setSaveHandler ( new Util_Common_Session () ); |
36 | // 执行请求派遣 | 36 | // 执行请求派遣 |
37 | $y->dispatch(); | 37 | $y->dispatch(); |
-
Please register or login to post a comment