Changeset 601


Ignore:
Timestamp:
Nov 25, 2013, 10:19:37 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Missing config item Advertisement.
  • Fixed: User registration was not working after installation.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/User/Registration.php

    r578 r601  
    7474        function Show()
    7575        {
    76                 global $User, $Config;
     76                global $Config;
    7777       
    7878                $Output = '';
     
    105105                                                        {
    106106                                                                if($Team == 0) $Team = 'NULL';
    107                                                                 $User->Register($UserName, $Pass, $Email, $Language, $Team, $PreferredVersion);
     107                                                                $this->System->User->Register($UserName, $Pass, $Email, $Language, $Team, $PreferredVersion);
    108108                                                                $Output .= ShowMessage('Registrace proběhla úspěšně.');
    109109                                                                $Output .= 'Přečtěte si pozorně <a href="'.$this->System->Link('/info.php').'">pokyny pro překladání</a> a můžete pak hned začít překládat.';
    110                                                                 $User->Login($UserName, $Pass);
     110                                                                $this->System->User->Login($UserName, $Pass);
    111111                                                                $this->System->ModuleManager->Modules['Log']->WriteLog('Uživatel se zaregistroval: '.$UserName, LOG_TYPE_USER);
    112112                                                                $ShowForm = false;
  • trunk/admin/UpdateTrace.php

    r600 r601  
    1616  KEY `ReleaseDate` (`ReleaseDate`),
    1717  KEY `Imported` (`Imported`)
    18 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=88 ;
     18) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    1919
    2020-- --------------------------------------------------------
     
    3232  PRIMARY KEY (`ID`),
    3333  KEY `user` (`User`)
    34 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=11 ;
     34) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
    3535
    3636--
     
    5050  `Revision` int(11) NOT NULL,
    5151  PRIMARY KEY (`Id`)
    52 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
     52) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    5353
    5454-- --------------------------------------------------------
     
    6969  KEY `Entry` (`Entry`),
    7070  KEY `User` (`User`)
    71 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=552 ;
     71) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    7272
    7373--
     
    100100  KEY `ClientVersion` (`ClientVersion`),
    101101  KEY `OutputType` (`OutputType`)
    102 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=237 ;
     102) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    103103
    104104--
     
    125125  KEY `Export` (`Export`),
    126126  KEY `Group` (`Group`)
    127 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4043 ;
     127) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    128128
    129129--
     
    150150  KEY `Export` (`Export`),
    151151  KEY `Sequence` (`Sequence`)
    152 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=213 ;
     152) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    153153
    154154--
     
    170170  `Name` varchar(255) NOT NULL,
    171171  PRIMARY KEY (`Id`)
    172 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
     172) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    173173
    174174-- --------------------------------------------------------
     
    185185  PRIMARY KEY (`Id`),
    186186  KEY `Export` (`Export`)
    187 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=36 ;
     187) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    188188
    189189--
     
    208208  KEY `User` (`User`),
    209209  KEY `Sequence` (`Sequence`)
    210 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=36309 ;
     210) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    211211
    212212--
     
    231231  KEY `ExportType` (`ExportType`),
    232232  KEY `ClientVersion` (`ClientVersion`)
    233 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=82 ;
     233) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    234234
    235235--
     
    264264  `LastVersion` int(11) NOT NULL,
    265265  PRIMARY KEY (`Id`)
    266 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=37 ;
     266) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
    267267
    268268-- --------------------------------------------------------
     
    285285  KEY `Visible` (`Visible`),
    286286  KEY `Sequence` (`Sequence`)
    287 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=94 ;
     287) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
    288288
    289289--
     
    308308  KEY `ClientVersion` (`ClientVersion`),
    309309  KEY `GroupItem` (`GroupItem`)
    310 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=160 ;
     310) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    311311
    312312--
     
    330330  PRIMARY KEY (`Id`),
    331331  KEY `Enabled` (`Enabled`)
    332 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=3 ;
     332) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci AUTO_INCREMENT=1 ;
    333333
    334334-- --------------------------------------------------------
     
    349349  KEY `type` (`Type`),
    350350  KEY `date` (`Date`)
    351 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=4151 ;
     351) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    352352
    353353--
     
    371371  `Description` varchar(255) NOT NULL,
    372372  PRIMARY KEY (`Id`)
    373 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;
     373) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    374374
    375375-- --------------------------------------------------------
     
    387387  KEY `Time` (`Time`),
    388388  KEY `User` (`User`)
    389 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=51 ;
     389) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    390390
    391391--
     
    418418  KEY `Hits` (`Hits`),
    419419  KEY `DateFirst` (`DateFirst`)
    420 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=768 ;
     420) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    421421
    422422--
     
    461461  KEY `date` (`Date`),
    462462  KEY `User` (`User`)
    463 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1659 ;
     463) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    464464
    465465--
     
    485485  KEY `Leader` (`Leader`),
    486486  KEY `TimeCreate` (`TimeCreate`)
    487 ) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=58 ;
     487) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
    488488
    489489--
  • trunk/admin/install.php

    r592 r601  
    120120    'WebCounter' => '',
    121121    'Timezone' => 'Europe/Prague',
     122    'Advertisement' => '',
    122123  ),
    123124  'ForbiddedUserNames' => array('addon', 'admin', 'administrator'),
  • trunk/includes/Version.php

    r600 r601  
    66// and system will need database update.
    77
    8 $Revision = 600; // Subversion revision
     8$Revision = 601; // Subversion revision
    99$DatabaseRevision = 600; // Database structure revision
    1010$ReleaseTime = '2013-11-25';
Note: See TracChangeset for help on using the changeset viewer.