Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 6.58 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. $tag = '<img alt="" src="data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBhQSERUUEhMVFBUVGSIXGBUYGRsaGhwWHh0XHhgYIB4YHSYhHCQjISAZIDEgJCcpLS0uGB4xNjAqNSgtLDUBCQoKDgwOGg8PGjEkHyIpMjQ0NS4sLy8pLDA0NTI0NTQ0Ki8sLykxLCw1LCwsLCwsLywsLCwsKSw0KSktLC0pLP/AABEIAIAAbQMBIgACEQEDEQH/xAAcAAACAwEBAQEAAAAAAAAAAAAFBgMEBwACAQj/xABJEAACAgAEAwUFAwYLBgcAAAABAgMRAAQSIQUxUQYTIkFhByMycYEUQpEXUmJyk6EkM1NUorGzwdHT8Ag0gpSjshg1Q0RzdJL/xAAaAQACAwEBAAAAAAAAAAAAAAADBAABAgUG/8QALhEAAQQABAMIAAcAAAAAAAAAAQACAxEEEiExQVHwEyIyYXGBkaEFFEKxwdHx/9oADAMBAAIRAxEAPwDXnnIkVK2Kk+u1YVe0vb45WRo+68aN94mmRlJR1I6Ggyn1omjR3j6OYn0xrMNBBjYnSfhNsFBLAUfCoJN0BuSMX4oxaRiY442/k4wAq1vVC9JHM72N788EjaCdV0cFh2yu7yfsh7ULikeSJQyhQiKT4mIbVZN0oIX18QG5w3cG4r9oTWFYLdKxFB6+JlB3C3sCdzvtjCsvCS1bAE87rYAbk+QHO/Ln5Y23stkhFAF7uSNuTCR9ZJAABDDwlaqtNAdAbxcjQNkTHYeOEDKNSi+Ox2BzcdTcRh5SDR7tSRf62y/vwBz2t3K5zWOf4QiOIM/mDHFI4FlFLAHlYBOKsfHF1BZEkhLGlLil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