imtest.php 324 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Tidypics ImageMagick Location Test
  4. *
  5. * Called through ajax. Not a registered Elgg action.
  6. */
  7. $location = $_GET['location'];
  8. $command = $location . "convert -version";
  9. $result = system($command, $return_val);
  10. if ($return_val == 0) {
  11. echo $result;
  12. } else {
  13. echo elgg_echo('tidypics:lib_tools:error');
  14. }