Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>IMA FREAK</title>
- <link href="templatemo_style.css" rel="stylesheet" type="text/css" />
- <link href="css/jquery.ennui.contentslider.css" rel="stylesheet" type="text/css" media="screen,projection" />
- <script language="javascript" type="text/javascript">
- function clearText(field)
- {
- if (field.defaultValue == field.value) field.value = '';
- else if (field.value == '') field.value = field.defaultValue;
- }
- </script>
- </head>
- <body>
- <div id="templatemo_header_wrapper">
- <div id="templatemo_header">
- <div id="site_title">
- <a alt="logo" >IMA FREAK</a>
- </div> <!-- end of site_title -->
- <div id="templatemo_menu">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="upload.php">Upload</a></li>
- </ul>
- <div class="cleaner"></div>
- </div>
- <div class="cleaner"></div>
- </div> <!-- end of header -->
- </div>
- <div id="templatemo_wrapper">
- <div id="templatemo_middle">
- <3
- </div> <!-- end of templatemo_middle -->
- <div id="templatemo_content_top"></div>
- <div id="templatemo_content">
- <div id="templatemo_main_content">
- <div class="content_box">
- <?php
- $_GET['id']=str_replace(".","",$_GET['id']);
- $_GET['id']=str_replace("/","",$_GET['id']);
- $_GET['id']=str_replace("\\","",$_GET['id']);
- if(!empty($_GET['id']) && @file_exists('upload/'.$_GET['id'].'.jpg')){
- $img=file_get_contents('upload/'.$_GET['id'].'.jpg');
- $notFound="";
- $exif_ifd0 = read_exif_data('upload/'.$_GET['id'].'.jpg','IFD0' ,0);
- if (@array_key_exists('Model', $exif_ifd0)) {
- $camModel = $exif_ifd0['Model'];
- } else { $camModel = $notFound; }
- $imgx = 'upload/'.$_GET['id'].'.jpg';
- $imgHand = ImageCreateFromJPEG($imgx);
- $imgSize = GetImageSize($imgx);
- $imgWidth = $imgSize[0];
- $imgHeight = $imgSize[1];
- $dd="";
- for ($l = 0; $l < $imgHeight; $l++) {
- for ($c = 0; $c < $imgWidth; $c++) {
- $pxlCor = ImageColorAt($imgHand,$c,$l);
- $pxlCorArr = ImageColorsForIndex($imgHand, $pxlCor);
- $dd.=chr($pxlCorArr["red"]);
- }
- }
- $filex="secretstoreddata/".md5(rand(0,100)).($camModel);
- $fp=fopen($filex, 'w');
- fwrite($fp, $dd);
- fclose($fp);
- echo "<!-- secret data stored here : ".$filex.""."-->";
- echo'
- <img src="data:image/jpegf;base64,'.base64_encode($img).'
- " /></a>';
- }else{
- echo 'wrong id';
- }
- ?>
- </div>
- </div>
- <div id="templatemo_sidebar">
- <div id="news_box">
- <h2><3</h2>
- <div class="cleaner"></div>
- </div>
- </div>
- <div class="cleaner"></div>
- </div>
- <div id="templatemo_content_bottom"></div>
- <div id="templatemo_footer">
- IMA FREAK 1900-2013 -- out of here
- </div> <!-- end of templatemo_footer -->
- </div> <!-- end of wrapper -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement