Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 20th, 2012  |  syntax: None  |  size: 1.70 KB  |  hits: 16  |  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. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.         <meta charset=utf-8 />
  5.         <title></title>
  6.         <!--<link rel="stylesheet" type="text/css" media="screen" href="css/master.css" />//-->
  7.         <style type="text/css">
  8.         * { font-family: sans-serif; font-weight: 400; font-size: 14px; }
  9.         body { background: #000; padding: 15px;}
  10.         img { margin: 25px auto; padding: 15px; border: 1px solid #C0C0C0; display: block; }
  11.         </style>
  12.         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
  13.         <script type="text/javascript" src="http://www.appelsiini.net/download/jquery.lazyload.mini.js"></script>
  14.         <script type="text/javascript">
  15.                 $(document).ready(function(){
  16.                         $("img").lazyload({ effect: "fadeIn", placeholder : "bg.png" });
  17.                 });
  18.         </script>      
  19. </head>
  20. <body>
  21.  
  22. <?php
  23.         $DEBUG  = (isset($_GET["debug"])) ? true : false;
  24.         $callback       = (isset($_GET["callback"])) ? $_GET["callback"] : "alert";    
  25.        
  26.         if(isset($_GET["url"])){
  27.                 $uri = parse_url($_GET["url"]);
  28.                 $domain = $uri['scheme'] . "://" . $uri['host'] . "/";
  29.                 $page = file_get_contents($_GET["url"]);
  30.                
  31.                
  32.  
  33.                 $re1='.*?';     # Non-greedy match on filler
  34.                 $re2='(?:[a-z][a-z\\.\\d_]+)\\.(?:[a-z\\d]{3})(?![\\w\\.])';    # Uninteresting: file
  35.                 $re3='.*?';     # Non-greedy match on filler
  36.                 $re4='((?:[a-z][a-z\\.\\d_]+)\\.(?:[a-z\\d]{3}))(?![\\w\\.])';  # File Name 1
  37.                
  38.                 if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $page, $matches))
  39.                 {
  40.                     $images=$matches[1];
  41.                    
  42.                         foreach ($images as $image) {
  43.                                 if( $image != "back.gif" && $image != "image2.gif" ){
  44.                                         echo "<a href=\"" . $_GET["url"] . "$image\"><img src=\"" . $_GET["url"] . "$image\" height=\"350\"></a><br/>\n";
  45.                                 }
  46.                         }
  47.                 }
  48.         }
  49. ?>
  50.  
  51. </body>
  52. </html>