daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. #$form = htmlspecialchars($_GET["form"]);
  3. $uniqueid = time() . mt_rand();
  4. exec('/usr/bin/convert -flatten -colorspace RGB -density 300 -quality 80 /var/www/html/toconvert.pdf /var/www/html/convertedimages/toconvert.png 2>&1', $output1);
  5. echo '<img alt="' . $uniqueid . '" style="display: none;" src="barcode.php?text=' . $uniqueid . '&print=true&size=100" />';
  6. exec ('convert /var/www/html/generatedbarcodes/' . $uniqueid . '.png -resize 300x300 /var/www/html/generatedbarcodes/' . $uniqueid . '_resize.png 2>&1', $output2);
  7. exec('/usr/bin/convert /var/www/html/convertedimages/toconvert.png  /var/www/html/generatedbarcodes/' . $uniqueid . '_resize.png -gravity NorthEast -composite /var/www/html/combined/' . $uniqueid . '.png 2>&1', $output3);
  8. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top