query('SELECT * FROM pastes WHERE uid="'.$uid.'"'); if($result = $stmt->fetch(PDO::FETCH_ASSOC)){ $conn = null; if($result["exposure"]==2 && isset($_COOKIE["pp_sid"]) && isset($_COOKIE["pp_skey"]) && $result["owner"]!=GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"])){ echo "

This paste is private

"; die(); } echo "

".htmlspecialchars($result["title"], ENT_QUOTES, 'UTF-8')."

"; echo "
";
		echo htmlspecialchars($result["text"], ENT_QUOTES, 'UTF-8')."
"; echo ""; } else echo "Paste does not exist"; $conn = null; } else echo "Error: id not set"; ?>