Version 0.8.4 ()
------------------------------------------------------------------------
+ * Unbundle Serendipity XML-RPC functions from the bundled distribution.
+ You will now need to install the additional plugin "Post via XML-RPC"
+ (serendipity_event_xmlrpc) to make entry posts via this interface.
+ The ongoing security issues with this interface and the little usage
+ of this functionality by the broad public have forced this move.
+ After installing this plugin you can use the same URL and nothing
+ will change for XML-RPC users. (garvinhicking)
+
+ * Optionally allow using a local PEAR installation. Set
+ $serendipity['use_PEAR'] = true
+ in your serendipity_config_local.inc.php or serendipity_config.inc.php
+ file. The required packages can be found in the
+ bundled-libs/.current_version file. (garvinhicking)
+
+ * Append the comment id to the mail that is sent to subscribers of
+ an entry, so that they can jump to the submitted comment immediately.
+ (garvinhicking)
+
Version 0.8.3 (August 4th, 2004)
------------------------------------------------------------------------
if (file_exists($target)) {
echo '(' . $target . ') ' . ERROR_FILE_EXISTS_ALREADY;
} else {
- require_once S9Y_INCLUDE_PATH . 'bundled-libs/HTTP/Request.php';
+ require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$req = &new HTTP_Request($serendipity['POST']['imageurl']);
// Try to get the URL
# Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
# All rights reserved. See LICENSE file for licensing details
-require_once 'bundled-libs/Onyx/RSS.php';
+require_once S9Y_PEAR_PATH . 'Onyx/RSS.php';
class Serendipity_Import_Generic extends Serendipity_Import {
var $info = array('software' => IMPORT_GENERIC_RSS);
include_once(S9Y_INCLUDE_PATH . "include/db/db.inc.php");
include_once(S9Y_INCLUDE_PATH . "include/compat.inc.php");
include_once(S9Y_INCLUDE_PATH . "include/functions_config.inc.php");
-include_once(S9Y_INCLUDE_PATH . "bundled-libs/XML/RPC.php");
+include_once(S9Y_PEAR_PATH . "XML/RPC.php");
include_once(S9Y_INCLUDE_PATH . "include/plugin_api.inc.php");
include_once(S9Y_INCLUDE_PATH . "include/functions_images.inc.php");
include_once(S9Y_INCLUDE_PATH . "include/functions_installer.inc.php");
global $serendipity;
if (!isset($serendipity['smarty'])) {
- @define('SMARTY_DIR', S9Y_INCLUDE_PATH . 'bundled-libs/Smarty/libs/');
+ @define('SMARTY_DIR', S9Y_PEAR_PATH . 'Smarty/libs/');
require_once SMARTY_DIR . 'Smarty.class.php';
$serendipity['smarty'] = new Smarty;
if ($serendipity['production'] === 'debug') {
printf(PLUGIN_EVENT_SPARTACUS_FETCHED_BYTES_CACHE, strlen($data), $target);
echo '<br />';
} else {
- require_once S9Y_INCLUDE_PATH . 'bundled-libs/HTTP/Request.php';
+ require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$req = &new HTTP_Request($url);
if (PEAR::isError($req->sendRequest()) || $req->getResponseCode() != '200') {
}
function GetXMLTree($file) {
- require_once S9Y_INCLUDE_PATH . 'bundled-libs/HTTP/Request.php';
+ require_once S9Y_PEAR_PATH . 'HTTP/Request.php';
$req = &new HTTP_Request($file);
if (PEAR::isError($req->sendRequest()) || $req->getResponseCode() != '200') {
if (!file_exists($feedcache) || filesize($feedcache) == 0 || filemtime($feedcache) < (time() - $cachetime)) {
if ($feedtype == 'rss') {
- require_once 'bundled-libs/Onyx/RSS.php';
+ require_once S9Y_PEAR_PATH . 'Onyx/RSS.php';
$c = &new Onyx_RSS();
$c->parse($rssuri);
$serendipity['fetchLimit'] = 15;
}
+if (!isset($serendipity['use_PEAR'])) {
+ $serendipity['use_PEAR'] = false;
+}
+
// Should IFRAMEs be used for previewing entries and sending trackbacks?
$serendipity['use_iframe'] = true;
define('IS_up2date', version_compare($serendipity['version'], $serendipity['versionInstalled'], '<='));
+// Check whether local or global PEAR should be used. You can put a
+// $serendipity['use_PEAR'] = true;
+// in your serendipity_config_local.inc.php file to enable this.
+// The required PEAR (and other) packages are mentioned in the file
+// bundled-libs/.current_version
+$old_include = @ini_get('include_path');
+if (@ini_set('include_path', $old_include . PATH_SEPARATOR . $serendipity['serendipityPath'] . PATH_SEPARATOR . $serendipity['serendipityPath'] . 'bundled-libs/') && $serendipity['use_PEAR']) {
+ @define('S9Y_PEAR', true);
+ @define('S9Y_PEAR_PATH', '');
+} else {
+ @define('S9Y_PEAR', false);
+ @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
+}
+
/*
* Include main functions
*/
$_SESSION['serendipityAuthedUser'] = false;
}
-$old_include = @ini_get('include_path');
-@ini_set('include_path', $serendipity['serendipityPath'] . PATH_SEPARATOR . $serendipity['serendipityPath'] . 'bundled-libs/' . PATH_SEPARATOR . $old_include);
-
if (isset($_SESSION['serendipityUser'])) {
$serendipity['user'] = $_SESSION['serendipityUser'];
}