Current File : /home/users/barii/public_html/finansenl.com.pl/mmagnesy.fotomagnesy.pl/.16748579_tmp_random_file
<?php 
session_start();
include('config.php');?>
<!DOCTYPE html>
<html>
<?php
    function katalog($val){
            
    $FoundFiles = array();
                $iterator = new DirectoryIterator('img/dodatki/'.$val);
                    foreach ($iterator as $fileinfo) {
                        if ($fileinfo->isFile()) {                                                    
                         /*$xx =  explode('--',$fileinfo->getFilename());                                  
                            echo '<div class="zoom  dir'.str_replace('/thumb','',$val).' '.$xx[0].'"><img src="img/mini/'.$val.'/'.$fileinfo->getFilename().'" class="imgside';
                            if($val == 'makiety') echo ' shadow_eff';
                            echo ' dir'.str_replace('/thumb','',$val).' '.$xx[0].'" onclick="dodajNaklejke(\'img/mini/'.str_replace('/thumb','',$val).'/'.$fileinfo->getFilename().'\',';
                            if($val == 'makiety') echo '1,0,0';
                            else echo '0.4,100,100';
                            echo ')"><img src="img/mini/'.$val.'/'.$fileinfo->getFilename().'" class="imgzoom"></div>';*/
                            $FoundFiles[] = array( 
                                          "fileName" => $fileinfo->getFilename()
                                       ); 
                        }
                          
                    }
                    asort( $FoundFiles );
                    foreach ( $FoundFiles  as $fileinfo) {
                            $xx =  explode('--',$fileinfo[fileName]);                                  
                            echo '<div class="zoom  dir'.str_replace('/thumb','',$val).' '.$xx[0].'"><img src="img/mini/'.$val.'/'.$fileinfo[fileName].'" class="imgside';
                            if($val == 'makiety') echo ' shadow_eff';
                            echo ' dir'.str_replace('/thumb','',$val).' '.$xx[0].'" onclick="dodajNaklejke(\'img/mini/'.str_replace('/thumb','',$val).'/'.$fileinfo[fileName].'\',';
                            if($val == 'makiety') echo '1,0,0';
                            else echo '0.4,100,100';
                            echo ')"><img src="img/mini/'.$val.'/'.$fileinfo[fileName].'" class="imgzoom"></div>';
                    }
    }
?>
<head>
    <meta charset="UTF-8">
    <title>Foto Magnes - keator fotomagnesów</title>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="/css/iosOverlay.css">                                               
    <script src="/js/jquery.min.js"></script>
    <script src="/js/jquery.Jcrop.js"></script>
    <script src="/js/modernizr-2.0.6.min.js"></script>
    <script src="/js/iosOverlay.js"></script>
    <script src="/js/spin.min.js"></script>
    <script src="/js/prettify.js"></script>
    <script src="/js/custom.js"></script>
    <script type="text/javascript" src="/js/fabric.js"></script>  
    <script type="text/javascript" src="/js/text.js"></script>  
    <script type="text/javascript" src="/js/dodaj.php"></script>
    <script src="/js/jscolor.js"></script>

    <meta name="google-site-verification" content="1pfu1bqxZUb3QtMi_hgH6oPbrQEmL10cdD2nz6j0nLY" />
    

    <link rel="stylesheet" href="css/style.css"> 

                                                                                 

	<!--script type='text/javascript' src='unitegallery/js/jquery-11.0.min.js'></script>	
	<script type='text/javascript' src='unitegallery/js/unitegallery.min.js'></script>	

	<link rel='stylesheet' href='unitegallery/css/unite-gallery.css' type='text/css' />
	
	<script type='text/javascript' src='unitegallery/themes/tiles/ug-theme-tiles.js'></script-->  
<script>
$(document).ready(function() {
                   
$("a.popupa").click(function() {
  $('.popup').css({'display':'block'});

});
$(".zamknij").click(function() {
              $('.popup').css({'display':'none'});

});            

$('.wybortowaru ul li').click(function(){
    $('.wybortowaru ul li').removeClass();
    $(this).addClass('active');
});
                            


<?php if(count($_SESSION['zdjecia'])>0){?>
$.post( "wypiszzdjeciasesja.php", function( data ) {            
                              $('.wgrajzdjeciebox').hide();    
                              $('.wysuwane-koszyk').hide();       
                              $('.ggu-bot-snapped-launcher').hide();  
                              $('body').css('background','#fff');
                              $( ".result" ).html( data ); 
                              $('.btn-next').show();   
                              $( ".result" ).html( data );
                              jQuery("#gallery").unitegallery();
                              
                              
                              
                            });      
                                     
    <?php }?>
$('a.menutope').click( function() {
                  
			if($('a.menutope .material-icons').html()=='menu'){
        $('.menutope').animate({
        left: '+=250px'
        },500);
        
        $('a.menutope .material-icons').html('clear');
      }
      else{                
        $('.menutope').animate({
        left: '-=250px'
        },500);
        
        $('a.menutope .material-icons').html('menu');
      }
        
			return false;
});

zciemnij(1000);
  
});

