Source for file profile.php

Documentation is available at profile.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Profil - includes/profile.php
  4.  *
  5.  * Profil megtekintése. Saját, vagy kiválasztott user. <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. $titles array(
  25.     'regtime'                => 'Regisztrált:',
  26.     'logintime'                => 'Belépett:',
  27.     'refreshtime'            => 'Frissített:',
  28.     'onlinetime'            => 'Online ideje:',
  29.     'T_users_useremail'        => 'E-mail címe:',
  30.     'lastname'                => 'Vezetéknév:',
  31.     'firstname'                => 'Keresztnév:',
  32.     'birthdate'                => 'Született:',
  33.     'sex'                    => 'Neme:',
  34.     'country'                => 'Ország:',
  35.     'city'                    => 'Város:',
  36.     'website'                => 'Weboldala:',
  37.     'msn'                    => 'MSN:',
  38.     'skype'                    => 'Skype:',
  39.     'other'                    => 'Egyéb:'
  40. );
  41.  
  42. if (!System::$logged and !isset($_GET['uid']))
  43. {
  44.     System::redirect(Config::FILE_HOME);
  45. }
  46.  
  47. if (System::$logged and (!isset($_GET['uid']or System::$user->T_users_userid == (int)$_GET['uid']))
  48. {
  49.     $user System::$user;
  50. }
  51. else
  52. {
  53.     $uid = isset($_GET['uid']? (int)$_GET['uid'0;
  54.     $user new User($uid);
  55. }
  56.  
  57. $sendMsgUrl Url::set(array(
  58.     'msgact' => 'write',
  59.     'msgto' => $user->T_users_userid
  60. ),Config::FILE_MESSAGES_WRITE);
  61.  
  62. $chProfUrl Url::set(array(
  63.     'uid' => $user->T_users_userid
  64. )Config::FILE_CHANGE_PROFILE'&amp;');
  65. ?>

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