<?php
/**
* @version $Id: myprofile_summary.php 792 2009-05-25 11:56:22Z mahagr $
* Kunena Component
* @package Kunena
*
* @Copyright (C) 2008 - 2009 Kunena Team All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.com
*
* Based on FireBoard Component
* @Copyright (C) 2006 - 2007 Best Of Joomla All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.bestofjoomla.com
*
* Based on Joomlaboard Component
* @copyright (C) 2000 - 2004 TSMF / Jan de Graaff / All Rights Reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author TSMF & Jan de Graaff
**/
defined( '_JEXEC' ) or die('Restricted access');
$fbConfig =& CKunenaConfig::getInstance();

$signature = $userinfo->signature;

$usr_signature = '';
if ($signature)
{
	$smileyList = smile::getEmoticons(0);
	$signature = stripslashes(smile::smileReplace($signature, 0, $fbConfig->disemoticons, $smileyList));
	$signature = str_replace("\n", "<br />", $signature);
	$signature = str_replace("<P>&nbsp;</P><br />", "", $signature);
	$signature = str_replace("</P><br />", "</P>", $signature);
	$signature = str_replace("<P><br />", "<P>", $signature);
	//wordwrap:
	$signature = smile::htmlwrap($signature, $fbConfig->wrap);
	$signature = nl2br($signature);
	//restore the \n (were replaced with _CTRL_) occurences inside code tags, but only after we have striplslashes; otherwise they will be stripped again
	//$signature = stripslashes($signature);
	//$signature = str_replace("_CRLF_", "\\n", $signature);
	$usr_signature = $signature;
}
?>
<div class="<?php echo $boardclass; ?>_bt_cvr1">
<div class="<?php echo $boardclass; ?>_bt_cvr2">
<div class="<?php echo $boardclass; ?>_bt_cvr3">
<div class="<?php echo $boardclass; ?>_bt_cvr4">
<div class="<?php echo $boardclass; ?>_bt_cvr5">
<table class = "fb_blocktable" id = "fb_forumprofile_sub" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
  <thead>
    <tr>
      <th colspan = "2"> <div class = "fb_title_cover"> <span class = "fb_title"><?php echo _KUNENA_MYPROFILE_SUMMARY; ?></span> </div></th>
    </tr>
  </thead>
  <tbody  class = "fb_myprofile_general">
    <tr class="fb_sth">
      <th colspan="2" > <center>
          <?php echo _KUNENA_MYPROFILE_PERSONAL_INFO; ?>
        </center></th>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_NAME; ?></b> </td>
      <td><?php echo $juserinfo->name; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_USERNAME; ?></b> </td>
      <td><?php echo $juserinfo->username; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_EMAIL; ?></b> </td>
      <td><?php echo $juserinfo->email; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_USERTYPE; ?></b> </td>
      <td><?php echo $juserinfo->usertype; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_REGISTERDATE; ?></b> </td>
      <td><?php echo $juserinfo->registerDate; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_LASTVISITDATE; ?></b> </td>
      <td><?php echo $juserinfo->lastvisitDate; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_POSTS; ?></b> </td>
      <td><?php echo $numPosts; ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_PROFILEVIEW; ?></b> </td>
      <td><?php echo $userinfo->uhits; ?></td>
    </tr>
    <tr class="fb_sth">
      <th colspan="2" > <center>
          <?php echo _KUNENA_MYPROFILE_ADDITIONAL_INFO; ?>
        </center></th>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_PERSONALTEXT; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->personalText)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_GENDER; ?></b> </td>
      <td><?php if( $userinfo->gender == 1 ) { echo _KUNENA_MYPROFILE_MALE; } else if ( $userinfo->gender == 2 ) { echo _KUNENA_MYPROFILE_FEMALE; }?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_BIRTHDATE; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->birthdate)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_LOCATION; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->location)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_ICQ; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->ICQ)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_AIM; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->AIM)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_YIM; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->YIM)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_MSN; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->MSN)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_SKYPE; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->SKYPE)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_GTALK; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->GTALK)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_WEBSITE_NAME; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->websitename)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_WEBSITE_URL; ?></b> </td>
      <td><?php echo kunena_htmlspecialchars(stripslashes($userinfo->websiteurl)); ?></td>
    </tr>
    <tr>
      <td><b><?php echo _KUNENA_MYPROFILE_SIGNATURE; ?></b> </td>
      <td><?php echo $usr_signature; ?></td>
    </tr>
  </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
