1. <?php
  2.  
  3. if(isset($_GET['id']))
  4. {
  5.     $id = $_GET['id'];
  6.  
  7.     include("inc/pgpshare.class.php");
  8.     $pgpshare = new PGPShare;
  9.    
  10.     if($pgpshare->VerifyId($id))
  11.     {
  12.         if($pgpshare->VerifyIp($id))
  13.         {
  14.             if($user1key = $pgpshare->GetUser1Key($id))
  15.             {
  16.                 $content = "user2-int";
  17.             }
  18.             else
  19.             {
  20.                 $emsg = "Id is invalid / incorrect";
  21.             }
  22.         }
  23.         else
  24.         {
  25.             $emsg = "You cannot share your PGP key with yourself !";
  26.         }
  27.     }
  28.     else
  29.     {
  30.         $emsg = "Id is invalid / incorrect";
  31.     }
  32. }
  33. else
  34. {
  35.     $content = "user1-int";
  36. }
  37. ?>