<?php
if(isset($_GET['id']))
{
$id = $_GET['id'];
include("inc/pgpshare.class.php");
$pgpshare = new PGPShare;
if($pgpshare->VerifyId($id))
{
if($pgpshare->VerifyIp($id))
{
if($user1key = $pgpshare->GetUser1Key($id))
{
$content = "user2-int";
}
else
{
$emsg = "Id is invalid / incorrect";
}
}
else
{
$emsg = "You cannot share your PGP key with yourself !";
}
}
else
{
$emsg = "Id is invalid / incorrect";
}
}
else
{
$content = "user1-int";
}
?>