Revize 7247a0d5
Přidáno uživatelem Ondřej Fibich před více než 6 roky(ů)
application/controllers/members.php | ||
---|---|---|
->add_button('speed_classes')
|
||
->style('width:200px');
|
||
|
||
if (Settings::get('user_birthday_required'))
|
||
if (!Settings::get('users_birthday_empty_enabled'))
|
||
{
|
||
$form->date('birthday')
|
||
->label('Birthday')
|
application/controllers/registration.php | ||
---|---|---|
->label('Post title')
|
||
->rules('length[3,30]');
|
||
|
||
if (Settings::get('user_birthday_required'))
|
||
if (!Settings::get('users_birthday_empty_enabled'))
|
||
{
|
||
$form->date('birthday')
|
||
->label('Birthday')
|
application/controllers/settings.php | ||
---|---|---|
->label('Enable multiple users to have assigned same e-mail contact')
|
||
->checked(Settings::get('user_email_duplicities_enabled'));
|
||
|
||
$this->form->checkbox('user_birthday_required')
|
||
->label('Is user birthday a mandatory information?')
|
||
->checked(Settings::get('user_birthday_required'));
|
||
$this->form->checkbox('users_birthday_empty_enabled')
|
||
->label('Users birthday can be empty')
|
||
->checked(!Settings::get('users_birthday_empty_enabled'));
|
||
|
||
$this->form->group('Security');
|
||
|
application/controllers/users.php | ||
---|---|---|
->rules('required')
|
||
->value(strtotime($user->birthday));
|
||
|
||
if (Settings::get('user_birthday_required'))
|
||
if (!Settings::get('users_birthday_empty_enabled'))
|
||
{
|
||
$form->date('birthday')
|
||
->label('Birthday')
|
||
... | ... | |
|
||
$form->group('Additional information');
|
||
|
||
if (Settings::get('user_birthday_required'))
|
||
if (!Settings::get('users_birthday_empty_enabled'))
|
||
{
|
||
$form->date('birthday')
|
||
->label('Birthday')
|
application/i18n/cs_CZ/texts.php | ||
---|---|---|
'is not in' => 'není v',
|
||
'is unreachable' => 'je nedostupný',
|
||
'is unreachable since' => 'je nedostupný od',
|
||
'is user birthday a mandatory information?' => 'Je narození uživatele povinný údaj?',
|
||
'users birthday can be empty' => 'Datum narození uživatele může být prázdný',
|
||
'issued' => 'Vydaná',
|
||
'it can means that username/password/host are bad or host is unavailable' => 'To může znamenat, že uživatelské jméno/heslo/hostitel je špatné nebo je hostitel nedostupný.',
|
||
'it is not possible activate e-mail notification for this message' => 'Není možné aktivovat e-mail upozornění pro tuto zprávu.',
|
application/libraries/Settings.php | ||
---|---|---|
'user_phone_duplicities_enabled' => FALSE,
|
||
|
||
// user birthday
|
||
'user_birthday_required' => TRUE,
|
||
'users_birthday_empty_enabled' => FALSE,
|
||
|
||
// username regex #360
|
||
'username_regex' => '/^[a-z][a-z0-9_]{4,}$/',
|
Také k dispozici: Unified diff
Changes changes #1092 to be compatible with #957 in order to allow easy future upgrade to 1.2.