diff --git a/OTCWebsite/viewratingdetail.php b/OTCWebsite/viewratingdetail.php index 1f1bc17..679e16d 100644 --- a/OTCWebsite/viewratingdetail.php +++ b/OTCWebsite/viewratingdetail.php @@ -101,6 +101,7 @@ function like($s, $e) { $lastauthed = $gpgentry['last_authed_at']; } else { $keyprint = ""; + $lastauthed = ""; } } echo '
  • GPG identity (check GPG key quality)
  • '; @@ -109,10 +110,17 @@ function like($s, $e) { 2592000){ // 30 days - echo '

    This user has not authenticated for more than ' . intval($sec_since_auth/86400) . ' days. If you are currently talking to someone who claims to be this person, you are probably talking to an impostor and scammer.

    '; - } +if ($lastauthed == ""){ //no matches from gpg db + if ($entry['ratingcount'] == 0){ // no such user + $lastauthed = time(); + } else { + $lastauthed = 1293858000; //end of 2010 + } +} +$sec_since_auth = time() - $lastauthed; +if ($sec_since_auth > 2592000){ // 30 days + echo '

    This user has not authenticated for more than ' . intval($sec_since_auth/86400) . ' days. If you are currently talking to someone who claims to be this person, you are probably talking to an impostor and scammer.

    '; +} ?>

    List of ratings [json]