Esempio n. 1
0
 function display()
 {
     $this->login = CKunenaLogin::getloginFields();
     $this->logout = CKunenaLogin::getlogoutFields();
     $this->my = JFactory::getUser();
     $this->private = KunenaFactory::getPrivateMessaging();
     $this->PMCount = $this->private->getUnreadCount($this->my->id);
     $this->PMlink = $this->private->getInboxLink($this->PMCount ? JText::sprintf('MOD_KUNENALOGIN_NEW_MESSAGE', $this->PMCount) : JText::_('MOD_KUNENALOGIN_MYMESSAGES'));
     $this->params->def('greeting', 1);
     $this->type = $this->getType();
     $this->return = $this->getReturnURL();
     $this->loadCSS = $this->loadCSS('mod_kunenalogin');
     // load CSS stylesheet
     $this->user = KunenaFactory::getUser();
     require JModuleHelper::getLayoutPath('mod_kunenalogin');
 }
Esempio n. 2
0
 * @package Kunena
 *
 * @Copyright (C) 2008 - 2011 Kunena Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.kunena.org
 *
 **/
// Dont allow direct linking
defined('_JEXEC') or die;
require_once KUNENA_PATH_LIB . '/kunena.login.php';
$this->user = JFactory::getUser();
$this->config = KunenaFactory::getConfig();
$type = CKunenaLogin::getType();
$return = CKunenaLogin::getReturnURL($type);
$avatar = CKunenaLogin::getMyAvatar();
$login = CKunenaLogin::getloginFields();
?>
<div class="kblock kpbox">
	<div class="kcontainer" id="kprofilebox">
		<div class="kbody">
<table class="kprofilebox">
	<tbody>
		<tr class="krow1">
			<td valign="top" class="kprofileboxcnt">
				<div class="k_guest">
					<?php 
echo JText::_('COM_KUNENA_PROFILEBOX_WELCOME');
?>
,
					<b><?php 
echo JText::_('COM_KUNENA_PROFILEBOX_GUEST');