diff options
Diffstat (limited to 'mod/lightpics/actions/photos/admin/imtest.php')
-rw-r--r-- | mod/lightpics/actions/photos/admin/imtest.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/lightpics/actions/photos/admin/imtest.php b/mod/lightpics/actions/photos/admin/imtest.php new file mode 100644 index 000000000..a58643d0e --- /dev/null +++ b/mod/lightpics/actions/photos/admin/imtest.php @@ -0,0 +1,18 @@ +<?php +/** + * Tidypics ImageMagick Location Test + * + * Called through ajax. Not a registered Elgg action. + */ + +$location = $_GET['location']; + +$command = $location . "convert -version"; + +$result = system($command, $return_val); + +if ($return_val == 0) { + echo $result; +} else { + echo "Unable to run ImageMagick. Please check the path."; +} |