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


PHP FRoute::registration方法代码示例

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


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

示例1: getRegistrationURL

 public function getRegistrationURL()
 {
     $usersConfig = JComponentHelper::getParams('com_users');
     if ($usersConfig->get('allowUserRegistration')) {
         return FRoute::registration();
     }
     return null;
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:8,代码来源:login.php

示例2: getRegistrationLink

	public function getRegistrationLink()
	{
		$config = Komento::getConfig();

		$link	= JRoute::_( 'index.php?option=com_users&view=registration' );

		switch( $config->get( 'login_provider' ) )
		{
			case 'cb':
				$link 	= JRoute::_( 'index.php?option=com_comprofiler&task=registers' );
				break;
			break;

			case 'joomla':
				if( Komento::isJoomla15() )
				{
					$link	= JRoute::_( 'index.php?option=com_user&view=register' );
				}
				else
				{
					$link	= JRoute::_( 'index.php?option=com_users&view=registration' );
				}
			break;

			case 'jomsocial':
				$link	= JRoute::_( 'index.php?option=com_community&view=register' );
			break;

			case 'easysocial':
				$es = Komento::getHelper( 'EasySocial' );

				if( $es->exists() )
				{
					$link = FRoute::registration();
				}
			break;
		}

		return $link;
	}
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:40,代码来源:login.php

示例3:

        ?>
</a>

							<?php 
        if ($this->config->get('oauth.facebook.registration.enabled') && $this->config->get('registrations.enabled') && ($this->config->get('oauth.facebook.secret') && $this->config->get('oauth.facebook.app') || $this->config->get('oauth.facebook.jfbconnect.enabled'))) {
            ?>
								<div class="text-center es-signin-social">
									<p class="line">
										<strong><?php 
            echo JText::_('COM_EASYSOCIAL_OR_REGISTER_WITH_YOUR_SOCIAL_IDENTITY');
            ?>
</strong>
									</p>

									<?php 
            echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false), false, 'popup', JText::_('COM_EASYSOCIAL_REGISTER_WITH_YOUR_FACEBOOK_ACCOUNT'));
            ?>
								</div>
							<?php 
        }
        ?>
						</div>
					</div>
				</div>
			<?php 
    }
    ?>
		<?php 
}
?>
	</div>
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:default.php

示例4:

    ?>
				</li>
				<?php 
}
?>
			</ul>


			<div class="dropdown-menu-footer">
				<ul class="fd-reset-list">
					<?php 
if ($this->config->get('registrations.enabled') && $this->config->get('general.site.lockdown.enabled') && $this->config->get('general.site.lockdown.registration') || $this->config->get('registrations.enabled') && !$this->config->get('general.site.lockdown.enabled')) {
    ?>
					<li>
						<i class="ies-plus-2"></i>  <a href="<?php 
    echo FRoute::registration();
    ?>
" class="pull-" tabindex="5"><?php 
    echo JText::_('COM_EASYSOCIAL_REGISTRATION_CREATE_NEW_ACCOUNT');
    ?>
</a>
					</li>
					<?php 
}
?>
					<?php 
