示例#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');
 }
示例#2
0
 function displayLoginBox()
 {
     require_once KUNENA_PATH_LIB . '/kunena.login.php';
     $type = CKunenaLogin::getType();
     if ($type == 'login') {
         CKunenaTools::loadTemplate('/loginbox/login.php');
     } else {
         CKunenaTools::loadTemplate('/loginbox/logout.php');
     }
 }
示例#3
0
</label>
						</span>
					</div>
					<div class="klink-block">
						<span class="kprofilebox-pass">
							<?php 
    echo CKunenaLogin::getLostPasswordLink();
    ?>
						</span>
						<span class="kprofilebox-user">
							<?php 
    echo CKunenaLogin::getLostUserLink();
    ?>
						</span>
						<?php 
    $registration = CKunenaLogin::getRegisterLink();
    if ($registration) {
        ?>
						<span class="kprofilebox-register">
							<?php 
        echo $registration;
        ?>
						</span>
						<?php 
    }
    ?>
					</div>
				</form>
				<?php 
}
?>
示例#4
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();
$logout = CKunenaLogin::getlogoutFields();
$private = KunenaFactory::getPrivateMessaging();
$PMCount = $private->getUnreadCount($this->my->id);
$PMlink = $private->getInboxLink($PMCount ? JText::sprintf('COM_KUNENA_PMS_INBOX_NEW', $PMCount) : JText::_('COM_KUNENA_PMS_INBOX'));
?>
<div class="kblock kpbox">
	<div class="kcontainer" id="kprofilebox">
		<div class="kbody">
<table class="kprofilebox">
	<tbody>
		<tr class="krow1">
			<?php 
if ($avatar) {
    ?>
			<td class="kprofilebox-left">
				<?php