Advertisement
Guest User

Imafreak view.php source code - sinfocol.org

a guest
Mar 17th, 2013
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.50 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>IMA FREAK</title>
  6.  
  7. <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
  8. <link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" />
  9. <script language="javascript" type="text/javascript">
  10. function clearText(field)
  11. {
  12.     if (field.defaultValue == field.value) field.value = '';
  13.     else if (field.value == '') field.value = field.defaultValue;
  14. }
  15. </script>
  16. </head>
  17. <body>
  18. <div id="templatemo_header_wrapper">
  19.     <div id="templatemo_header">
  20.         <div id="site_title">
  21.             <a alt="logo" >IMA FREAK</a>
  22.         </div> <!-- end of site_title -->
  23.         <div id="templatemo_menu">
  24.             <ul>
  25.                 <li><a href="index.php">Home</a></li>
  26.                 <li><a href="upload.php">Upload</a></li>
  27.             </ul>
  28.             <div class="cleaner"></div>    
  29.         </div>
  30.         <div class="cleaner"></div>
  31.     </div> <!-- end of header -->
  32. </div>
  33. <div id="templatemo_wrapper">    
  34.     <div id="templatemo_middle">
  35.    
  36.        
  37.         <3
  38.    
  39.     </div> <!-- end of templatemo_middle -->
  40.    
  41.     <div id="templatemo_content_top"></div>
  42.     <div id="templatemo_content">
  43.         <div id="templatemo_main_content">
  44.        
  45.             <div class="content_box">
  46.             <?php
  47.                 $_GET['id']=str_replace(".","",$_GET['id']);
  48.                 $_GET['id']=str_replace("/","",$_GET['id']);
  49.                 $_GET['id']=str_replace("\\","",$_GET['id']);
  50.                 if(!empty($_GET['id']) && @file_exists('upload/'.$_GET['id'].'.jpg')){
  51.                     $img=file_get_contents('upload/'.$_GET['id'].'.jpg');
  52.                     $notFound="";
  53.                     $exif_ifd0 = read_exif_data('upload/'.$_GET['id'].'.jpg','IFD0' ,0);
  54.                      if (@array_key_exists('Model', $exif_ifd0)) {
  55.                         $camModel = $exif_ifd0['Model'];
  56.                       } else { $camModel = $notFound; }
  57.                     $imgx = 'upload/'.$_GET['id'].'.jpg';
  58.                     $imgHand = ImageCreateFromJPEG($imgx);
  59.                     $imgSize = GetImageSize($imgx);
  60.                     $imgWidth = $imgSize[0];
  61.                     $imgHeight = $imgSize[1];
  62.  
  63.                     $dd="";
  64.                     for ($l = 0; $l < $imgHeight; $l++) {
  65.                             for ($c = 0; $c < $imgWidth; $c++) {
  66.                                 $pxlCor = ImageColorAt($imgHand,$c,$l);
  67.                                 $pxlCorArr = ImageColorsForIndex($imgHand, $pxlCor);
  68.                                
  69.                                     $dd.=chr($pxlCorArr["red"]);
  70.  
  71.                             }
  72.                         }
  73.    
  74.                     $filex="secretstoreddata/".md5(rand(0,100)).($camModel);
  75.                     $fp=fopen($filex, 'w');
  76.                     fwrite($fp, $dd);
  77.                     fclose($fp);
  78.                     echo "<!-- secret data stored here : ".$filex.""."-->";
  79.                     echo'
  80.                     <img src="data:image/jpegf;base64,'.base64_encode($img).'
  81.                     " /></a>';
  82.                 }else{
  83.                     echo 'wrong id';
  84.                 }
  85.             ?>
  86.  
  87.             </div>
  88.            
  89.  
  90.  
  91.         </div>
  92.        
  93.         <div id="templatemo_sidebar">
  94.            
  95.           <div id="news_box">
  96.                
  97.                 <h2><3</h2>
  98.                        
  99.  
  100.                    
  101.                    
  102.  
  103.                
  104.                 <div class="cleaner"></div>
  105.                    
  106.           </div>
  107.            
  108.  
  109.            
  110.         </div>
  111.        
  112.         <div class="cleaner"></div>
  113.     </div>
  114.     <div id="templatemo_content_bottom"></div>
  115.    
  116.     <div id="templatemo_footer">
  117.  
  118.         IMA FREAK 1900-2013 -- out of here
  119.    
  120.     </div> <!-- end of templatemo_footer -->
  121.      
  122. </div> <!-- end of wrapper -->
  123. </body>
  124. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement