Ignore:
Timestamp:
Aug 15, 2013, 11:17:26 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/View/User.php

    r80 r93  
    5353  function Login()
    5454  {
    55     global $Config;
    56    
    5755    $Form = new Form($this->System, $this->LoginFormClass);
    5856    $Form->OnSubmit = '?Module=User&Action=LoginFinish';
    5957    $Output = $Form->ShowEditForm();
    6058    $Output .= '<div class="Centred">';
    61     if($Config['Web']['UserRegistrationEnabled'])
     59    if($this->Config['Web']['UserRegistrationEnabled'])
    6260      $Output .= '<a href="?Module=User&amp;Action=Register">Registrovat se</a> ';
    6361    $Output .= '<a href="?Module=User&amp;Action=PasswordRecovery">Obnova zapomenutého hesla</a></div>';
     
    8583  function RegisterSave()
    8684  {
    87     global $Config;
    88    
    89     if($Config['Web']['UserRegistrationEnabled'])
     85    if($this->Config['Web']['UserRegistrationEnabled'])
    9086    {
    9187      $Form = new Form($this->System, $this->RegisterFormClass, array());
     
    9692      if($Result <> $this->System->Translate('UserRegistrated'))
    9793      {
    98         $Form->OnSubmit = '?Module=User&amp;Action=UserRegisterSave';
     94        $Form->OnSubmit = '?Module=User&amp;Action=RegisterSave';
    9995        $Output = $Form->ShowEditForm();
    10096      }
     
    166162  function Register()
    167163  {
    168     global $Config;
    169    
    170     if($Config['Web']['UserRegistrationEnabled'])
     164    if($this->Config['Web']['UserRegistrationEnabled'])
    171165    {
    172166      $Form = new Form($this->System, $this->RegisterFormClass);
    173167      $Form->LoadValuesFromForm();
    174       $Form->OnSubmit = '?Module=User&amp;Action=UserRegisterSave';
     168      $Form->OnSubmit = '?Module=User&amp;Action=RegisterSave';
    175169      $Output = 'Vyplňte správně požadované údaje. Na zadaný email vám bude zaslán aktivační email.';
    176170      $Output .= $Form->ShowEditForm();
     
    181175  function RegisterConfirm()
    182176  {
    183     global $Config;
    184    
    185     if($Config['Web']['UserRegistrationEnabled'])
     177    if($this->Config['Web']['UserRegistrationEnabled'])
    186178    {
    187179      $Page = new PageView($this->System);
     
    192184  }
    193185}
    194 
    195 ?>
Note: See TracChangeset for help on using the changeset viewer.