if (!$s->create_organization($c)) { $t->errors[ERROR][] = 'L005 ' . $l->txt_err_user_update; show_login_page($t, $o); } unset($c); } // Kas kasutaja on olemas lokaalses tabelis? if (isset($p->uname)) { // Uni-ID puhul tullakse kasutajanimega $w->login_name = $p->uname; } if (strlen($w->login_name) < 3) { $t->errors[ERROR][] = 'L006 ' . $l->txt_err_authentication; show_login_page($t, $o); } if (!$s->get_user_id($w->login_name)) { $params[] = $u->samaccountname; $params[] = $u->displayname; $params[] = $u->hlmttufimisikukood; $params[] = $w->lang; $params[] = $u->mail; $params[] = $u->telephonenumber; $params[] = $u->mobile; $params[] = $u->private_mobile; $params[] = $s->org_id; $params[] = $u->streetaddress; $params[] = $u->roomnumber; $params[] = $u->title; $params[] = $u->memberof; $params[] = date('Y-m-d H:i:s', time()); $params[] = $u->thumbnailphoto;