InviteController.php
607 Bytes
<?php
class InviteController extends QLib_Controller_Default_Action {
public function init() {
$this->_redirect(QConfigs_Site_Config::$site_url);
$this->_helper->layout()->disableLayout();
}
public function indexAction() {
}
public function authAction() {
$this->_redirect(QConfigs_Site_Config::$site_url);
$invite = trim($this->helpGpost('invite'));
if ($invite !== '9646abcdef') {
$this->_redirect(QConfigs_Site_Config::$site_url . '/Invite');
return;
}
$this->helpSession('invite')->__set('yoho_invite', $invite);
$this->_redirect(QConfigs_Site_Config::$site_url);
}
}