public function testWritingPermissions()
 {
     $logs = $GLOBALS['WiziappLog']->checkPath();
     $cacheHandler = new WiziappCache();
     $cache = $cacheHandler->checkPath();
     $thumbsHandler = new WiziappImageHandler();
     $thumbs = $thumbsHandler->checkPath();
     if (!$cache || !$logs || !$thumbs) {
         $message = 'It seems that your server settings are blocking access to certain directories. The WiziApp plugin requires writing permissions to the following directories:<br /><ul>';
         if (!$cache) {
             $message .= '<li>wp-content/uploads</li>';
         }
         if (!$logs) {
             $message .= '<li>wp-content/plugins/wiziapp/logs</li>';
         }
         if (!$thumbs) {
             $message .= '<li>wp-content/plugins/wiziapp/cache</li>';
         }
         $message .= '</ul>Though you may choose not to provide these permissions, this would mean that any requests by your iPhone App readers would be made in real time, which would deny you the advantages of caching.';
         // @todo format this i18n wordpress function usage to allow params and send the dir list as a parameter
         return new WiziappError('writing_permissions_error', __($message, 'wiziapp'));
     }
     return TRUE;
 }