aboutsummaryrefslogtreecommitdiff
path: root/actions/imtest.php
blob: cbe15a1c165264f8d28082e88ec66cf92b3c270c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
	/**
	 * Tidypics ImageMagick Location Test
	 *
	 *  Called through ajax
	 */
	 
	$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.";
	}
?>