Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php include 'userheder.php'; ?> <?php // Simple PHP Upload Script: http://nicehost.in $u..
Decoded Output download
<?php include 'userheder.php'; ?> <?php // Simple PHP Upload Script: http://nicehost.in $uploadpath = 'upuser/'; // directory to store the uploaded files $max_size = 20000000000000000000; // maximum file size, in MebiBytes $allowtype = array('mp3'); // allowed extensions if(isset($_FILES['fileup']) && strlen($_FILES['fileup']['name']) > 1) { $uploadpath = $uploadpath . basename( $_FILES['fileup']['name']); // gets the file name $sepext = explode('.', strtolower($_FILES['fileup']['name'])); $type = end($sepext); // gets extension list($width, $height) = getimagesize($_FILES['fileup']['tmp_name']); // gets image width and height $err = ''; // to store the errors // Checks if the file has allowed type, size, width and height (for images) if(!in_array($type, $allowtype)) $err .= 'The file: <b>'. $_FILES['fileup']['name']. '</b> not has the allowed extension type Only Mp3.'; if($_FILES['fileup']['size'] > $max_size*1000) $err .= '<br/>Maximum file size must be: '. $max_size. ' MB.'; if(isset($width) && isset($height) && ($width >= $alwidth || $height >= $alheight)) $err .= '<br/>'; // If no errors, upload the image, else, output the errors if($err == '') { if(move_uploaded_file($_FILES['fileup']['tmp_name'], $uploadpath)) { echo 'File: <b>'. basename( $_FILES['fileup']['name']). '</b> successfully uploaded:'; echo '<br/>File type: <b>'. $_FILES['fileup']['type'] .'</b>'; echo '<br />Size: <b>'. number_format($_FILES['fileup']['size']/1024, 3, '.', '') .'</b> MB'; if(isset($width) && isset($height)) echo '<br/>Image Width x Height: '. $width. ' x '. $height; echo '<br/><br/>'; } else echo '<b>Unable to upload the file.</b>'; } else echo $err; } ?> <h2>User Upload</h2> <div class="catRow"><div style="margin:1em auto; width:333px; text-align:center;"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data"> <b>Upload Only Mp3 File:</b> <input type="file" name="fileup" /><br/> <input type="submit" name='submit' value="Now Upload" /> </form><font color="red">Your Songs Are Added Very Soon Need 24 hr.</font></div></div> <?php include 'userfoter.php'; ?>
Did this file decode correctly?
Original Code
<?php include 'userheder.php'; ?> <?php // Simple PHP Upload Script: http://nicehost.in $uploadpath = 'upuser/'; // directory to store the uploaded files $max_size = 20000000000000000000; // maximum file size, in MebiBytes $allowtype = array('mp3'); // allowed extensions if(isset($_FILES['fileup']) && strlen($_FILES['fileup']['name']) > 1) { $uploadpath = $uploadpath . basename( $_FILES['fileup']['name']); // gets the file name $sepext = explode('.', strtolower($_FILES['fileup']['name'])); $type = end($sepext); // gets extension list($width, $height) = getimagesize($_FILES['fileup']['tmp_name']); // gets image width and height $err = ''; // to store the errors // Checks if the file has allowed type, size, width and height (for images) if(!in_array($type, $allowtype)) $err .= 'The file: <b>'. $_FILES['fileup']['name']. '</b> not has the allowed extension type Only Mp3.'; if($_FILES['fileup']['size'] > $max_size*1000) $err .= '<br/>Maximum file size must be: '. $max_size. ' MB.'; if(isset($width) && isset($height) && ($width >= $alwidth || $height >= $alheight)) $err .= '<br/>'; // If no errors, upload the image, else, output the errors if($err == '') { if(move_uploaded_file($_FILES['fileup']['tmp_name'], $uploadpath)) { echo 'File: <b>'. basename( $_FILES['fileup']['name']). '</b> successfully uploaded:'; echo '<br/>File type: <b>'. $_FILES['fileup']['type'] .'</b>'; echo '<br />Size: <b>'. number_format($_FILES['fileup']['size']/1024, 3, '.', '') .'</b> MB'; if(isset($width) && isset($height)) echo '<br/>Image Width x Height: '. $width. ' x '. $height; echo '<br/><br/>'; } else echo '<b>Unable to upload the file.</b>'; } else echo $err; } ?> <h2>User Upload</h2> <div class="catRow"><div style="margin:1em auto; width:333px; text-align:center;"> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" enctype="multipart/form-data"> <b>Upload Only Mp3 File:</b> <input type="file" name="fileup" /><br/> <input type="submit" name='submit' value="Now Upload" /> </form><font color="red">Your Songs Are Added Very Soon Need 24 hr.</font></div></div> <?php include 'userfoter.php'; ?>
Function Calls
None |
Stats
MD5 | 0ea7f4452c6ed9093bfbcc4f8ab007f3 |
Eval Count | 0 |
Decode Time | 103 ms |