aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/imtest.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-07-31 19:38:29 +0000
committerCash Costello <cash.costello@gmail.com>2010-07-31 19:38:29 +0000
commit1d3b83e6791b1e9e3386bb79937ef58240ba94ba (patch)
treeb90b7ff2fdf45cfc8c9924d30e1fde914d80f247 /actions/admin/imtest.php
parenta1f08342c8b8502197159a9fd78e48e6cead4ea0 (diff)
downloadelgg-1d3b83e6791b1e9e3386bb79937ef58240ba94ba.tar.gz
elgg-1d3b83e6791b1e9e3386bb79937ef58240ba94ba.tar.bz2
moved some actions into the admin directory
Diffstat (limited to 'actions/admin/imtest.php')
-rw-r--r--actions/admin/imtest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/admin/imtest.php b/actions/admin/imtest.php
new file mode 100644
index 000000000..293a9b2e8
--- /dev/null
+++ b/actions/admin/imtest.php
@@ -0,0 +1,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.";
+}