예제 #1
0
 public function getRowHtml()
 {
     $jxConfig = new JXConfig();
     $rowData = $this;
     $allowInvite = $jxConfig->allowUsersRegister();
     $pendingStat = self::PENDING;
     ob_start();
     include JPATH_ROOT . DS . 'components' . DS . 'com_account' . DS . 'views' . DS . 'invite' . DS . 'tmpl' . DS . 'default.invitation.php';
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
예제 #2
0
 public function modMemberInvite()
 {
     $html = '';
     $configHelper = new JXConfig();
     if ($configHelper->allowInvite() && $configHelper->allowUsersRegister()) {
         ob_start();
         require_once JPATH_ROOT . DS . 'components' . DS . 'com_account' . DS . 'templates' . DS . 'modInviteGuest.php';
         $html = ob_get_contents();
         ob_end_clean();
     }
     return $html;
 }
예제 #3
0
		</a> &#183;

		<a href="<?php 
    echo JRoute::_('index.php?option=com_users&view=remind');
    ?>
">
			<?php 
    echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME');
    ?>
		</a>&nbsp;

		<?php 
    jimport('joomla.utitlies.xconfig');
    $jxConfig = new JXConfig();
    $usersConfig = JComponentHelper::getParams('com_users');
    if ($jxConfig->allowUsersRegister() && $usersConfig->get('allowUserRegistration')) {
        ?>
			&#183;&nbsp;<a href="<?php 
        echo JRoute::_('index.php?option=com_users&view=registration');
        ?>
">
				<?php 
        echo JText::_('MOD_LOGIN_REGISTER');
        ?>
			</a>
		<?php 
    }
    ?>
		</small>
	</span>
예제 #4
0
<?php

/**
 * @package		Offiria
 * @subpackage	com_register 
 * @copyright 	Copyright (C) 2011 - 2013 Slashes & Dots Sdn Bhd. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * @author      Offiria Team
 */
// No direct access.
defined('_JEXEC') or die;
require_once JPATH_ROOT . DS . 'components' . DS . 'com_register' . DS . 'factory.php';
JTable::addIncludePath(JPATH_ROOT . DS . 'components' . DS . 'com_account' . DS . 'tables');
jimport('joomla.utilities.xconfig');
$jxConfig = new JXConfig();
if (!$jxConfig->allowUsersRegister()) {
    $mainframe = JFactory::getApplication();
    $mainframe->redirect(JURI::base(), JText::_('COM_REGISTER_USER_LIMIT_REACHED'), 'error');
}
class RegisterControllerRegister extends JController
{
    public function display($cachable = false, $urlparams = false)
    {
        // Only admin can use this function to invite guests
        $jxConfig = new JXConfig();
        $mainframe = JFactory::getApplication();
        $my = JXFactory::getUser();
        $email = JRequest::getVar('email', '');
        $token = JRequest::getString('token', '');
        $code = JRequest::getString('code', '');
        $userInviteTable = JTable::getInstance('usersInvite', 'AccountTable');