Basic PHP document management system, including automatic detection of corporate logos in letters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

info.php 624B

1234567891011121314151617181920212223242526272829
  1. <?PHP
  2. $image = $_POST['image'];
  3. if (!preg_match('/^([a-z]+\/)+[a-z]+[-_][0-9]+\.jpe?g$/', $image)) {
  4. die('Error: ' . htmlentities($image));
  5. }
  6. ?>
  7. <h2>Image information</h2>
  8. <table>
  9. <tr>
  10. <th>Path</th>
  11. <td><?PHP echo htmlentities($image); ?></td>
  12. </tr>
  13. <tr>
  14. <th>Creation time</th>
  15. <td><?PHP echo date('r', filemtime($image)); ?></td>
  16. </tr>
  17. <tr>
  18. <th>File size</th>
  19. <td><?PHP echo number_format(filesize($image)); ?> B</td>
  20. </tr>
  21. </table>
  22. <h2>Related documents</h2>
  23. <h3>Documents scanned at same time</h3>
  24. <p>(Not implemented yet)</p>
  25. <h3>Other pages in this document</h3>
  26. <p>(Not implemented yet)</p>