
index.php
By:
cuonic on
Apr 8th, 2012 | syntax:
PHP | size: 0.52 KB | hits: 36 | expires: Never
<?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";
}
?>