Esempio n. 1
0
 // Inicializacia
 $values = $button->getForm()->getValues();
 //Nacitanie hodnot formulara
 $hasser = $this->user->getAuthenticator();
 //Ziskanie objektu pre vytvaranie hash hesla a iných
 $hasser->PasswordHash(8, FALSE);
 //Nastavenie
 //Uloz info do tabulky users
Esempio n. 2
0
 //Nacitanie hodnot formulara
 $hasser = $this->user->getAuthenticator();
 //Ziskanie objektu pre vytvaranie hash hesla a iných
 $hasser->PasswordHash(8, FALSE);
 //Nastavenie
 //Uloz info do tabulky users
 $uloz_users = $this->users->uloz(['username' => $values->username, 'password' => $hasser->HashPassword($values->heslo), 'email' => $values->email, 'activated' => 1]);
 if (!empty($uloz_users['id'])) {
     //Ulozenie v poriadku
     $uloz_user_profiles = $this->user_profiles->uloz(['id_users' => $uloz_users['id'], 'meno' => $values->meno, 'priezvisko' => $values->priezvisko, 'id_registracia' => $values->id_registracia, 'pohl' => isset($values->pohl) ? $values->pohl : 'Z', 'modified' => StrFTime("%Y-%m-%d %H:%M:%S", Time()), 'created' => StrFTime("%Y-%m-%d %H:%M:%S", Time())]);
 }
 if (!empty($uloz_user_profiles['id'])) {