当前位置: 首页>>代码示例>>PHP>>正文


PHP FRoute::account方法代码示例

本文整理汇总了PHP中FRoute::account方法的典型用法代码示例。如果您正苦于以下问题:PHP FRoute::account方法的具体用法?PHP FRoute::account怎么用?PHP FRoute::account使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FRoute的用法示例。


在下文中一共展示了FRoute::account方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

"> <?php 
    echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_PASSWORD_FULL');
    ?>
</a>
						<?php 
} else {
    ?>
						<a class="text-error" href="<?php 
    echo FRoute::account(array('layout' => 'forgetUsername'));
    ?>
"> <?php 
    echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_USERNAME');
    ?>
</a> /
						<a class="text-error" href="<?php 
    echo FRoute::account(array('layout' => 'forgetPassword'));
    ?>
"> <?php 
    echo JText::_('COM_EASYSOCIAL_LOGIN_FORGOT_PASSWORD');
    ?>
</a>
						<?php 
}
?>
					</div>


					<input type="hidden" name="option" value="com_easysocial" />
					<input type="hidden" name="controller" value="account" />
					<input type="hidden" name="task" value="login" />
					<input type="hidden" name="return" value="<?php 
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:default.php

示例2: getRemindUsernameLink

 public static function getRemindUsernameLink()
 {
     $config = EasyBlogHelper::getConfig();
     $default = JRoute::_('index.php?option=com_user&view=remind');
     if (EasyBlogHelper::getJoomlaVersion() >= '1.6') {
         $default = JRoute::_('index.php?option=com_users&view=remind');
     }
     switch ($config->get('main_login_provider')) {
         case 'easysocial':
             $easysocial = EasyBlogHelper::getHelper('EasySocial');
             if ($easysocial->exists()) {
                 $link = FRoute::account(array('layout' => 'forgetPassword'));
             } else {
                 $link = $default;
             }
             break;
         default:
             $link = $default;
             break;
     }
     return $link;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:22,代码来源:easyblog.php

示例3: processUsersRedirection

 /**
  * Redirects users view to easysocial
  *
  * @since	1.0
  * @access	public
  * @return
  */
 public function processUsersRedirection()
 {
     $doc = JFactory::getDocument();
     if ($doc->getType() != 'html') {
         return;
     }
     // Check if the admin wants to enable this
     if (!$this->params->get('redirection', true)) {
         return;
     }
     // If this is registration from com_users, redirect to the appropriate page.
     if ($this->isUserRegistration()) {
         // Redirect to EasySocial's registration
         $url = FRoute::registration(array(), false);
         return $this->app->redirect($url);
     }
     // If this is username reminder, redirect to the appropriate page.
     if ($this->isUserRemind()) {
         // Redirect to EasySocial's registration
         $url = FRoute::account(array('layout' => 'forgetUsername'), false);
         return $this->app->redirect($url);
     }
     // If this is password reset, redirect to the appropriate page.
     if ($this->isUserReset()) {
         // Redirect to EasySocial's registration
         $url = FRoute::account(array('layout' => 'forgetPassword'), false);
         return $this->app->redirect($url);
     }
     // If this is password reset, redirect to the appropriate page.
     if ($this->isUserLogin()) {
         // Determine if there's any "return" url in the query string
         $return = JRequest::getVar('return');
         if ($return) {
             FD::setCallback(base64_decode($return));
         }
         // Redirect to EasySocial's registration
         $url = FRoute::login(array(), false);
         return $this->app->redirect($url);
     }
     // If this is password reset, redirect to the appropriate page.
     if ($this->isUserProfile()) {
         // Redirect to EasySocial's registration
         $url = FRoute::profile(array(), false);
         return $this->app->redirect($url);
     }
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:53,代码来源:easysocial.php

示例4: rgba

				font-weight:bold;
				margin-top: 20px;
				padding:10px 15px;
				line-height:20px;
				color:#fff;font-size: 12px;
				background-color: #83B3DD;
				background-image: linear-gradient(to bottom, #91C2EA, #6D9CCA);
				background-repeat: repeat-x;
				border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
				text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
				border-style: solid;
				border-width: 1px;
				box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
				border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px;
				" href="<?php 
echo FRoute::account(array('layout' => 'confirmReset', 'external' => true));
?>
"><?php 
echo JText::_('COM_EASYSOCIAL_EMAILS_RESET_PASSWORD');
?>
</a>

		<p style="margin-top: 20px;">
			<?php 
echo JText::_('COM_EASYSOCIAL_EMAILS_FORGET_USERNAME_FOOTPRINT');
?>
		</p>

	</td>
</tr>
开发者ID:ppantilla,项目名称:bbninja,代码行数:30,代码来源:remind.password.php

示例5: confirmResetPassword

 /**
  * Post process after user enters the verification code
  *
  * @since	1.0
  * @access	public
  */
 public function confirmResetPassword()
 {
     // Enqueue the message
     FD::info()->set($this->getMessage());
     if ($this->hasErrors()) {
         $redirect = FRoute::account(array('layout' => 'confirmReset'), false);
         return $this->redirect($redirect);
     }
     $redirect = FRoute::account(array('layout' => 'completeReset'), false);
     $this->redirect($redirect);
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:17,代码来源:view.html.php


注:本文中的FRoute::account方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。