aboutsummaryrefslogtreecommitdiff
path: root/actions/imtest.php
blob: 293a9b2e8d22234a2123ec6499ed408b0c9d5160 (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
 */

$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.";
}