Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<!doctype html> <html> <head> <title>Dropbox JavaScript SDK</title> <link rel="sty..

Decoded Output download

<?  <!doctype html> 
<html> 
<head> 
  <title>Dropbox JavaScript SDK</title> 
  <link rel="stylesheet" href="/dropboxm/examples/javascript/styles.css"> 
  <script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script> 
</head> 
<body> 
  <!-- Example layout boilerplate --> 
  <header class="page-header"> 
    <div class="container"> 
      <nav> 
        <a href="/"> 
          <h1> 
            <img src="https://cfl.dropboxstatic.com/static/images/brand/logotype_white-vflRG5Zd8.svg" class="logo" /> 
            JavaScript SDK Examples 
          </h1> 
        </a> 
        <a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a> 
      </nav> 
      <h2 class="code"> 
        <a href="/">examples</a> / upload file 
      </h2> 
    </div> 
  </header> 
 
  <!-- Example description and UI --> 
  <section class="container main"> 
    <p>This example shows how to use the <code>Dropbox.filesUpload()</code> [<a href="http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload">docs</a>] method to upload a file.</p> 
 
    <form onSubmit="return uploadFile()"> 
      <input type="hidden" id="access-token"  value="cehr9YTfzvAAAAAAAAAAiZwhMsAxnwRjFOfvC0EzVEyMVd3XW34xd-6ylhNnJY0d" readonly /> 
      <input type="file" id="file-upload" /><br><br> 
      <button type="submit">SUBMIT</button><br><br> 
	   
    </form> 
	<form action="/share.php" > 
	<input type="hidden" name="path" value=""> 
	<button type="share">SHARE</button> 
	</form> 
 
    <!-- A place to show the status of the upload --> 
    <h2 id="results"></h2> 
 
     
  </section> 
 
   <script> 
    
    function uploadFile() { 
      var ACCESS_TOKEN = document.getElementById('access-token').value; 
      var dbx = new Dropbox({ accessToken: ACCESS_TOKEN }); 
      var fileInput = document.getElementById('file-upload'); 
      var file = fileInput.files[0]; 
      dbx.filesUpload({path: '/' + file.name, contents: file}) 
        .then(function(response) { 
          var results = document.getElementById('results'); 
          results.appendChild(document.createTextNode('File uploaded!')); 
          console.log(response); 
          var path=path_display; 
		  document.getElementByName('path_display'); 
        }) 
        .catch(function(error) { 
          console.error(error); 
        }); 
      return false; 
    } 
	 
	 
  </script> 
</body> 
</html> 
 ?>

Did this file decode correctly?

Original Code

<!doctype html>
<html>
<head>
  <title>Dropbox JavaScript SDK</title>
  <link rel="stylesheet" href="/dropboxm/examples/javascript/styles.css">
  <script src="https://unpkg.com/dropbox/dist/Dropbox-sdk.min.js"></script>
</head>
<body>
  <!-- Example layout boilerplate -->
  <header class="page-header">
    <div class="container">
      <nav>
        <a href="/">
          <h1>
            <img src="https://cfl.dropboxstatic.com/static/images/brand/logotype_white-vflRG5Zd8.svg" class="logo" />
            JavaScript SDK Examples
          </h1>
        </a>
        <a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
      </nav>
      <h2 class="code">
        <a href="/">examples</a> / upload file
      </h2>
    </div>
  </header>

  <!-- Example description and UI -->
  <section class="container main">
    <p>This example shows how to use the <code>Dropbox.filesUpload()</code> [<a href="http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesUpload">docs</a>] method to upload a file.</p>

    <form onSubmit="return uploadFile()">
      <input type="hidden" id="access-token"  value="cehr9YTfzvAAAAAAAAAAiZwhMsAxnwRjFOfvC0EzVEyMVd3XW34xd-6ylhNnJY0d" readonly />
      <input type="file" id="file-upload" /><br><br>
      <button type="submit">SUBMIT</button><br><br>
	  
    </form>
	<form action="/share.php" >
	<input type="hidden" name="path" value="">
	<button type="share">SHARE</button>
	</form>

    <!-- A place to show the status of the upload -->
    <h2 id="results"></h2>

    
  </section>

   <script>
   
    function uploadFile() {
      var ACCESS_TOKEN = document.getElementById('access-token').value;
      var dbx = new Dropbox({ accessToken: ACCESS_TOKEN });
      var fileInput = document.getElementById('file-upload');
      var file = fileInput.files[0];
      dbx.filesUpload({path: '/' + file.name, contents: file})
        .then(function(response) {
          var results = document.getElementById('results');
          results.appendChild(document.createTextNode('File uploaded!'));
          console.log(response);
          var path=path_display;
		  document.getElementByName('path_display');
        })
        .catch(function(error) {
          console.error(error);
        });
      return false;
    }
	
	
  </script>
</body>
</html>

Function Calls

None

Variables

None

Stats

MD5 ea4d7f2a20e045d7bcbfb95bd9ba51cc
Eval Count 0
Decode Time 91 ms