diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-08-26 01:13:57 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-08-26 01:13:57 +0000 |
commit | 181b82b27317722f0701eda072943b9d2e7b6cb1 (patch) | |
tree | 1fdcc7bb129726f04a09a95778fa08abf531b1d0 /actions/imtest.php | |
parent | 97dcaaf23678191658df97930eca0360e1e555e7 (diff) | |
download | elgg-181b82b27317722f0701eda072943b9d2e7b6cb1.tar.gz elgg-181b82b27317722f0701eda072943b9d2e7b6cb1.tar.bz2 |
added a tab to admin page for testing image magick location
Diffstat (limited to 'actions/imtest.php')
-rw-r--r-- | actions/imtest.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/actions/imtest.php b/actions/imtest.php new file mode 100644 index 000000000..6ab2b7b8f --- /dev/null +++ b/actions/imtest.php @@ -0,0 +1,19 @@ +<?php
+ /**
+ * Tisypics 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.";
+ }
+?>
|