plugins/SpecialUserFuncs.php
changeset 701 dd80cde96a6c
parent 688 f2a824ce5f18
child 741 a216e412c439
equal deleted inserted replaced
700:491314c44d23 701:dd80cde96a6c
   696 
   696 
   697 function page_Special_Register()
   697 function page_Special_Register()
   698 {
   698 {
   699   global $db, $session, $paths, $template, $plugins; // Common objects
   699   global $db, $session, $paths, $template, $plugins; // Common objects
   700   global $lang;
   700   global $lang;
       
   701   
       
   702   if ( $session->user_logged_in )
       
   703   {
       
   704     $paths->main_page();
       
   705   }
   701   
   706   
   702   // form field trackers
   707   // form field trackers
   703   $username = '';
   708   $username = '';
   704   $email = '';
   709   $email = '';
   705   $realname = '';
   710   $realname = '';
  1770     </script>
  1775     </script>
  1771     <?php
  1776     <?php
  1772     $template->footer();
  1777     $template->footer();
  1773     return true;
  1778     return true;
  1774   }
  1779   }
       
  1780   if ( $session->user_logged_in )
       
  1781   {
       
  1782     $paths->main_page();
       
  1783   }
       
  1784   
  1775   if(isset($_POST['do_reset']))
  1785   if(isset($_POST['do_reset']))
  1776   {
  1786   {
  1777     if($session->mail_password_reset($_POST['username']))
  1787     if($session->mail_password_reset($_POST['username']))
  1778     {
  1788     {
  1779       echo '<p>' . $lang->get('userfuncs_passreset_stage1_success') . '</p>';
  1789       echo '<p>' . $lang->get('userfuncs_passreset_stage1_success') . '</p>';