Remove netmirror from spartacus

This commit is contained in:
onli 2017-12-16 17:01:40 +01:00
parent 53fdfcb732
commit 615591a7d9

View File

@ -27,7 +27,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.37.2');
$propbag->add('version', '2.37.3');
$propbag->add('requirements', array(
'serendipity' => '1.6',
));
@ -80,46 +80,33 @@ class serendipity_event_spartacus extends serendipity_event
{
static $mirror = array(
'xml' => array(
'Netmirror.org',
'github.com',
's9y.org',
'github.com'
// 'openmirror.org'
),
'files' => array(
'Netmirror.org',
'github.com',
'SourceForge.net',
's9y.org',
'github.com'
// 'BerliOS.de (inactive)',
// 'openmirror.org'
's9y.org'
)
);
static $http = array(
'xml' => array(
'http://netmirror.org/mirror/serendipity/',
'http://s9y.org/mirror/',
'https://raw.github.com/s9y/additional_plugins/master/',
// 'http://openmirror.org/pub/s9y/',
'http://s9y.org/mirror/',
),
'files' => array(
'http://netmirror.org/mirror/serendipity/',
'https://raw.github.com/s9y/',
'http://php-blog.cvs.sourceforge.net/viewvc/php-blog/',
'http://s9y.org/mirror/',
'https://raw.github.com/s9y/',
// 'http://svn.berlios.de/viewcvs/serendipity/',
// 'http://openmirror.org/pub/s9y/',
),
'files_health' => array(
'http://netmirror.org/' => 'http://netmirror.org/mirror/serendipity/last.txt',
'http://php-blog.cvs.sourceforge.net/' => 'http://php-blog.cvs.sourceforge.net/viewvc/php-blog/serendipity/docs/LICENSE',
'http://s9y.org/' => 'http://s9y.org/',
'https://raw.github.com/' => 'https://raw.github.com/',
// 'http://svn.berlios.de/' => 'http://svn.berlios.de/viewcvs/serendipity/',
// 'http://openmirror.org/' => 'http://openmirror.org/pub/s9y/last.txt',
)
);
@ -611,6 +598,9 @@ class serendipity_event_spartacus extends serendipity_event
} else {
$mirror = $mirrors[$this->get_config('mirror_xml', 0)];
if ($mirror == null) {
$mirror = $mirrors[0];
}
$url = $mirror . '/package_' . $url_type . $lang . '.xml';
$cacheTimeout = 60*60*12; // XML file is cached for half a day
$target = $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE . '/package_' . $url_type . $lang . '.xml';