screenshot.php 328 B

123456789101112
  1. <?php
  2. //
  3. // All the links to screenshots pass through this file. The url looks something like this:
  4. // http://host.com/apps/screenshot.php/8.jpg. This would read 8.jpg from APP_SCREENSHOT_DIR.
  5. //
  6. Header("Content-type: image/jpeg");
  7. require_once("apps.inc");
  8. readfile(APP_SCREENSHOT_DIR.$PATH_INFO);
  9. ?>