Exemple #1
0
 function ipc_check_email()
 {
     global $email, $skipId;
     if ($skipId == '') {
         $skipId = -1;
     }
     $user_info = user_info_by_id(user_id());
     if ($email == config_get('null-email') && $user_info['email'] != $email && !user_access_root()) {
         print '-ERR';
     } else {
         if (user_registered_with_email($email, $skipId)) {
             print '-ERR';
         } else {
             print '+OK';
         }
     }
 }
Exemple #2
0
 function user_generate_short_info_string($id, $cacheable = true)
 {
     $info = user_info_by_id($id, $cacheable);
     if ($info['id'] == '') {
         return 'anonumoys (Гость)';
     }
     return '<a href="' . config_get('document-root') . '/login/viewuser/?id=' . $info['id'] . '&redirect=' . get_redirection() . '">' . $info['name'] . ' (<i>' . $info['login'] . '</i>)</a>';
 }