</script>

</head>
<body oncontextmenu="return false">      
  <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pl_PL/sdk.js#xfbml=1&version=v2.6";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
 
<?php if($_SERVER['HTTP_HOST']=='www.allegromagnesy.fotomagnesy.pl'){?>
<div class="wybortowaru">
<img src="/img/logo2.png" style="width:200px;margin:20px 0px">
<ul>
  <li><img src="/img/wyb1.png"></li>
  <li><img src="/img/wyb2.png"></li>
  <li><img src="/img/wyb3.png"></li>
</ul>
<p style="font-size:30px;text-align:center;">Wybierz i stwórz produkt<br /> 
<span style="color:#05B4E8">przy pomocy naszego kreatora</span></p>
<p style="text-align:center"><a href="#" class="butt"><i>Projektuj</i></a></p>
<p style="font-size:18px;text-align:center"><span style="color:#05B4E8">*</span> Strona służy wyłącznie do przesyłania projektów w celu parowania<br /> 
zamówień z platformy Allegro.</p>
</div>
<?php }?>
    <div class="blur">  
<?php if($_SERVER['HTTP_HOST']!='www.allegromagnesy.fotomagnesy.pl'){?><a class="menutope"><i class="material-icons">menu</i><span>zobacz inne produkty</span></a>
<div class="menutope">
<p><a href="http://www.kartkiswiateczne.fotomagnesy.pl"><span></span><img src="/img/kartki.jpg"></a></p>
<p><a href="http://www.kalendarz.fotomagnesy.pl"><span></span><img src="/img/kalendarze.jpg"></a></p>
<p><img src="/img/plakat.jpg"></p>         
<p><a href="http://www.fotoobraz.kreatordruku-prolabel.pl"><span></span><img src="/img/foto-obraz.jpg"></a></p>  
</div>  <?php }?>
 
<div class="overwhite"></div>
      
<div class="header">
    <div class="top"> 
            <h1>KREATOR ON-LINE | Foto Magnes</h1>
    </div>
</div>

<?php

$files_array = array();
foreach(new DirectoryIterator('img/mini/makiety') as $file)
      if(!$file->isDot())
        if($file->getFilename()!='thumb'){
        $data = $file->getMTime();
        $key = $file->getFilename();
        $files_array[$key] = $data;
        }

?>


  <div class="wgrajzdjeciebox"><div style="margin:0 auto;width:530px">

      <div class="uploadzdjecie"><h2>Wgraj zdjęcia</h2>
    <h3>Zanim przystąpisz do wysyłania zdjęć, zapoznaj się z informacjami:</h3>
    <ul>
                    <li><!--[if IE]>Aby dodać więcej niż jedno zdjęcie skorzystaj z instrukcji zawartych pod tym linkiem: <a href="http://windows.microsoft.com/pl-pl/windows/select-multiple-files-folders#1TC=windows-7">[instruckje]</a><![endif]--><!--[if !IE]-->Aby dodać więcej niż jedno zdjęcie - przy wybieraniu plików przytrzymaj klawisz CTRL lub SHIFT.<!--[endif]--></li>
                    <li>Dozwolne rozszerzenia plików to: <strong>.jpg .png .gif</strong>.</li>
                    <li>Maksymalny rozmiar pliku to 7MB, a minimalny to 50kB.</li>
                </ul>
    
    
    </div>
       
</div>
</div>
                              
    <div class="result" style="padding-top:10px"></div> 


<div class="wysuwane-koszyk">
<div><div class="liczba"><?php echo count($_SESSION['kalendarze2017']);?></div>
<a href="koszyk.php">
Koszyk (<?php echo count($_SESSION['kalendarze2017']);?>)
<b>Zobacz</b>                                        
</a>
</div></div>

