diff options
author | cash <cash.costello@gmail.com> | 2009-01-18 19:50:11 +0000 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2009-01-18 19:50:11 +0000 |
commit | f343959dc964caa05d4763aabe230bb790f62757 (patch) | |
tree | 7d4994ce1ff0127749a151f5b620c619918260e8 /permissions.php | |
download | elgg-f343959dc964caa05d4763aabe230bb790f62757.tar.gz elgg-f343959dc964caa05d4763aabe230bb790f62757.tar.bz2 |
Diffstat (limited to 'permissions.php')
-rw-r--r-- | permissions.php | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/permissions.php b/permissions.php new file mode 100644 index 000000000..a67b610e9 --- /dev/null +++ b/permissions.php @@ -0,0 +1,41 @@ +<?php
+
+ // Load Elgg engine
+ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+
+ ob_start();
+
+?>
+
+<style type="text/css">
+#permissions {
+ margin:20px 0 0 0;
+ font:14px/1.4em "Lucida Grande", Verdana, Arial, Helvetica, Clean, Sans, sans-serif;
+ letter-spacing:0px;
+ color:#333;
+}
+</style>
+
+<div id="elggreturn">
+ <a href="javascript:history.go(-1)">Return to Tools Administration</a>
+</div>
+<div id="permissions">
+
+<?php
+
+ if (is_writable('cache'))
+ echo '<p>Good news. The cache directory is writeable.</p>';
+ else
+ echo '<p>The cache directory is not writeable.</p>';
+
+ echo '<p>The permissions on the directory are ' . substr(decoct(fileperms('cache')),2) . '.</p>';
+
+?>
+</div>
+
+
+<?php
+ $content = ob_get_clean();
+ $body = elgg_view_layout('one_column', $content);
+ echo page_draw(null, $body);
+?>
|