if (!$this->config->get('registrations.emailasusername')) {
    ?>
					<li>
						<i class="ies-help"></i>  <a href="<?php 
    echo FRoute::account(array('layout' => 'forgetUsername'));
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.login.php

示例5: getRegistrationLink

 public static function getRegistrationLink()
 {
     $config = DiscussHelper::getConfig();
     $default = JRoute::_('index.php?option=com_user&view=register');
     if (DiscussHelper::getJoomlaVersion() >= '1.6') {
         $default = JRoute::_('index.php?option=com_users&view=registration');
     }
     switch ($config->get('main_login_provider')) {
         case 'joomla':
             $link = $default;
             break;
         case 'cb':
             $link = JRoute::_('index.php?option=com_comprofiler&task=registers');
             break;
         case 'easysocial':
             $easysocial = DiscussHelper::getHelper('EasySocial');
             if ($easysocial->exists()) {
                 $link = FRoute::registration();
             } else {
                 $link = $default;
             }
             break;
         case 'jomsocial':
             $link = JRoute::_('index.php?option=com_community&view=register');
             $file = JPATH_ROOT . '/components/com_community/libraries/core.php';
             if (JFile::exists($file)) {
                 require_once $file;
                 $link = CRoute::_('index.php?option=com_community&view=register');
             }
             break;
     }
     return $link;
 }
开发者ID:pguilford,项目名称:vcomcc,代码行数:33,代码来源:helper.php

示例6: array

?>
<style type="text/css">
<?php 
echo $styles;
?>
</style>

<div id="fd" class="es">
<div id="es-signupbox">
	<div class="fb-signup-btn">
		<?php 
if ($config->get('oauth.facebook.registration.enabled') && $config->get('registrations.enabled') && ($config->get('oauth.facebook.secret') && $config->get('oauth.facebook.app') || $config->get('oauth.facebook.jfbconnect.enabled'))) {
    ?>
					<div class="es-signin-social">
						<?php 
    echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false), array(), 'popup', JText::_('MOD_EASYSOCIAL_SIGNUPBOX_FB_SIGNUP_BTN_TXT'));
    ?>
					</div>
					<?php 
}
?>
	</div>

	<div class="email-signup-btn">
		<a class="btn btn-email-signup" href="<?php 
echo JRoute::_('index.php?option=com_easysocial&view=registration');
?>
"><i class="fa fa-envelope-o"></i> <?php 
echo JText::_('MOD_EASYSOCIAL_SIGNUPBOX_EMAIL_SIGNUP_BTN_TXT');
?>
</a>
开发者ID:knigherrant,项目名称:decopatio,代码行数:31,代码来源:default.php

示例7:

    ?>
" class="pull-" tabindex="6"><?php 
    echo JText::_('COM_EASYSOCIAL_REGISTRATION_FORGOT_PASSWORD');
    ?>
</a>
										</li>
									</ul>
								</div>
							</li>

							<?php 
    if ($config->get('oauth.facebook.registration.enabled') && $facebook) {
        ?>
							<li class="item-social text-center">
								<?php 
        echo $facebook->getLoginButton(FRoute::registration(array('layout' => 'oauthDialog', 'client' => 'facebook', 'external' => true), false));
        ?>
							</li>
							<?php 
    }
    ?>
						</ul>

						<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 
    echo $loginReturn;
    ?>
" />
						<?php 
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:default.php