<footer>
    <div style="text-align:left">
    <img src="img/logo-foot.png" style="height:47px;margin:0 50px 0 15px;line-height:50px;"> <?php if($_SERVER['HTTP_HOST']!='www.allegromagnesy.fotomagnesy.pl'){?><a href="http://www.fotomagnesy.pl"><i class="material-icons" style="font-size:18px;position:relative;top:-2px">home</i> Strona główna</a>&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;<a href="/regulamin.php">Regulamin</a><?php }?></div>
    <div>
    </div>
    <div style="position:relative">
    <div class="fb-like" data-href="https://www.facebook.com/fotomagnesyPL" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false" style="margin:10px;positin:relative;right:150px;"></div><div class="kon"><p><a href="tel:+48 512 512 661"><img src="/img/f-tel.png"> +48 512 512 661 </a><p>
    <p><a <?php if($_SERVER['HTTP_HOST']!='www.allegromagnesy.fotomagnesy.pl'){?>class="sendpop"<?php }?><img src="/img/f-mail.png"> kontakt<span style="font-family:calibri;">@</span>fotomagnesy.pl</a><p></div></div>
</footer>

<script>
$(document).ready(function() {

$("a.sendpop").click(function() {
  $('.sendmailpopup').css({'display':'block'});

});
$(".zamknij").click(function() {
  $('.sendmailpopup').css({'display':'none'});
});
});
</script>

    <div class="stopkabtn">
        <span class="btn-upload bt" style="position:relative">Wybierz<br /><span>zdjęcie z dysku</span><input id="fileupload" type="file" name="files[]" multiple></span>
        <a href="edycja.php" class="bt btn-next" style="display:none"/>Zakończyłem<br /><span>wgrywanie zdjęć</span></a>        
    </div>

<div class="sendmailpopup"><div class="overwhite"></div><div class="sendpopup"><a href="#" class="zamknij">X</a>
<form action="sendmailform.php" method="post" enctype="multipart/form-data">
  <h1 style="margin-top:-3px;font-size:14px">Masz pytania<br>lub niestandardowe zamówienie?</h1>
      <p><span>Imię i Nazwisko:</span> <input type="text" name="imie" required/></p>
      <p><span>Numer telefonu:</span> <input type="text" name="tel"/></p>
      <p><span>Adres e-mail:</span> <input type="text" name="email" required/></p>
      <p><span>Treść wiedomości:</span> <textarea name="tresc"/></textarea></p>
      <p><span>Załącz plik:</span> <input type="file" name="files" multiple=""></p>
      <button id="realizuuj" class="bt loading" style="float:right;"/>Wyślij<br><span>wiadomość</span></button>
</form>

</div></div> 
</div>
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
<script src="js/vendor/jquery.ui.widget.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="//blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="//blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
<!-- Bootstrap JS is not required, but included for the responsive demo navigation -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="js/jquery.fileupload-validate.js"></script>
<script>

/*jslint unparam: true, regexp: true */
/*global window, $ */
//This is not production quality, its just demo code.
var cookieList = function(cookieName) {
//When the cookie is saved the items will be a comma seperated string
//So we will split the cookie by comma to get the original array
var cookie = $.cookie(cookieName);
//Load the items or a new array if null.
var items = cookie ? cookie.split(/,/) : new Array();

//Return a object that we can use to access the array.
//while hiding direct access to the declared items array
//this is called closures see http://www.jibbering.com/faq/faq_notes/closures.html
return {
    "add": function(val) {
        //Add to the items.
        items.push(val);
        //Save the items to a cookie.
        //EDIT: Modified from linked answer by Nick see 
        //      http://stackoverflow.com/questions/3387251/how-to-store-array-in-jquery-cookie
        $.cookie(cookieName, items.join(','));
    },
    "remove": function (val) { 
        //EDIT: Thx to Assef and luke for remove.
        indx = items.indexOf(val); 
        if(indx!=-1) items.splice(indx, 1); 
        $.cookie(cookieName, items.join(','));        },
    "clear": function() {
        items = null;
        //clear the cookie.
        $.cookie(cookieName, null);
    },
    "items": function() {
        //Get all the items.
        return items;
    }
  }
}  



