コード例 #1
0
ファイル: class.kunena.php プロジェクト: vuchannguyen/hoctap
 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');
     }
 }
コード例 #2
0
ファイル: login.php プロジェクト: vuchannguyen/hoctap
/**
 * @version $Id$
 * Kunena Component
 * @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');
?>