From 7666e68ff563d33be4a6f20f3292d0e60ce293f6 Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Fri, 3 Nov 2006 20:04:12 +0000 Subject: [PATCH] * Fix a problem where spartacus did not properly assign configured permissions to downloaded directories, thanks to danilo from the forums! --- docs/NEWS | 4 +++ .../serendipity_event_spartacus.php | 25 +++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index 6f3013d..0ec6fde 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,10 @@ Version 1.1 () ------------------------------------------------------------------------ + * Fix a problem where spartacus did not properly assign configured + permissions to downloaded directories, thanks to danilo from + the forums! + * Move trackback sending logic to the end when saving an entry. Should get rid of event plugins not operating when trackbacks painfully fail. Thanks to isotopp (garvinhicking) diff --git a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php index d42b278..6d387e8 100644 --- a/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php +++ b/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php @@ -34,7 +34,7 @@ class serendipity_event_spartacus extends serendipity_event $propbag->add('description', PLUGIN_EVENT_SPARTACUS_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '2.7'); + $propbag->add('version', '2.8'); $propbag->add('requirements', array( 'serendipity' => '0.9', 'smarty' => '2.6.7', @@ -45,7 +45,10 @@ class serendipity_event_spartacus extends serendipity_event 'backend_plugins_fetchplugin' => true, 'backend_templates_fetchlist' => true, - 'backend_templates_fetchtemplate' => true + 'backend_templates_fetchtemplate' => true, + + 'backend_pluginlisting_header' => true, + 'backend_pluginlisting_header_upgrade' => true )); $propbag->add('groups', array('BACKEND_FEATURES')); $propbag->add('configuration', array('mirror_xml', 'mirror_files', 'chown', 'chmod_files', 'chmod_dir')); @@ -259,6 +262,7 @@ class serendipity_event_spartacus extends serendipity_event require_once S9Y_PEAR_PATH . 'HTTP/Request.php'; $options = array(); serendipity_plugin_api::hook_event('backend_http_request', $options, 'spartacus'); + serendipity_request_start(); $req = &new HTTP_Request($url, $options); if (PEAR::isError($req->sendRequest()) || $req->getResponseCode() != '200') { @@ -303,6 +307,7 @@ class serendipity_event_spartacus extends serendipity_event echo '
'; $this->purgeCache = true; } + serendipity_request_end(); } return $data; @@ -721,6 +726,7 @@ class serendipity_event_spartacus extends serendipity_event $url = $mirror . '/' . $sfloc . '/' . $file . '?rev=1.9999'; $target = $pdir . $file; @mkdir($pdir . $plugin_to_install); + $this->fileperm($pdir . $plugin_to_install, true); $this->fetchfile($url, $target); if (!isset($baseDir)) { $baseDirs = explode('/', $file); @@ -740,6 +746,21 @@ class serendipity_event_spartacus extends serendipity_event if (isset($hooks[$event])) { switch($event) { + case 'backend_pluginlisting_header': + echo '
'; + echo '' . PLUGIN_EVENT_SPARTACUS_CHECK_SIDEBAR . '   '; + echo '' . PLUGIN_EVENT_SPARTACUS_CHECK_EVENT . ' '; + echo '
'; + + return true; + break; + + case 'backend_pluginlisting_header_upgrade': + echo '' . PLUGIN_EVENT_SPARTACUS_CHECK_HINT . '
'; + + return true; + break; + case 'backend_templates_fetchlist': $eventData = $this->buildTemplateList($this->fetchOnline('template', true), 'template'); -- 2.39.5