$(function () {
    'use strict';

    
    // Change this to the location of your server-side upload handler:
    var url = window.location.hostname === 'blueimp.github.io' ?
                '//jquery-file-upload.appspot.com/' : 'server/php/',
        uploadButton = $('<button/>')
            .on('click', function () {
                var $this = $(this),
                    data = $this.data();
                $this
                    .off('click')
                    .text('Anuluj')
                    .on('click', function () {
                        $this.remove();
                        data.abort();
                    });
                data.submit().always(function () {
                    $this.remove();
                });
            });
    $('#fileupload').fileupload({
        url: url,
        dataType: 'json',
        autoUpload: true,
        acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
        previewMaxWidth: 100,
        previewMaxHeight: 100,
        previewCrop: true
    }).on('progressall', function (e, data) {
        $(".overwhite").show();
        alert(data.total);
        var progress = parseInt(data.loaded / data.total * 100, 10);
        $('#progress .progress-bar').html(progress + '%');
        
        //if(progress == '100')  alert('koniec');
        
    }).on('fileuploaddone', function (e, data) {
        $.each(data.result.files, function (index, file) {
            if (file.url) {
                     
                     $.ajax({
                      url: "/dodajplikisesja.php",
                      type: 'POST', 
                      data: { 
                         url: 'http://<?php echo $_SERVER['HTTP_HOST'];?>/server/php'+file.url
                      },              
                      success: function(data)
                      {       
                           $.post( "wypiszzdjeciasesja.php", function( data ) {
                              $('.wgrajzdjeciebox').hide();    
                              $('.wysuwane-koszyk').hide();       
                              $('.ggu-bot-snapped-launcher').hide();  
                              $('body').css('background','#fff');
                              $( ".result" ).html( data ); 
                              $('.btn-next').show();   
                            });
                      }
                    }).done(function(o) {
                      console.log('saved'); 
                    });
            
            }
        });
    }).on('fileuploadfail', function (e, data) {
        $.each(data.files, function (index) {
            var error = $('<span class="text-danger"/>').text('File upload failed.');
            $(data.context.children()[index])
                .append('<br>')
                .append(error);
        });
    }).prop('disabled', !$.support.fileInput)
        .parent().addClass($.support.fileInput ? undefined : 'disabled');
        
        
        

    $('#fileupload2').fileupload({
        url: url,
        dataType: 'json',
        autoUpload: true,
        acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
        previewMaxWidth: 100,
        previewMaxHeight: 100,
        previewCrop: true
    }).on('fileuploadadd', function (e, data) {
        data.context = $('<div style="display:inline-block;width:150px;;margin:5px;" />').appendTo('#files');
        $.each(data.files, function (index, file) {
            var node = $('<div/>');
            node.appendTo(data.context);
        });
    }).on('fileuploadprocessalways', function (e, data) {
        var index = data.index,
            file = data.files[index],
            node = $(data.context.children()[index]);
        if (file.preview) {
            node
                .prepend(file.preview);
        }
        if (file.error) {
            node
                .append('<br>')
                .append($('<span class="text-danger"/>').text(file.error));
        }
        if (index + 1 === data.files.length) {
            $(".loader").show();
        }
    }).on('fileuploadprogressall', function (e, data) {
        //zciemnij(1200);
        var progress = parseInt(data.loaded / data.total * 100, 10);
        $('#progress .progress-bar').css(
            'width',
            progress + '%'
        );
        if(progress == '100') alert('koniec');
    }).on('fileuploaddone', function (e, data) {
        $.each(data.result.files, function (index, file) {
            
            if (file.url) {
                     
                     $.ajax({
                      url: "/dodajplikisesja.php",
                      type: 'POST', 
                      data: { 
                         url: 'http://<?php echo $_SERVER['HTTP_HOST'];?>/server/php'+file.url
                      },              
                      success: function(data)
                      {       
                           $.post( "wypiszzdjeciasesja.php", function( data ) {
                              $('.wgrajzdjeciebox').hide();        
                              $('body').css('background','#fff');
                              $( ".result" ).html( data );
                              
                            });
                      }
                    }).done(function(o) {
                      console.log('saved'); 
                    });
            
            }

        });
    }).on('fileuploadfail', function (e, data) {
        $.each(data.files, function (index) {
            var error = $('<span class="text-danger"/>').text('File upload failed.');
            $(data.context.children()[index])
                .append('<br>')
                .append(error);
        });
    }).prop('disabled', !$.support.fileInput)
        .parent().addClass($.support.fileInput ? undefined : 'disabled');
});
</script>	

<script src="http://skryptcookies.pl/cookie.js"></script>
</body>
</html>