-
-reason) && $this->reason): ?>
-
-reason) {
- case 'error-controller-cannot-dispatch':
- $reasonMessage = $this->translate('The requested controller was unable to dispatch the request.');
- break;
- case 'error-controller-not-found':
- $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
- break;
- case 'error-controller-invalid':
- $reasonMessage = $this->translate('The requested controller was not dispatchable.');
- break;
- case 'error-router-no-match':
- $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
- break;
- default:
- $reasonMessage = $this->translate('We cannot determine at this time why a 404 was generated.');
- break;
-}
-?>
-
-
-
-
-
-controller) && $this->controller): ?>
-
-
message) ? "This page has been eaten by dinosaurs":$this->message ?>
+
+reason) && $this->reason): ?>
+
+reason) {
+ case 'error-controller-cannot-dispatch':
+ $reasonMessage = $this->translate('The requested controller was unable to dispatch the request.');
+ break;
+ case 'error-controller-not-found':
+ $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
+ break;
+ case 'error-controller-invalid':
+ $reasonMessage = $this->translate('The requested controller was not dispatchable.');
+ break;
+ case 'error-router-no-match':
+ $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
+ break;
+ default:
+ $reasonMessage = $this->translate('We cannot determine at this time why a 404 was generated.');
+ break;
+}
+?>
+
+
+
+
+
+controller) && $this->controller): ?>
+
+
- inlineScript() ?>
-
-
+doctype(); ?>
+
+
+
+
+ headTitle($config->site_title)->setSeparator(' - ')->setAutoEscape(false) ?>
+
+ headMeta()
+ ->appendName('viewport', 'width=device-width, initial-scale=1.0')
+ ->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
+ ?>
+
+
+ headLink(array('rel' => 'shortcut icon', 'type' => 'image/vnd.microsoft.icon', 'href' => $this->basePath() . '/img/favicon.ico'))
+
+ ->prependStylesheet($this->basePath() . '/sjyportal/css/bootstrap.min.css')
+ ->appendStylesheet($this->basePath() . '/sjyportal/css/bootstrap-responsive.min.css')
+ ->appendStylesheet($this->basePath() . '/sjyportal/css/style.css')
+
+ ?>
+
+
+ headScript()
+
+
+ ->prependFile($this->basePath() . '/sjyportal/js/bootstrap.min.js')
+
+ ->prependFile($this->basePath() . '/js/jquery.min.js')
+ ->prependFile($this->basePath() . '/js/respond.min.js', 'text/javascript', array('conditional' => 'lt IE 9',))
+ ->prependFile($this->basePath() . '/js/html5shiv.js', 'text/javascript', array('conditional' => 'lt IE 9',))
+ ; ?>
+
+
+ partial('layout/layout/header');?>
+
+ content; ?>
+ partial('layout/layout/footer');?>
+
+ inlineScript() ?>
+
+
diff --git a/module/Member/Module.php b/module/Member/Module.php
deleted file mode 100644
index 0890eb81..00000000
--- a/module/Member/Module.php
+++ /dev/null
@@ -1,48 +0,0 @@
-getEventManager()->getSharedManager();
- $sharedEvents->attach(__NAMESPACE__, MvcEvent::EVENT_DISPATCH ,array(new LayoutHelpers, 'setMemberScript'), 100);
- }
-
- public function getConfig()
- {
- return include __DIR__ . '/config/module.config.php';
- }
-
- public function getAutoloaderConfig()
- {
- return array(
- 'Zend\Loader\StandardAutoloader' => array(
- 'namespaces' => array(
- __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
- ),
- ),
- );
- }
-}
diff --git a/module/Member/config/module.config.php b/module/Member/config/module.config.php
deleted file mode 100644
index 7b9fdc43..00000000
--- a/module/Member/config/module.config.php
+++ /dev/null
@@ -1,101 +0,0 @@
- array(
- 'routes' => array(
- //member
- 'member' => array(
- 'type' => 'Zend\Mvc\Router\Http\Literal',
- //'type' => 'Segment',
- 'options' => array(
- 'route' => '/member',
- 'defaults' => array(
- 'module' => 'Member',
- '__NAMESPACE__' => 'Member\Controller',
- 'controller' => 'Member\Controller\Index',
- 'action' => 'index',
- ),
- ),
- 'may_terminate' => true,
- ),//member
-
- //login
- 'login' => array(
- 'type' => 'Zend\Mvc\Router\Http\Literal',
- 'options' => array(
- 'route' => '/member/login',
- 'defaults' => array(
- 'module' => 'Member',
- '__NAMESPACE__' => 'Member\Controller',
- 'controller' => 'Member\Controller\Account',
- 'action' => 'login',
- ),
- ),
- 'may_terminate' => true,
- ),//login
-
- //register
- 'register' => array(
- 'type' => 'Zend\Mvc\Router\Http\Literal',
- 'options' => array(
- 'route' => '/member/register',
- 'defaults' => array(
- 'module' => 'Member',
- '__NAMESPACE__' => 'Member\Controller',
- 'controller' => 'Member\Controller\Account',
- 'action' => 'register',
- ),
- ),
- 'may_terminate' => true,
- ),//register
-
- ),
- ),
- 'service_manager' => array(
- 'abstract_factories' => array(
- 'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
- 'Zend\Log\LoggerAbstractServiceFactory',
- ),
- 'aliases' => array(
- 'translator' => 'MvcTranslator',
- ),
- ),
- 'translator' => array(
- 'locale' => 'en_US',
- 'translation_file_patterns' => array(
- array(
- 'type' => 'gettext',
- 'base_dir' => __DIR__ . '/../language',
- 'pattern' => '%s.mo',
- ),
- ),
- ),
- 'controllers' => array(
- 'invokables' => array(
- 'Member\Controller\Index' => 'Member\Controller\IndexController',
- 'Member\Controller\Account' => 'Member\Controller\AccountController',
- ),
- ),
- 'view_manager' => array(
- 'template_path_stack' => array(
- __DIR__ . '/../view',
- ),
- 'strategies' => array(
- 'ViewJsonStrategy',
- ),
- ),
- // Placeholder for console routes
- 'console' => array(
- 'router' => array(
- 'routes' => array(
- ),
- ),
- ),
-);
diff --git a/module/Member/language/en_US.mo b/module/Member/language/en_US.mo
deleted file mode 100644
index 972a28ab..00000000
Binary files a/module/Member/language/en_US.mo and /dev/null differ
diff --git a/module/Member/language/en_US.po b/module/Member/language/en_US.po
deleted file mode 100644
index b5e5f81b..00000000
--- a/module/Member/language/en_US.po
+++ /dev/null
@@ -1,153 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: ZendSkeletonApplication\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-07-05 22:17-0700\n"
-"PO-Revision-Date: 2012-07-05 22:17-0700\n"
-"Last-Translator: Evan Coury \n"
-"Language-Team: ZF Contibutors \n"
-"Language: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-KeywordsList: translate\n"
-"X-Poedit-Language: English\n"
-"X-Poedit-Country: UNITED STATES\n"
-"X-Poedit-Basepath: .\n"
-"X-Poedit-SearchPath-0: ..\n"
-
-#: ../view/layout/layout.phtml:6
-#: ../view/layout/layout.phtml:33
-msgid "Skeleton Application"
-msgstr ""
-
-#: ../view/layout/layout.phtml:36
-msgid "Home"
-msgstr ""
-
-#: ../view/layout/layout.phtml:50
-msgid "All rights reserved."
-msgstr ""
-
-#: ../view/application/index/index.phtml:2
-#, php-format
-msgid "Welcome to %sZend Framework 2%s"
-msgstr ""
-
-#: ../view/application/index/index.phtml:3
-#, php-format
-msgid "Congratulations! You have successfully installed the %sZF2 Skeleton Application%s. You are currently running Zend Framework version %s. This skeleton can serve as a simple starting point for you to begin building your application on ZF2."
-msgstr ""
-
-#: ../view/application/index/index.phtml:4
-msgid "Fork Zend Framework 2 on GitHub"
-msgstr ""
-
-#: ../view/application/index/index.phtml:10
-msgid "Follow Development"
-msgstr ""
-
-#: ../view/application/index/index.phtml:11
-#, php-format
-msgid "Zend Framework 2 is under active development. If you are interested in following the development of ZF2, there is a special ZF2 portal on the official Zend Framework website which provides links to the ZF2 %swiki%s, %sdev blog%s, %sissue tracker%s, and much more. This is a great resource for staying up to date with the latest developments!"
-msgstr ""
-
-#: ../view/application/index/index.phtml:12
-msgid "ZF2 Development Portal"
-msgstr ""
-
-#: ../view/application/index/index.phtml:16
-msgid "Discover Modules"
-msgstr ""
-
-#: ../view/application/index/index.phtml:17
-#, php-format
-msgid "The community is working on developing a community site to serve as a repository and gallery for ZF2 modules. The project is available %son GitHub%s. The site is currently live and currently contains a list of some of the modules already available for ZF2."
-msgstr ""
-
-#: ../view/application/index/index.phtml:18
-msgid "Explore ZF2 Modules"
-msgstr ""
-
-#: ../view/application/index/index.phtml:22
-msgid "Help & Support"
-msgstr ""
-
-#: ../view/application/index/index.phtml:23
-#, php-format
-msgid "If you need any help or support while developing with ZF2, you may reach us via IRC: %s#zftalk on Freenode%s. We'd love to hear any questions or feedback you may have regarding the beta releases. Alternatively, you may subscribe and post questions to the %smailing lists%s."
-msgstr ""
-
-#: ../view/application/index/index.phtml:24
-msgid "Ping us on IRC"
-msgstr ""
-
-#: ../view/error/index.phtml:1
-msgid "An error occurred"
-msgstr ""
-
-#: ../view/error/index.phtml:8
-msgid "Additional information"
-msgstr ""
-
-#: ../view/error/index.phtml:11
-#: ../view/error/index.phtml:35
-msgid "File"
-msgstr ""
-
-#: ../view/error/index.phtml:15
-#: ../view/error/index.phtml:39
-msgid "Message"
-msgstr ""
-
-#: ../view/error/index.phtml:19
-#: ../view/error/index.phtml:43
-#: ../view/error/404.phtml:55
-msgid "Stack trace"
-msgstr ""
-
-#: ../view/error/index.phtml:29
-msgid "Previous exceptions"
-msgstr ""
-
-#: ../view/error/index.phtml:58
-msgid "No Exception available"
-msgstr ""
-
-#: ../view/error/404.phtml:1
-msgid "A 404 error occurred"
-msgstr ""
-
-#: ../view/error/404.phtml:10
-msgid "The requested controller was unable to dispatch the request."
-msgstr ""
-
-#: ../view/error/404.phtml:13
-msgid "The requested controller could not be mapped to an existing controller class."
-msgstr ""
-
-#: ../view/error/404.phtml:16
-msgid "The requested controller was not dispatchable."
-msgstr ""
-
-#: ../view/error/404.phtml:19
-msgid "The requested URL could not be matched by routing."
-msgstr ""
-
-#: ../view/error/404.phtml:22
-msgid "We cannot determine at this time why a 404 was generated."
-msgstr ""
-
-#: ../view/error/404.phtml:34
-msgid "Controller"
-msgstr ""
-
-#: ../view/error/404.phtml:41
-#, php-format
-msgid "resolves to %s"
-msgstr ""
-
-#: ../view/error/404.phtml:51
-msgid "Exception"
-msgstr ""
-
diff --git a/module/Member/language/zh_CN.mo b/module/Member/language/zh_CN.mo
deleted file mode 100644
index 2a3be234..00000000
Binary files a/module/Member/language/zh_CN.mo and /dev/null differ
diff --git a/module/Member/language/zh_CN.po b/module/Member/language/zh_CN.po
deleted file mode 100644
index b6a2fb92..00000000
--- a/module/Member/language/zh_CN.po
+++ /dev/null
@@ -1,174 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: ZendSkeletonApplication\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-07-05 22:17-0700\n"
-"PO-Revision-Date: 2012-09-08 13:15+0800\n"
-"Last-Translator: Evan Coury \n"
-"Language-Team: ZF Contibutors \n"
-"Language: en_US\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Poedit-KeywordsList: translate\n"
-"X-Poedit-Basepath: .\n"
-"X-Poedit-SearchPath-0: ..\n"
-
-#: ../view/layout/layout.phtml:6 ../view/layout/layout.phtml:33
-msgid "Skeleton Application"
-msgstr "框架应用"
-
-#: ../view/layout/layout.phtml:36
-msgid "Home"
-msgstr "主页"
-
-#: ../view/layout/layout.phtml:50
-msgid "All rights reserved."
-msgstr "All rights reserved."
-
-#: ../view/application/index/index.phtml:2
-#, php-format
-msgid "Welcome to %sZend Framework 2%s"
-msgstr "欢迎使用%sZend Framework 2%s"
-
-#: ../view/application/index/index.phtml:3
-#, php-format
-msgid ""
-"Congratulations! You have successfully installed the %sZF2 Skeleton "
-"Application%s. You are currently running Zend Framework version %s. This "
-"skeleton can serve as a simple starting point for you to begin building your "
-"application on ZF2."
-msgstr ""
-"恭喜!您已经成功安装了%sZF2 Skeleton Application%s。您现在运行的Zend "
-"Framework的版本为%s。这个框架应用可以用作您创建自己的ZF2应用的起点。"
-
-#: ../view/application/index/index.phtml:4
-msgid "Fork Zend Framework 2 on GitHub"
-msgstr "在GitHub中获取Zend Framework 2到您的应用"
-
-#: ../view/application/index/index.phtml:10
-msgid "Follow Development"
-msgstr "关注开发"
-
-#: ../view/application/index/index.phtml:11
-#, php-format
-msgid ""
-"Zend Framework 2 is under active development. If you are interested in "
-"following the development of ZF2, there is a special ZF2 portal on the "
-"official Zend Framework website which provides links to the ZF2 %swiki%s, "
-"%sdev blog%s, %sissue tracker%s, and much more. This is a great resource for "
-"staying up to date with the latest developments!"
-msgstr ""
-"Zend Framework 2正在开发中。如果您有兴趣关注ZF2的开发,Zend Framework的官方网"
-"站有一个专门的ZF2入口,从这个入口可以进入ZF2的%swiki%s, %sdev blog%s, "
-"%sissue tracker%s等。这些是关注我们最新开发的好资源!"
-
-#: ../view/application/index/index.phtml:12
-msgid "ZF2 Development Portal"
-msgstr "ZF2 开发入口"
-
-#: ../view/application/index/index.phtml:16
-msgid "Discover Modules"
-msgstr "探索模块"
-
-#: ../view/application/index/index.phtml:17
-#, php-format
-msgid ""
-"The community is working on developing a community site to serve as a "
-"repository and gallery for ZF2 modules. The project is available %son GitHub"
-"%s. The site is currently live and currently contains a list of some of the "
-"modules already available for ZF2."
-msgstr ""
-"社区正在开发一个能够存储和展示ZF2模块的功能。这个项目可以在%son GitHub%s找"
-"到。这个网站现在已经包含了许多ZF2可用的模块。"
-
-#: ../view/application/index/index.phtml:18
-msgid "Explore ZF2 Modules"
-msgstr "浏览ZF2模块"
-
-#: ../view/application/index/index.phtml:22
-msgid "Help & Support"
-msgstr "帮助 & 支持"
-
-#: ../view/application/index/index.phtml:23
-#, php-format
-msgid ""
-"If you need any help or support while developing with ZF2, you may reach us "
-"via IRC: %s#zftalk on Freenode%s. We'd love to hear any questions or "
-"feedback you may have regarding the beta releases. Alternatively, you may "
-"subscribe and post questions to the %smailing lists%s."
-msgstr ""
-"如果您需要一些关于ZF2开发的帮助和支持,可以通过IRC: %s#zftalk on Freenode"
-"%s。我们非常乐意收到您对于发布的公测版提问和反馈。或者,您也可以通"
-"过%smailing lists%s订阅并发布问题。"
-
-#: ../view/application/index/index.phtml:24
-msgid "Ping us on IRC"
-msgstr "在IRC上ping我们"
-
-#: ../view/error/index.phtml:1
-msgid "An error occurred"
-msgstr "发生错误"
-
-#: ../view/error/index.phtml:8
-msgid "Additional information"
-msgstr "附加信息"
-
-#: ../view/error/index.phtml:11 ../view/error/index.phtml:35
-msgid "File"
-msgstr "文件"
-
-#: ../view/error/index.phtml:15 ../view/error/index.phtml:39
-msgid "Message"
-msgstr "消息"
-
-#: ../view/error/index.phtml:19 ../view/error/index.phtml:43
-#: ../view/error/404.phtml:55
-msgid "Stack trace"
-msgstr "Stack trace"
-
-#: ../view/error/index.phtml:29
-msgid "Previous exceptions"
-msgstr "上一个异常"
-
-#: ../view/error/index.phtml:58
-msgid "No Exception available"
-msgstr "没有可用的Exception"
-
-#: ../view/error/404.phtml:1
-msgid "A 404 error occurred"
-msgstr "404 缺少目标文件"
-
-#: ../view/error/404.phtml:10
-msgid "The requested controller was unable to dispatch the request."
-msgstr "所请求的控制器不能分发该请求"
-
-#: ../view/error/404.phtml:13
-msgid ""
-"The requested controller could not be mapped to an existing controller class."
-msgstr "所请求的控制器不能映射到已存在的控制器类"
-
-#: ../view/error/404.phtml:16
-msgid "The requested controller was not dispatchable."
-msgstr ""
-
-#: ../view/error/404.phtml:19
-msgid "The requested URL could not be matched by routing."
-msgstr "所请求的URL不能与路由对应"
-
-#: ../view/error/404.phtml:22
-msgid "We cannot determine at this time why a 404 was generated."
-msgstr "我们不能确定为什么这次会出现404"
-
-#: ../view/error/404.phtml:34
-msgid "Controller"
-msgstr "控制器"
-
-#: ../view/error/404.phtml:41
-#, php-format
-msgid "resolves to %s"
-msgstr "解决: %s"
-
-#: ../view/error/404.phtml:51
-msgid "Exception"
-msgstr "异常"
diff --git a/module/Member/src/Member/Controller/AccountController.php b/module/Member/src/Member/Controller/AccountController.php
deleted file mode 100644
index d7af0330..00000000
--- a/module/Member/src/Member/Controller/AccountController.php
+++ /dev/null
@@ -1,314 +0,0 @@
-ViewModel = new ViewModel();
- }
-
- public function indexAction()
- {
- $submit = $this->params()->fromPost('submit');
-
- $account = new Account();
-
- if(!empty($submit))
- {
- $data = $account->getEditParam($this->getRequest());
- $Listener = new \Sookon\User\Listener\EditListener();
- $account->getEventManager()->attachAggregate($Listener);
- $type = $this->params()->fromPost('type');
- $this->ViewModel->setVariable('section',$type) ;
- $status = $account->edit($data,$type);
- if($status !== true)
- {
- $this->ViewModel->setVariable('error',view::Error($status));
- }else{
- $this->ViewModel->setVariable('error',view::Error("修改成功","alert-success"));
- }
- }
-
- $user = $account->getAccountInfo();
-
- $av = new Gravatar();
- $this->ViewModel->setVariable('user',$user);
- $this->ViewModel->setVariable('avatar',$av->Get($user['email'],100));
-
- return $this->ViewModel;
- }
-
- public function loginAction()
- {
- if($this->getRequest()->isXmlHttpRequest())
- {
- $submit = $this->params()->fromPost('submit');
- if(!empty($submit))
- {
- if ($auth->hasIdentity())
- {
- return JsonModel(array('error'=>"您已登录,无需重复登录"));
- }
-
- else{
- $account = new Account();
-
- $status = $account->login(array(
- 'username'=>$this->params()->fromPost('username'),
- 'password'=>$this->params()->fromPost('password')
- ));
-
- if(is_array($status))
- {
- return new JsonModel($status);
- }
- }
- }
- return;
- }
-
- $auth = new Auth;
- $instance = $auth->getInstance();
-
- if ($instance->hasIdentity())
- {
- view::Post($this,'您已经登陆过了,无需重复登陆','/');
- return $this->ViewModel;
- }
-
- $submit = $this->params()->fromPost('submit');
- if(!empty($submit))
- {
- $account = new Account();
- $status = $account->login(array(
- 'username'=>$this->params()->fromPost('username'),
- 'password'=>$this->params()->fromPost('password')
- ));
-
- if(isset($status['error']))
- {
- $viewModel = array('error' => view::Error($status['error']));
- if(isset($status['place']))
- {
- array_push($viewModel,array("place"=>$status['place']));
- }
- return new ViewModel($viewModel);
- }else{
- if(isset($_GET['href']) && !preg_match("/http:\/\//",$_GET['href']) && $_GET['href'] != '/account/login')
- {
- $href = $_GET['href'];
- }else{
- $href = "/";
- }
- view::Post($this,"登陆成功!",$href);
- return $this->ViewModel;
- }
-
- }
- }//login
-
- public function registerAction()
- {
-
- if($this->getRequest()->isXmlHttpRequest())
- {
- $this->_helper->layout->disableLayout();
- $this->_helper->viewRenderer->setNoRender();
-
- $account = new Account();
- $data = $account->getParam($this->_request);
-
- $result = $account->register($data);
-
- if(!empty($result))
- {
- $this->jsonexit($result);
- return true;
- }
-
- $this->jsonexit(array('error'=>'|o| 服务器掉链子了,请重试'));
-
- return;
- }
-
- $success = false;
-
- $auth = new Auth;
- $instance = $auth->getInstance();
-
- if ($instance->hasIdentity())
- {
- view::Post($this,'您已经登陆过了,无需重复登陆','/');
- return $this->ViewModel;
- }
-
- $submit = $this->params()->fromPost('submit');
- if(!empty($submit))
- {
- $account = new Account();
- $data = array(
- 'username' => $this->params()->fromPost('username'),
- 'password'=>$this->params()->fromPost('password'),
- 'confirm_password'=>$this->params()->fromPost('confirm_password'),
- 'email'=>$this->params()->fromPost('email'),
- 'realname'=>$this->params()->fromPost('realname')
- );
-
- $result = $account->register($data);
-
- if(!empty($result))
- {
- if(isset($result['error']))
- {
- $this->ViewModel->setVariable('error',view::Error($result['error']));
- $this->ViewModel->setVariable('data',$data);
- if(isset($result['place']))
- {
- $this->ViewModel->setVariable('place',$result['place']);
- }
- return $this->ViewModel;
- }
- if(isset($result['success']))
- {
- view::Post($this,"注册成功!",'/');
- return $this->ViewModel;
- }
- }else{
- $this->ViewModel->setVariable('error','处理中出现问题');
- $this->ViewModel->setVariable('data',$data);
- return $this->ViewModel;
- }
- }//submit
- }//用户注册
-
- //登录状态
- public function loginstatus()
- {
-
- }
-
- public function logoutAction()
- {
- $auth = new Auth();
- $result = $auth->clearIndentity();
-
- Member::flushcookie();
-
- view::Post($this,"您已经成功注销",'/');
- return $this->ViewModel;
- }
-
- //找回密码
- public function forgotpasswordAction()
- {
- $submit = $this->params()->fromPost('submit');
- $captcha = new Captcha();
- if(!empty($submit))
- {
- $email = $this->params()->fromPost('email');
- $captchaword = $this->params()->fromPost('captcha');
-
- if(!$captcha->isValid($captchaword))
- {
- $this->ViewModel->setVariable('error',view::Error("验证码错误"));
- $this->ViewModel->setVariable('captcha', $captcha->setCaptcha());
- return $this->ViewModel;
- }
-
- $account = new Account();
- $status = $account->getMyPassword($email);
- if(isset($status['error']) && !empty($status['error']))
- {
- $this->ViewModel->setVariable('captcha', $captcha->setCaptcha());
- $this->ViewModel->setVariable('error',$status['error']);
- return $this->ViewModel;
- }else{
- $this->ViewModel->setVariable('msg',"申请成功!请在您的邮箱中查看密码重置邮件");
- return $this->ViewModel;
- }
- }else{
- $this->ViewModel->setVariable('captcha', $captcha->setCaptcha());
- return $this->ViewModel;
- }
- }
-
- //重置密码
- public function getpasswordAction()
- {
- $submit = $this->params()->fromPost('submit');
- $salt = $this->params()->fromQuery('salt');
-
- if(empty($salt))
- {
- $this->ViewModel->setVariable('msg',view::Msg("alert-danger","缺少密码重置密钥"));
- return $this->ViewModel;
- }
-
- $this->ViewModel->setVariable('salt',$salt);
-
- if(!empty($submit))
- {
- $data = array(
- 'username' => $this->params()->fromPost('username'),
- 'password' => $this->params()->fromPost('password'),
- 'confirm_password' => $this->params()->fromPost('confirm_password'),
- 'salt' => $salt
- );
- $account = new Account();
-
- $Listener = new \Sookon\User\Listener\PwdListener();
- $account->getEventManager()->attachAggregate($Listener);
-
- $status = $account->resetPassword($data);
-
- if(isset($status['error']) && !empty($status['error']))
- {
- $this->ViewModel->setVariable('username',$data['username']);
- $this->ViewModel->setVariable('error',view::Error($status['error']));
- return $this->ViewModel;
- }else{
- $this->ViewModel->setVariable('msg',view::Msg("alert-success","您的密码已经成功更改,请点击这里登陆"));
- return $this->ViewModel;
- }
- }
- }//getpasswordAction()
-
- public function captchaAction()
- {
- if($this->getRequest()->isXmlHttpRequest())
- {
- $this->ViewModel->setTerminal(true);
- $captcha = new Captcha();
- $url = $captcha->setCaptcha();
- echo $url;
- exit();
- }else{
- echo "bad request!";
- exit();
- }
- }
-
-}
diff --git a/module/Member/src/Member/Controller/IndexController.php b/module/Member/src/Member/Controller/IndexController.php
deleted file mode 100644
index a2ebf7f4..00000000
--- a/module/Member/src/Member/Controller/IndexController.php
+++ /dev/null
@@ -1,36 +0,0 @@
-ViewModel = new ViewModel();
- }
-
- public function indexAction()
- {
-
- return $this->ViewModel;
- }
-
- public function aboutAction()
- {
-
- return $this->ViewModel;
- }
-}
diff --git a/module/Member/view/error/404.phtml b/module/Member/view/error/404.phtml
deleted file mode 100755
index 323733d5..00000000
--- a/module/Member/view/error/404.phtml
+++ /dev/null
@@ -1,107 +0,0 @@
-
translate('A 404 error occurred') ?>
-
message ?>
-
-reason) && $this->reason): ?>
-
-reason) {
- case 'error-controller-cannot-dispatch':
- $reasonMessage = $this->translate('The requested controller was unable to dispatch the request.');
- break;
- case 'error-controller-not-found':
- $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
- break;
- case 'error-controller-invalid':
- $reasonMessage = $this->translate('The requested controller was not dispatchable.');
- break;
- case 'error-router-no-match':
- $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
- break;
- default:
- $reasonMessage = $this->translate('We cannot determine at this time why a 404 was generated.');
- break;
-}
-?>
-
-
-
-
-
-controller) && $this->controller): ?>
-
-