aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/admin/imtest.php
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-02-09 10:24:59 -0800
committerBrett Profitt <brett.profitt@gmail.com>2012-02-09 10:24:59 -0800
commit65f6184aec8f6c6e5d053d4cb0e0925b9f536570 (patch)
treed043143aec596595303bd83f32c97ce9681e8d6f /actions/photos/admin/imtest.php
parent4e593af0c167b0ec48799f569dced56058e5e8aa (diff)
downloadelgg-65f6184aec8f6c6e5d053d4cb0e0925b9f536570.tar.gz
elgg-65f6184aec8f6c6e5d053d4cb0e0925b9f536570.tar.bz2
Using tabs for admin pages.
Diffstat (limited to 'actions/photos/admin/imtest.php')
-rw-r--r--actions/photos/admin/imtest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/actions/photos/admin/imtest.php b/actions/photos/admin/imtest.php
new file mode 100644
index 000000000..a58643d0e
--- /dev/null
+++ b/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.";
+}