+++ /dev/null
-<?php\r
-\r
- // Load Elgg engine\r
- require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");\r
-\r
- ob_start();\r
- \r
-?>\r
-\r
-<style type="text/css">\r
-#permissions {\r
- margin:20px 0 0 0;\r
- font:14px/1.4em "Lucida Grande", Verdana, Arial, Helvetica, Clean, Sans, sans-serif;\r
- letter-spacing:0px;\r
- color:#333;\r
-}\r
-</style>\r
-\r
-<div class="contentWrapper" style="margin:0; min-height:340px;">\r
-\r
-<div id="elggreturn">\r
- <a href="javascript:history.go(-1)">Return to Tools Administration</a>\r
-</div>\r
-<div id="permissions">\r
-\r
-<?php\r
- \r
- if (is_writable('cache'))\r
- echo '<p>Good news. The cache directory is writeable.</p>';\r
- else\r
- echo '<p>The cache directory is not writeable.</p>';\r
- \r
- echo '<p>The permissions on the directory are ' . substr(decoct(fileperms('cache')),2) . '.</p>';\r
- \r
-?>\r
-</div>\r
-</div>\r
-\r
-<?php \r
- $content = ob_get_clean();\r
- $body = elgg_view_layout('one_column', $content);\r
- echo page_draw(null, $body);\r
-?>\r
global $CONFIG;
$compat_url = $CONFIG->wwwroot . 'mod/simplepie/sp_compatibility_test.php';
-$permit_url = $CONFIG->wwwroot . 'mod/simplepie/permissions.php';
?>
<p>
<a href="<?php echo $compat_url; ?>">Compatibility Test</a>
</p>
-
-<p>
-<a href="<?php echo $permit_url; ?>">Permissions Test for Cache</a>
-</p>
$num_items = $vars['entity']->num_items;
$post_date = $vars['entity']->post_date;
- $cache_loc = $CONFIG->pluginspath . '/simplepie/cache';
+ $cache_location = $CONFIG->dataroot . '/simplepie_cache/';
+ if (!file_exists($cache_location)) {
+ mkdir($cache_location, 0777);
+ }
- $feed = new SimplePie($feed_url, $cache_loc);
+ $feed = new SimplePie($feed_url, $cache_location);
// doubles timeout if going through a proxy
//$feed->set_timeout(20);