Source for file msgread.php

Documentation is available at msgread.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Üzenet olvasás - msgread.php
  4.  *
  5.  * Üzenet olvasá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/msgread.php';
  28.  
  29. /**
  30.  * @ignore
  31.  */
  32. require_once System::getIncLoginDir().'includes/msgmenu.php';
  33.  
  34. if (!empty($message->messageid)) ?>
  35. <table align="center" style="width: 600px;">
  36.     <tr>
  37.         <th style="text-align: right; width: 100px; vertical-align: top;"><?php print $msgLabel?></th>
  38.         <td style="width: 500px; vertical-align: top;">
  39.             <?php if (!empty($msgUserName)) ?>
  40.             <a href="<?php print User::profileUrl($msgUserId?>"><?php print htmlspecialchars($msgUserName)?></a>
  41.             <?php else ?>
  42.             Törölt felhasználó
  43.             <?php ?>
  44.         </td>
  45.     </tr>
  46.     <tr>
  47.         <th style="text-align: right; vertical-align: top;">Tárgy:</th>
  48.         <td style="vertical-align: top;"><div style="width: 500px; overflow: hidden;"><?php print $message->subject(?></div></td>
  49.     </tr>
  50.     <tr>
  51.         <th style="text-align: right; vertical-align: top;">Üzenet:</th>
  52.         <td style="vertical-align: top;"><div style="width: 500px; overflow: hidden;">
  53.         <?php print $message->body()?>
  54.         </div></td>
  55.     </tr>
  56. </table>
  57.     <?php if(!empty($message->toidor System::$user->rank(array('admin','owner'))) ?>
  58.     <div align="center">
  59.         <?php if (!empty($msgUserName)) ?>
  60.         <a href="<?php print $url_reply ?>">Válasz</a>
  61.         <?php ?>
  62.         <a href="<?php print $url_delete ?>">Törlés</a>
  63.     </div>
  64.     <?php }
  65. else ?>
  66. <div align="center">
  67. Nincs ilyen üzenet!
  68. </div>
  69. <?php ?>

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