Revize 184
Přidáno uživatelem Michal Kliment před více než 15 roky(ů)
freenetis/trunk/kohana/application/controllers/users.php | ||
---|---|---|
$form->password('confirm_password')->label(url_lang::lang('texts.confirm password').':')->rules('required|length[3,50]')->matches($form->password);
|
||
$form->group('')->label(url_lang::lang('texts.Contact informations'));
|
||
$form->input('phone')->label(url_lang::lang('texts.phone').':')->rules('required|length[9,40]')->callback(array($this, 'valid_phone'));
|
||
$form->input('email')->label(url_lang::lang('texts.email').':')->rules('required|length[3,50]|valid_email')->callback(array($this, 'valid_email'));
|
||
$form->input('email')->label(url_lang::lang('texts.email').':')->rules('length[3,50]|valid_email')->callback(array($this, 'valid_email'));
|
||
$form->group('')->label(url_lang::lang('texts.Completive informations'));
|
||
$form->date('birthday')->label(url_lang::lang('texts.birthday').':')->years(date('Y')-100, date('Y'))->rules('required');
|
||
if ($this->gacl_class->acl_check('freenetis', 'new_own', 'all', $_SESSION['username'],get_class($this),'add_comment')) $form->textarea('comment')->label(url_lang::lang('texts.Comment').':')->rules('length[0,250]');
|
freenetis/trunk/kohana/application/libraries/MY_Controller.php | ||
---|---|---|
url::redirect(url_lang::base().'login');
|
||
die();
|
||
}
|
||
$model = new Setting_Model;
|
||
//$model = new Setting_Model;
|
||
|
||
/**
|
||
* @todo: after removing all direct calls made through $gacl_class,
|
Také k dispozici: Unified diff
Menší úpravy - při přidávání nového uživatele již není povinný e-mail.