Source for file register.php

Documentation is available at register.php

  1. <?php
  2. /**
  3.  * R.E. Login 2.0 - Regisztráció - register.php
  4.  *
  5.  * Regisztráció modul 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/register.php'?>
  28. <div align="center">
  29.     <?php print $msg?>
  30. </div>
  31. <div align="center">
  32. <?php if (System::$logged?>
  33.     Regisztrációhoz előbb ki kell jelentkezned. 
  34. <?php else if (!$REG_BLOCKED and (!$INVITATION_MODE or $validinvite)) ?>
  35. <form action="" method="post">
  36.     <table border="0" align="center">
  37.         <tr>
  38.             <td>Név:</td>
  39.             <td><input type="text" name="register[username]" value="<?php print $data['username']?>" /></td>
  40.         </tr>
  41.         <tr>
  42.             <td>Jelszó:</td>
  43.             <td><input type="password" name="register[userpass]" value="<?php print $data['userpass'?>" /></td>
  44.         </tr>
  45.         <tr>
  46.             <td>Jelszó újra:</td>
  47.             <td><input type="password" name="register[reuserpass]" value="<?php print $data['reuserpass'?>" /></td>
  48.         </tr>
  49.         <tr>
  50.             <td>E-mail:</td>
  51.             <td><input type="text" name="register[useremail]" value="<?php print $data['useremail'?>" /></td>
  52.         </tr>
  53.         <tr>
  54.             <td>E-mail újra:</td>
  55.             <td><input type="text" name="register[reuseremail]" value="<?php print $data['reuseremail'?>" /></td>
  56.         </tr>
  57.         <tr>
  58.             <td>E-mail kezelés:</td>
  59.             <td>
  60.                 <input type="radio" name="register[public_mail]" <?php 
  61.                 print $data['public_mail']!='yes' 'checked="checked"' '' ?> value="no" /> Rejtett
  62.                 <input type="radio" name="register[public_mail]" <?php
  63.                 print $data['public_mail']=='yes' 'checked="checked"' '' ?> value="yes" /> Nyilvános
  64.             </td>
  65.         </tr>
  66.         <tr>
  67.             <td>Nemed:</td>
  68.             <td>
  69.                 <input type="radio" name="register[sex]" <?php 
  70.                 print ($data['sex']=='f''checked="checked"' '' ?> value="f" /> Nő
  71.                 <input type="radio" name="register[sex]"<?php
  72.                 print ($data['sex']=='m''checked="checked"' '' ?> value="m" /> Férfi
  73.             </td>
  74.         </tr>
  75.         <tr>
  76.             <td>Születési idő:</td>
  77.             <td>
  78.                 <select name="register[bdyear]">
  79.                     <option value="0">Év</option>
  80.                     <?php foreach(range(1900,date('Y')) as $year?>
  81.                     <option value="<?php print $year ?><?php
  82.                     print $data['bdyear'== $year 'selected ="selected" ' ''
  83.                     ?>><?php print $year ?></option>
  84.                     <?php ?>
  85.                 </select>
  86.                     <select name="register[bdmonth]">
  87.                     <option value="0">Hónap</option>
  88.                     <?php foreach(range(1,12as $month?>
  89.                     <option value="<?php print $month ?><?php
  90.                     print $data['bdmonth'== $month 'selected ="selected" ' ''
  91.                     ?>><?php print $month ?></option>
  92.                     <?php ?>
  93.                 </select>
  94.                 <select name="register[bdday]">
  95.                     <option value="0">Nap</option>
  96.                     <?php foreach(range(1,31as $day?>
  97.                     <option value="<?php print $day ?><?php
  98.                     print $data['bdday'== $day 'selected ="selected" ' ''
  99.                     ?>><?php print $day ?></option>
  100.                     <?php ?>
  101.                 </select>
  102.             </td>
  103.         </tr>
  104.         <tr>
  105.             <td colspan="2" align="center">
  106.                 <img src="<?php print
  107.                         System::getSitedir().(substr(System::getIncLoginDir(),strlen(System::getIncSiteDir()))).
  108.                         'includes/captcha.php' ?>" alt="captcha" />
  109.             </td>
  110.         </tr>
  111.         <tr>
  112.             <td colspan="2" align="center">
  113.                 <input type="text" name="code" id="relogin-captcha-input" /><br />
  114.                 Írd be a képen látható kódot, vagy a művelet ereményét. 
  115.             </td>
  116.         </tr>
  117.         <tr>
  118.             <td colspan="2" align="center">
  119.                 <input type="submit" value="Regisztrálok" />
  120.             </td>
  121.         </tr>
  122.     </table>
  123. </form>
  124. <?php else if(!$mailact and $REG_BLOCKED?>
  125. A regisztráció jelenleg szünetel. Köszönjük a megértést.
  126. <?php else if (!$mailact and $INVITATION_MODE?>
  127. A regisztráció jelenleg csak meghívóval üzemel.
  128. <?php ?>
  129. </div>

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