示例8: getPasswordAndProfileLinks

 function getPasswordAndProfileLinks()
 {
     $registerType = $this->params->get('register_type');
     $this->forgotLink = '';
     if ($registerType == "jomsocial" && file_exists(JPATH_BASE . '/components/com_community/libraries/core.php')) {
         $jspath = JPATH_BASE . '/components/com_community';
         include_once $jspath . '/libraries/core.php';
         $this->registerLink = CRoute::_('index.php?option=com_community&view=register');
         $user = JFactory::getUser();
         $this->profileLink = CRoute::_('index.php?option=com_community&view=profile&userid=' . $user->id);
     } else {
         if ($registerType == 'easysocial' && file_exists(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php')) {
             include_once JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php';
             $this->registerLink = FRoute::registration();
             if (method_exists('FRoute', 'getDefaultItemId')) {
                 $Itemid = '&Itemid=' . FRoute::getDefaultItemId('account');
             } else {
                 $Itemid = '';
             }
             $this->forgotUsernameLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetUsername' . $Itemid);
             $this->forgotPasswordLink = JRoute::_('index.php?option=com_easysocial&view=account&layout=forgetpassword' . $Itemid);
             $this->profileLink = FRoute::profile();
         } else {
             if ($registerType == "communitybuilder" && file_exists(JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php')) {
                 $this->registerLink = JRoute::_("index.php?option=com_comprofiler&task=registers", false);
                 $this->forgotLink = JRoute::_("index.php?option=com_comprofiler&task=lostPassword");
                 $this->forgotUsernameLink = $this->forgotLink;
                 $this->forgotPasswordLink = $this->forgotLink;
                 $this->profileLink = JRoute::_("index.php?option=com_comprofiler", false);
             } else {
                 if ($registerType == "virtuemart" && file_exists(JPATH_ADMINISTRATOR . '/components/com_virtuemart/version.php')) {
                     require_once JPATH_ADMINISTRATOR . '/components/com_virtuemart/version.php';
                     if (class_exists('vmVersion') && property_exists('vmVersion', 'RELEASE')) {
                         if (version_compare('1.99', vmVersion::$RELEASE)) {
                             // -1 if ver1, 1 if 2.0+
                             $this->registerLink = JRoute::_("index.php?option=com_virtuemart&view=user", false);
                         } else {
                             if (file_exists(JPATH_SITE . '/components/com_virtuemart/virtuemart_parser.php')) {
                                 require_once JPATH_SITE . '/components/com_virtuemart/virtuemart_parser.php';
                                 global $sess;
                                 $this->registerLink = $sess->url(SECUREURL . 'index.php?option=com_virtuemart&amp;page=shop.registration');
                             }
                         }
                     }
                     $this->profileLink = '';
                 } else {
                     if ($registerType == 'kunena' && JFolder::exists(JPATH_SITE . '/components/com_kunena')) {
                         $this->profileLink = JRoute::_('index.php?option=com_kunena&view=user', false);
                         $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false);
                     } else {
                         if ($registerType == 'custom') {
                             $this->profileLink = '';
                             $this->registerLink = $this->getLoginRedirect('registrationlink', false);
                         } else {
                             $this->profileLink = '';
                             $this->registerLink = JRoute::_('index.php?option=com_users&view=registration', false);
                         }
                     }
                 }
             }
         }
     }
     // common for J!, JomSocial, and Virtuemart
     if (!$this->forgotUsernameLink) {
         $this->forgotUsernameLink = JRoute::_('index.php?option=com_users&view=remind', false);
     }
     if (!$this->forgotPasswordLink) {
         $this->forgotPasswordLink = JRoute::_('index.php?option=com_users&view=reset', false);
     }
 }
开发者ID:bobozhangshao,项目名称:HeartCare,代码行数:70,代码来源:helper.php

示例9: rgba

        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;
        "><?php 
echo JText::_('COM_EASYSOCIAL_EMAILS_ACTIVATE_NOW');
?>
</a>

        <p>
            <?php 
echo JText::_('COM_EASYSOCIAL_EMAILS_REGISTRATION_ACTIVATION_ALTERNATIVE');
?>
            <a href="<?php 
echo FRoute::registration(array('external' => true, 'layout' => 'activation', 'userid' => $id));
?>
"><?php 
echo JText::_('COM_EASYSOCIAL_EMAILS_REGISTRATION_ACTIVATION_ALTERNATIVE_THIS_PAGE');
?>
</a>.
        </p>

        <blockquote style="margin-bottom: 50px;">
            <?php 
echo $token;
?>
        </blockquote>

        <table align="center" width="96px" border="0" cellpadding="0" cellspacing="0">
        <tbody><tr>
开发者ID:ppantilla,项目名称:bbninja,代码行数:31,代码来源:reactivate.php

示例10: getRegistrationLink

 public static function getRegistrationLink()
 {
     $config = EasyBlogHelper::getConfig();
     $default = JRoute::_('index.php?option=com_users&view=registration');
     switch ($config->get('main_login_provider')) {
         case 'easysocial':
             $easysocial = EasyBlogHelper::getHelper('EasySocial');
             if ($easysocial->exists()) {
                 $link = FRoute::registration();
             } else {
                 $link = $default;
             }
             break;
         case 'cb':
             $link = JRoute::_('index.php?option=com_comprofiler&task=registers');
             break;
             break;
         case 'joomla':
             $link = $default;
             break;
         case 'jomsocial':
             $link = JRoute::_('index.php?option=com_community&view=register');
             break;
     }
     return $link;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:26,代码来源:easyblog.php

示例11: selectProfile

 /**
  * Shorthand for view to pass in quick as parameter to the registration page
  *
  * @author Jason Rey <jasonrey@stackideas.com>
  * @since  1.2
  * @access public
  */
 public function selectProfile()
 {
     $this->redirect(FRoute::registration(array('quick' => true)));
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:11,代码来源:view.html.php

示例12: store

 /**
  * Overrides the parent's implementation of store
  *
  * @since	1.3
  * @access	public
  * @param	string
  * @return
  */
 public function store($pk = null)
 {
     $isNew = !$this->id;
     // Save this into the table first
     parent::store($pk);
     // Add this into the mail queue
     if ($isNew) {
         $jconfig = FD::jconfig();
         $mailer = FD::mailer();
         $template = $mailer->getTemplate();
         $sender = FD::user($this->user_id);
         $params = new stdClass();
         $params->senderName = $sender->getName();
         $params->message = $this->message;
         $params->siteName = $jconfig->getValue('sitename');
         $params->manageAlerts = false;
         $params->link = FRoute::registration(array('invite' => $this->id, 'external' => true));
         $template->setSender($sender->getName(), $sender->email);
         $template->setReplyTo($sender->email);
         $template->setRecipient('', $this->email);
         $template->setTitle(JText::sprintf('COM_EASYSOCIAL_FRIENDS_INVITE_MAIL_SUBJECT', $jconfig->getValue('sitename')));
         $template->setTemplate('site/friends/invite', $params);
         $mailer->create($template);
         // Assign points to the user that created this invite
         $points = FD::points();
         $points->assign('friends.invite', 'com_easysocial', $this->user_id);
     }
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:36,代码来源:friendinvite.php

示例13: resendActivation

 /**
  * Resends activation emails to the user.
  *
  * @since	1.0
  * @access	public
  * @param	SocialUser			The user object.
  * @param	SocialTableProfile	The profile type.
  * @return	bool				True if success, false otherwise.
  * @author	Mark Lee <mark@stackideas.com>
  */
 public function resendActivation(SocialUser $user)
 {
     // Get the application data.
     $jConfig = FD::jConfig();
     $config = FD::config();
     // Push arguments to template variables so users can use these arguments
     $params = array('site' => $jConfig->getValue('sitename'), 'username' => $user->username, 'password' => $user->password_clear, 'name' => $user->getName(), 'id' => $user->id, 'avatar' => $user->getAvatar(SOCIAL_AVATAR_LARGE), 'profileLink' => $user->getPermalink(true, true), 'email' => $user->email, 'activation' => FRoute::registration(array('external' => true, 'task' => 'activate', 'controller' => 'registration', 'token' => $user->activation)), 'token' => $user->activation, 'manageAlerts' => false);
     // Get the email title.
     $title = JText::_('COM_EASYSOCIAL_REGISTRATION_ACTIVATION_REMINDER');
     // Immediately send out emails
     $mailer = FD::mailer();
     // Get the email template.
     $mailTemplate = $mailer->getTemplate();
     // Set recipient
     $mailTemplate->setRecipient($user->name, $user->email);
     // Set title
     $mailTemplate->setTitle($title);
     // Set the contents
     $mailTemplate->setTemplate('site/registration/reactivate', $params);
     // Set the priority. We need it to be sent out immediately since this is user registrations.
     $mailTemplate->setPriority(SOCIAL_MAILER_PRIORITY_IMMEDIATE);
     // Try to send out email now.
     $state = $mailer->create($mailTemplate);
     return $state;
 }
开发者ID:knigherrant,项目名称:decopatio,代码行数:35,代码来源:registration.php

示例14: 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

示例15:

							</a>
						</li>
						<?php 
        }
        ?>
					</ul>
					<?php 
    }
    ?>
				</div>
			</div>
			<?php 
}
?>

		</div>
		<div class="modal-footer">
			<a href="<?php 
echo FRoute::registration(array('controller' => 'registration', 'task' => 'selectType', 'profile_id' => $profile->id));
?>
" class="btn btn-es-primary btn-medium btn-list-profile pull-right">
				<?php 
echo JText::_('COM_EASYSOCIAL_JOIN_NOW_BUTTON');
?>
			</a>
		</div>
	</div>
</li>


开发者ID:knigherrant,项目名称:decopatio,代码行数:28,代码来源:default.profiles.php


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