aboutsummaryrefslogtreecommitdiff
path: root/mod/lightpics/actions/photos/admin/imtest.php
blob: a58643d0e7e89bee379409aef782c0bc843597aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.";
}