|
|
|
@ -4,6 +4,7 @@
@@ -4,6 +4,7 @@
|
|
|
|
|
*/ |
|
|
|
|
require_once __DIR__ . '/../../../lib/DirScanner.php'; |
|
|
|
|
require_once __DIR__ . '/../../../plugins/Parsedown.php'; |
|
|
|
|
require_once __DIR__ . '/../../../plugins/Common.php'; |
|
|
|
|
|
|
|
|
|
Class SiteController extends Controller { |
|
|
|
|
|
|
|
|
@ -218,6 +219,13 @@ Class SiteController extends Controller {
@@ -218,6 +219,13 @@ Class SiteController extends Controller {
|
|
|
|
|
|
|
|
|
|
//邀请制新用户注册,使用手机号码 + 邀请码 + 短信验证码注册 |
|
|
|
|
public function actionRegister() { |
|
|
|
|
//判断是否已经登录 |
|
|
|
|
$loginedUser = Common::getUserFromSession(); |
|
|
|
|
if (!empty($loginedUser['username'])) { |
|
|
|
|
$shareUrl = "/{$loginedUser['username']}/"; |
|
|
|
|
return $this->redirect($shareUrl); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$pageTitle = "注册Ta荐:一个好用的视频收藏夹,帮你整理不同平台的好视频,还能分享给朋友!"; |
|
|
|
|
|
|
|
|
|
$this->layout = 'index'; |
|
|
|
@ -230,6 +238,13 @@ Class SiteController extends Controller {
@@ -230,6 +238,13 @@ Class SiteController extends Controller {
|
|
|
|
|
|
|
|
|
|
//用户登陆:使用手机号码 + 短信验证码登录 |
|
|
|
|
public function actionLogin() { |
|
|
|
|
//判断是否已经登录 |
|
|
|
|
$loginedUser = Common::getUserFromSession(); |
|
|
|
|
if (!empty($loginedUser['username'])) { |
|
|
|
|
$shareUrl = "/{$loginedUser['username']}/"; |
|
|
|
|
return $this->redirect($shareUrl); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$pageTitle = "登录Ta荐:一个好用的视频收藏夹,帮你整理不同平台的好视频,还能分享给朋友!"; |
|
|
|
|
|
|
|
|
|
$this->layout = 'index'; |
|
|
|
|