Source for file profile.php

Documentation is available at profile.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Profil nézet - profile.php
  4.  *
  5.  * Profil megtekintés sablonja. <br />
  6.  * <br />
  7.  * <b>Dátum:</b> 2010.04.02.
  8.  *
  9.  * <b>Szerző weboldala:</b> {@link http://rimelek.hu/}<br />
  10.  * <b>Login weblapja:</b> {@link http://rimelek.hu/meghivos-loginrendszer-r-e-login-v2-0 R.E. Login v2.0}
  11.  *
  12.  * @author Takács Ákos (Rimelek), programmer [at] rimelek [dot] hu
  13.  * @copyright Copyright (C) 2010, Takács Ákos
  14.  * @license http://www.gnu.org/licenses/gpl.html
  15.  * @package RELogin
  16.  * @version 2.0
  17.  */
  18.  
  19. if(!class_exists('System'))
  20. {
  21.     exit('Ez a fajl nem erheto el kozvetlenul. Reszletek a readme.txt-ben.');
  22. }
  23.  
  24. /**
  25.  * @ignore
  26.  */
  27. require_once System::getIncLoginDir().'includes/profile.php';
  28.  
  29. if (empty($user->T_users_userid)) ?>
  30.  
  31. <div align="center">
  32.     Nem létezik ilyen felhasználó
  33. </div>
  34.  
  35. <?php else ?>
  36. <div align="center" >
  37. <?php print "<b>".$user->username.'</b> '($user->isOnline("online" "offline"' (' .  $user->rankName().')'?>
  38.     <br />
  39.     <img src="<?php print $user->avatar(120)?>" alt="gravatar" />
  40.     <br /><a href="<?php print $sendMsgUrl ?>"><img style="border: 0;" src="<?php print System::getLogindir(?>images/send.png" alt="send" /></a>
  41.     <?php if ($user == System::$user or System::$user->rank(array('admin','owner'))) ?>
  42.     <a href="<?php print $chProfUrl?>"><img style="border: 0;" src="<?php print System::getLogindir(?>images/my-account.png" title="Módosítás" alt="Profil szerkesztés" /></a>
  43.     <?php ?>
  44. </div>
  45.  
  46. <table border="0" align="center">
  47. <?php foreach ($titles as $var => $title{
  48.     $value trim($user[$var]);
  49.     if (empty($value)) continue;
  50.     
  51.     if ($var == 'sex')
  52.     {
  53.         $value ($value == 'f''Nő' 'Férfi';
  54.     }
  55.     else if ($var == 'T_users_useremail' and !$user->public_mail)
  56.     {
  57.         if (System::$user->rank != and $user != System::$usercontinue;
  58.         $value "Rejtett: ".$user->T_users_useremail;
  59.     
  60.     else if($var == 'onlinetime')
  61.     {
  62.         $value User::getOnlineTime($user->onlinetime,'{day} nap, {hour} óra, {min} perc és {sec} mp');
  63.         
  64.     }
  65.  
  66.     $value nl2br(htmlspecialchars($value));
  67.     if ($var == 'website')
  68.     {
  69.         $value trim($value);
  70.         if (!empty($value))
  71.         {
  72.             $value "<a href='".$value."'>Link</a>";
  73.         }
  74.     }
  75.     ?>
  76.     <tr>
  77.         <td valign="top"><?php print $title ?></td>
  78.         <td valign="top"><?php print $value?></td>
  79.     </tr>
  80. <?php ?>
  81. </table>
  82. <?php ?>

Documentation generated on Sun, 04 Apr 2010 22:43:48 +0200 by phpDocumentor 1.4.1