]> git.mjollnir.org Git - s9y.git/commitdiff
Prepare 0.8.5 release
authorgarvinhicking <garvinhicking>
Mon, 26 Sep 2005 13:24:02 +0000 (13:24 +0000)
committergarvinhicking <garvinhicking>
Mon, 26 Sep 2005 13:24:02 +0000 (13:24 +0000)
45 files changed:
deployment/serendipity_editor.js
docs/NEWS
include/admin/comments.inc.php
include/admin/images.inc.php
include/admin/import.inc.php
include/admin/personal.inc.php
include/functions_config.inc.php
include/genpage.inc.php
include/tpl/config_personal.inc.php
include/tpl/htaccess_cgi_errordocs.tpl
include/tpl/htaccess_cgi_normal.tpl
include/tpl/htaccess_cgi_rewrite.tpl
include/tpl/htaccess_errordocs.tpl
include/tpl/htaccess_normal.tpl
include/tpl/htaccess_rewrite.tpl
index.php
lang/addlang.txt
lang/serendipity_lang_bg.inc.php
lang/serendipity_lang_cn.inc.php
lang/serendipity_lang_cs.inc.php
lang/serendipity_lang_cz.inc.php
lang/serendipity_lang_da.inc.php
lang/serendipity_lang_de.inc.php
lang/serendipity_lang_en.inc.php
lang/serendipity_lang_es.inc.php
lang/serendipity_lang_fa.inc.php
lang/serendipity_lang_fi.inc.php
lang/serendipity_lang_fr.inc.php
lang/serendipity_lang_is.inc.php
lang/serendipity_lang_it.inc.php
lang/serendipity_lang_ja.inc.php
lang/serendipity_lang_ko.inc.php
lang/serendipity_lang_nl.inc.php
lang/serendipity_lang_no.inc.php
lang/serendipity_lang_pt.inc.php
lang/serendipity_lang_ro.inc.php
lang/serendipity_lang_ru.inc.php
lang/serendipity_lang_tn.inc.php
lang/serendipity_lang_tw.inc.php
lang/serendipity_lang_zh.inc.php
plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php
plugins/serendipity_event_livesearch/serendipity_event_livesearch.php
serendipity_admin_image_selector.php
serendipity_config.inc.php
serendipity_editor.js

index 5d246fe0cce5b6f0a39a33515021ed76feb73c14..f4003b20b541dacb07fe51accb5dd4c7f65b1ca9 100644 (file)
@@ -1,5 +1,5 @@
 <!-- // Hide from older browsers
-/* $Id$
+/* $Id$ */
 /*
 # Copyright (c) 2003-2005, Jannis Hermanns (on behalf the Serendipity Developer Team)
 # All rights reserved.  See LICENSE file for licensing details
@@ -139,11 +139,14 @@ function serendipity_imageSelector_addToElement (str, el)
 {
     document.getElementById(el).value = str;
     document.getElementById(el).focus();
+       if (document.getElementById(el).onchange) {
+           document.getElementById(el).onchange();
+    }
 }
 
 function serendipity_imageSelector_addToBody (str, textarea)
 {
-    document.forms['serendipityEntry']['serendipity['+ textarea +']'].value += str;
+       wrapSelection(document.forms['serendipityEntry']['serendipity['+ textarea +']'], str, '');
     document.forms['serendipityEntry']['serendipity['+ textarea +']'].focus();
 }
 
index 75752076689cc123617629e1aa4ae5e3e8fb870f..661442e70d1804bef3ff9ad454bd4e885e5fe717 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,9 +3,28 @@
 Version 0.8.5 ()
 ------------------------------------------------------------------------
 
+    * More Security: When changing the password in your personal preferences,
+      you need to insert the old password. Thanks to Nenad Jovanovic for
+      contacting me about this issue! (garvinhicking)
+
+    * Fix JS errors in admin comment overview for IE6 (garvinhicking)
+
+    * Fix showing any entry-id related sidebar plugins, when a selected
+      entry is not visible (permissions/drafts/...) by unsetting the
+      global $serendipity['GET']['id'] in that case. (garvinhicking)
+
+    * Fix "DATA_TRACKBACK_APPROVED" showing of constants when approving
+      trackbacks/comments instead of the properly formatted message.
+      (Would've required a template change for a "pretty solution", but
+       the current fix is a BC-compatible fix by defining constants a bit
+       differently) (garvinhicking)
+
     * Default Admin Stylesheet no longer uses direct height: assignment,
       but padding instead. This should get rid of occasional overlapping 
       of menu items. Thanks a lot to Ognyan Kulev for the solution to this!
+      
+    * Fix putting sticky entry on the last page in postgreSQL setups.
+      Thanks to Nate Johnston for working this out! (garvinhicking)
 
     * Fix file upload bug which limited upload filesize to 3 million bytes
       (2.86MB) regardless of PHP configuration. Maximum upload filesize
index d71545d9436ad4b5b75e2506e2ebeecc42e57b2d..b71edecd36dc7211b36f95fc7f44c5b0b2a8c990 100644 (file)
@@ -164,7 +164,7 @@ $sql = serendipity_db_query("SELECT c.*, e.title FROM {$serendipity['dbPrefix']}
                                 ORDER BY c.id DESC $limit");
 ?>
 <script type="text/javascript">
-function toggle(id) {
+function FT_toggle(id) {
     if ( document.getElementById(id + '_full').style.display == '' ) {
         document.getElementById(id + '_full').style.display='none';
         document.getElementById(id + '_summary').style.display='';
@@ -352,10 +352,10 @@ foreach ($sql as $rs) {
           <a href="?serendipity[action]=admin&amp;serendipity[adminModule]=comments&amp;serendipity[adminAction]=approve&amp;serendipity[id]=<?php echo $rs['id'] ?>" class="serendipityIconLink" title="<?php echo APPROVE; ?>"><img src="<?php echo serendipity_getTemplateFile('admin/img/accept.png'); ?>" alt="<?php echo APPROVE ?>" /><?php echo APPROVE ?></a>
 <?php } ?>
 <?php if (strlen($fullBody) > strlen($summary) ) { ?>
-          <a href="#c<?php echo $rs['id'] ?>" onclick="toggle(<?php echo $rs['id'] ?>); return false;" title="<?php echo VIEW; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo VIEW; ?>" /><span id="<?php echo $rs['id'] ?>_text"><?php echo VIEW ?></span></a>
+          <a href="#c<?php echo $rs['id'] ?>" onclick="FT_toggle(<?php echo $rs['id'] ?>); return false;" title="<?php echo VIEW; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo VIEW; ?>" /><span id="<?php echo $rs['id'] ?>_text"><?php echo VIEW ?></span></a>
 <?php } ?>
           <a href="?serendipity[action]=admin&amp;serendipity[adminModule]=comments&amp;serendipity[adminAction]=edit&amp;serendipity[id]=<?php echo $rs['id'] ?>&amp;serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" title="<?php echo EDIT; ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/edit.png'); ?>" alt="<?php echo EDIT; ?>" /><?php echo EDIT ?></a>
-          <a href="?serendipity[action]=admin&amp;serendipity[adminModule]=comments&amp;serendipity[adminAction]=delete&amp;serendipity[id]=<?php echo $rs['id'] ?>&amp;serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" onclick="return confirm('<?php echo sprintf(COMMENT_DELETE_CONFIRM, $rs['id'], htmlspecialchars($rs['author'])) ?>')" title="<?php echo DELETE ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/delete.png'); ?>" alt="<?php echo DELETE; ?>" /><?php echo DELETE ?></a>
+          <a href="?serendipity[action]=admin&amp;serendipity[adminModule]=comments&amp;serendipity[adminAction]=delete&amp;serendipity[id]=<?php echo $rs['id'] ?>&amp;serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" onclick='return confirm("<?php echo sprintf(COMMENT_DELETE_CONFIRM, $rs['id'], htmlspecialchars($rs['author'])) ?>")' title="<?php echo DELETE ?>" class="serendipityIconLink"><img src="<?php echo serendipity_getTemplateFile('admin/img/delete.png'); ?>" alt="<?php echo DELETE; ?>" /><?php echo DELETE ?></a>
     </td>
 </tr>
 <tr>
index ba7739884ecdaed422f7b99525f90bb8a4fd6758..a9b6ddabd4b564c2f3fcc11ddb3516e8c76b90ef 100644 (file)
@@ -8,8 +8,8 @@ if (IN_serendipity !== true) {
 
 switch ($serendipity['GET']['adminAction']) {
     case 'sync':
-        set_time_limit(0);
-        ignore_user_abort();
+        @set_time_limit(0);
+        @ignore_user_abort();
 
         echo '<p><b>' . SYNCING . '</b><br /><br />';
         flush();
index 1a96a6534ab76b82a2ea99d45740b0317decf9da..c3d8823712038d7b62b3dc82032b341ed9c7db83 100644 (file)
@@ -30,7 +30,7 @@ class Serendipity_Import {
         }
 
         if (LANG_CHARSET != 'ISO-8859-1') {
-            $charset['ISO-8859-1'] = 'ISO-8859-1';
+            $charsets['ISO-8859-1'] = 'ISO-8859-1';
         }
         
         if ($utf8_default) {
index dfe1d20c1c569df62a304bf6cb1528111ebac339..ce4419e282cb4c7fb75c65d25e56439b02bebe81 100644 (file)
@@ -12,6 +12,8 @@ if ( $serendipity['GET']['adminAction'] == 'save' ) {
     $config = serendipity_parseTemplate(S9Y_CONFIG_USERTEMPLATE);
     if ((int)$_POST['userlevel'] > $serendipity['serendipityUserlevel']) {
         echo '<div class="serendipityAdminMsgError">' . CREATE_NOT_AUTHORIZED_USERLEVEL . '</div>';
+    } elseif (!empty($_POST['password']) && $_POST['check_password'] != $_SESSION['serendipityPassword'] && md5($_POST['check_password']) != $_SESSION['serendipityPassword']) {
+        echo '<div class="serendipityAdminMsgError">' . USERCONF_CHECK_PASSWORD_ERROR . '</div>';
     } else {
         foreach($config as $category) {
             foreach ($category['items'] as $item) {
index 7d353d272352d6631415cd20efb0f78b1cd3a676..1b3abffee3ae2580825e507b9d064d4397370753 100644 (file)
@@ -453,6 +453,9 @@ function serendipity_header($header) {
 function serendipity_getSessionLanguage() {
     global $serendipity;
 
+    // Store default language
+    $serendipity['default_lang'] = $serendipity['lang'];
+
     if ($_SESSION['serendipityAuthedUser']) {
         serendipity_header('X-Serendipity-InterfaceLangSource: Database');
         return $serendipity['lang'];
index 30686e2b2e7d42b47bcf0f1ba13cca2da4d97dad..2a6eeb531e24bff4e77f02fe4e24d219a48dddf1 100644 (file)
@@ -28,7 +28,13 @@ if ($serendipity['smarty_raw_mode']) {
         // User wants to read the diary
         case 'read':
             if (isset($serendipity['GET']['id'])) {
-                serendipity_printEntries(array(serendipity_fetchEntry('id', $serendipity['GET']['id'])), 1);
+                $entry = array(serendipity_fetchEntry('id', $serendipity['GET']['id']));
+                if (!is_array($entry) || count($entry) < 1) {
+                    unset($serendipity['GET']['id']);
+                    $entry = array(array());
+                }
+
+                serendipity_printEntries($entry, 1);
             } else {
                 serendipity_printEntries(serendipity_fetchEntries($serendipity['range'], true, $serendipity['fetchLimit']));
             }
index 26f4f15a930b2fcdbcd24ba761c6756fa09389a2..b9315d00edd9ece6896a3c49648d851b42b8ef76 100644 (file)
                                           'default'     => '',
                                           'userlevel'   => USERLEVEL_EDITOR),
 
+                                    array('var'         => 'check_password',
+                                          'title'       => USERCONF_CHECK_PASSWORD,
+                                          'description' => USERCONF_CHECK_PASSWORD_DESC,
+                                          'type'        => 'protected',
+                                          'default'     => '',
+                                          'permission'  => 'personalConfiguration'),
+
                                     array('var'         => 'realname',
                                           'title'       => USERCONF_REALNAME,
                                           'description' => USERCONF_REALNAME_DESC,
index c69a7d1b0b638b776c1c83d0850b3ed7f08a0344..18955145bcffda0730816c1cd3a22c61f4277de8 100644 (file)
@@ -2,6 +2,10 @@
 ErrorDocument 404 {PREFIX}{indexFile}
 DirectoryIndex {PREFIX}{indexFile}
 
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 85a6a7521e8d7da2202ddddb834742539b3a14e1..8e5b3bcb07dd2d0afa638e8aaa51257bf0a6f2b6 100644 (file)
@@ -1,5 +1,10 @@
 # BEGIN s9y
 DirectoryIndex {PREFIX}{indexFile}
+
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 860c2f05b9715c57700d412cd884ddbb3300205b..2a718265d582ba21639771cefc21741f628b6ad3 100644 (file)
@@ -22,6 +22,10 @@ RewriteRule ^index\.(html?|php.+) {indexFile}?url=index.html [L,QSA]
 RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
 RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]
 
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 7477fb3344bc5494dd44695ce98cb7dc64e1165a..32c4b3ca9aff7e8a3f50e62d29b1d09b7f1cfd0e 100644 (file)
@@ -4,6 +4,10 @@ DirectoryIndex {PREFIX}{indexFile}
 php_value session.use_trans_sid 0
 php_value register_globals off
 
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 73c3a94be748778cdc2913f55f28d7cfa33320dd..7bb21a44c80c0ccd7b5839adc4492991aeaa7473 100644 (file)
@@ -2,6 +2,11 @@
 DirectoryIndex {PREFIX}{indexFile}
 php_value session.use_trans_sid 0
 php_value register_globals off
+
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 6e863a4feea2038e541d8e17ff8be2288b186277..2313f645c6cb69ea38bb7729af1ae476bdd13623 100644 (file)
@@ -24,6 +24,10 @@ RewriteRule ^index\.(html?|php.+) {indexFile}?url=index.html [L,QSA]
 RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
 RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]
 
+<Files *.tpl.php>
+    deny from all
+</Files>
+
 <Files *.tpl>
     deny from all
 </Files>
index 8ff62496c994b916aed2d51efb28c7faa1773248..e31b772f860f0199d13a219462fe2da295c8721c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -35,7 +35,7 @@ if (isset($_SERVER['HTTP_REFERER']) && empty($_SESSION['HTTP_REFERER'])) {
 
 if (preg_match(PAT_UNSUBSCRIBE, $uri, $res)) {
     if (serendipity_cancelSubscription(urldecode($res[1]), $res[2])) {
-        define('DATA_UNSUBSCRIBED', urldecode($res[1]));
+        define('DATA_UNSUBSCRIBED', sprintf(UNSUBSCRIBE_OK, urldecode($res[1])));
     }
 
     $uri = '/' . PATH_UNSUBSCRIBE . '/' . $res[2] . '-untitled.html';
@@ -43,17 +43,19 @@ if (preg_match(PAT_UNSUBSCRIBE, $uri, $res)) {
 
 if (preg_match(PAT_DELETE, $uri, $res) && $serendipity['serendipityAuthedUser'] === true) {
     if ($res[1] == 'comment' && serendipity_deleteComment($res[2], $res[3], 'comments')) {
-        define('DATA_COMMENT_DELETED', $res[2]);
+        define('DATA_COMMENT_DELETED', sprintf(COMMENT_DELETED, $res[2]));
     } elseif ( $res[1] == 'trackback' && serendipity_deleteComment($res[2], $res[3], 'trackbacks') ) {
-        define('DATA_TRACKBACK_DELETED', $res[2]);
+        define('DATA_TRACKBACK_DELETED', sprintf(TRACKBACK_DELETED, $res[2]));
     }
 }
 
 if (preg_match(PAT_APPROVE, $uri, $res) && $serendipity['serendipityAuthedUser'] === true) {
     if ($res[1] == 'comment' && serendipity_approveComment($res[2], $res[3])) {
-        define('DATA_COMMENT_APPROVED', $res[2]);
+        define('DATA_COMMENT_APPROVED', sprintf(COMMENT_APPROVED, $res[2]));
+        define('DATA_TRACKBACK_APPROVED', false);
     } elseif ($res[1] == 'trackback' && serendipity_approveComment($res[2], $res[3])) {
-        define('DATA_TRACKBACK_APPROVED', $res[2]);
+        define('DATA_COMMENT_APPROVED', false);
+        define('DATA_TRACKBACK_APPROVED', sprintf(TRACKBACK_APPROVED, $res[2]));
     }
 }
 
index 9e0c4b415c293175c70d0c29a626e904ff59d0de..3df235027b72ac067dc80d06b75a2734a320a0ea 100644 (file)
@@ -1 +1,3 @@
-@define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index dee9d672b66f0625202897870a9db4d5979287e7..be9375e38fb3875e342b3e62736570c5d322ac2f 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 285aff2725c09855deb0bc9011343a8d3c440995..66df01941a3dadc04b492c667757b9f46611772e 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 4bc7da23359981300c252a377a56e680db87abda..83039421e8e27aeeca7203c1152d88d62076833d 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index d1102bb31643a0752229a0a9ae0898be800722fb..1b9985e264530eff2517ef164ece12a65ba34386 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 29082d5d923d5ada041237b3402e0f5d2d867674..cbefc29de8c18a4d8125fd0168c69d0d0ed9a32c 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index b0ae73fa89df4a6b623eedfc4f293d7ce780a110..0b212c1084d5d67fafd2f8d85e51f8a0e336693a 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 180fdc744bea7f53e024e1d08ac0219b6bb7734f..de1c47b8bb1e346d4cbb45685fb353847c4300b3 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 596331c6c7df1229e846f164e64188d9dec85b22..268869c7e68a31c71252c6da1f55a1e97eb248c2 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 2ec21c7131b2a1245e276d5df4747d534a102f87..38734afbf58b8afb4d4d385fb8f68901991e62bf 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 4529dedfac1e7b4d10bfc1c96a06a431da2cc91b..8dadc6d33e411180f911d195c3423deb4f71453a 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index c94d6b352cdb0540d0a42e98ca4d0757be5b6085..6ee837ec20f440dbf41473570576fa22931b53ba 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'Cela configure l\'adresse mail qui sera utilisée dans la partie "Expediteur" des messages sortant. Assurez-vous que l\'adresse soit reconnue par le serveur de mail utilisé par votre hote - Beaucoup de serveur de mails rejettent les mails qui ont des adresses d\'expediteurs inconnues.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 214610bec209f89ab172dcd6f7490ade7df84ed7..aac278ed386f362f9f07341b8e77731b6ded62c1 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 36d360f0b5fe36300ea5306ce8d68ed7c4db67d5..06d845b2ff909db82e8201e639ebc273331122bf 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 29cdc6280937aad7977fc9492c60b05346a2470d..5e8edd29b32e82d2bff90d073a4bebc48216607d 100644 (file)
@@ -669,3 +669,6 @@ Serendipity のアップグレードステージを無視しました。正し
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 43e92a04230b7a3f84a96471ab9a7da774a1179d..0f19c32b084935f4650aeb10ea4d9d23c8a146da 100644 (file)
 @define('INSTALL_BLOG_EMAIL', '블로그의 전자우편 주소');
 @define('INSTALL_BLOG_EMAIL_DESC', '발송하는 전자우편의 "보낸 사람" 부분에 나타날 전자우편 주소를 설정합니다. 호스트의 메일 서버에서 인식하는 주소로 반드시 설정하십시오. 상당수의 메일 서버는 보낸 사람 주소를 알 수 없는 전자우편을 거부합니다.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index aa0bbbaac451226adc92c6ef8fc0bc43a7f6802f..1b92b6616f233ffe7cfe8bbe4d3c0d23798c56f0 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 1842491bed94dc7314f064712588b4a95474300e..383f9b768e59fc5b02296a7c82fa63f8f302b5fa 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 865a8ff88521cca1c50e90987430adb21004b3ee..7aa1b0ebac6c00b94b3777fc4ef95931092c290c 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 24e851dd3596dd4c4511d52bd9194e879573dc2d..b4228df71dad0b601a38a813cb8654afd79dbfd8 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 4654ee918093343402298ce07818567b2a60bd81..333754d090c573acf753da7bb6f13cc2dd86e45b 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 5e7f5bc8be816da48302437fe143e825f449d791..36713edab1f48fec0679fab554ff0bc4a9c37bab 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 9cda2e01904f0ffbf450f5a426f8da8cf266921b..e5a8a311da9fc16b793a6f74f8459635b77f244f 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index d90ee38fcc2248c26821700cbe6ca51e67085c21..cf2e48290e717568380aebd2100bf09f6768e302 100644 (file)
 @define('INSTALL_BLOG_EMAIL', 'Blog\'s E-Mail address');
 @define('INSTALL_BLOG_EMAIL_DESC', 'This configures the E-Mail address that is used as the "From"-Part of outgoing mails. Be sure to set this to an address that is recognized by the mailserver used on your host - many mailservers reject messages that have unknown From-addresses.');
 @define('XMLRPC_NO_LONGER_BUNDLED', 'The XML-RPC API Interface to Serendipity is no longer bundled because of ongoing security issues with this API and not many people using it. Thus you need to install the XML-RPC Plugin to use the XML-RPC API. The URL to use in your applications will NOT change - as soon as you have installed the plugin, you will again be able to use the API.');
+@define('USERCONF_CHECK_PASSWORD', 'Old Password');
+@define('USERCONF_CHECK_PASSWORD_DESC', 'If you change the password in the field above, you need to enter the current user password into this field.');
+@define('USERCONF_CHECK_PASSWORD_ERROR', 'You did not specify the right old password, and are not authorized to change the new password. Your settings were not saved.');
index 670d9f25780ddaa754b9a85cddb91b08fe9b0eed..dd3ebd4fe9a6f1a32c65fa103d2803fd7a8c1892 100644 (file)
@@ -410,7 +410,16 @@ class serendipity_event_entryproperties extends serendipity_event
                         $eventData['addkey'] .= $cond;
                     }
 
-                    $cond = 'orderkey DESC';
+                    if ($serendipity['dbType'] == 'postgres') {
+                        // PostgreSQL is a bit weird here. Empty columns with NULL or "" content for 
+                        // orderkey would get sorted on top when using DESC, and only after those 
+                        // the "true" content would be inserted. Thus we order ASC in postgreSQL, 
+                        // and silently wonder. Thanks to Nate Johnston for working this out!
+                        $cond = 'orderkey ASC';
+                    } else {
+                        $cond = 'orderkey DESC';
+                    }
+
                     if (empty($eventData['orderby'])) {
                         $eventData['orderby'] = $cond;
                     } else {
@@ -419,16 +428,16 @@ class serendipity_event_entryproperties extends serendipity_event
 
                     $joins = array();
                     if ($is_cache && (!isset($addData['noCache']) || !$addData['noCache'])) {
-                        $joins[] = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_cache_extended
+                        $joins[] = " LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_cache_extended
                                                  ON (e.id = ep_cache_extended.entryid AND ep_cache_extended.property = 'ep_cache_extended')";
-                        $joins[] = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_cache_body
+                        $joins[] = " LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_cache_body
                                                  ON (e.id = ep_cache_body.entryid AND ep_cache_body.property = 'ep_cache_body')";
                     }
-                    $joins[] = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_access
+                    $joins[] = " LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_access
                                              ON (e.id = ep_access.entryid AND ep_access.property = 'ep_access')";
 
                     if (!isset($addData['noSticky']) || $addData['noSticky'] !== true) {
-                        $joins[] = "LEFT JOIN {$serendipity['dbPrefix']}entryproperties ep_sticky
+                        $joins[] = " LEFT JOIN {$serendipity['dbPrefix']}entryproperties ep_sticky
                                                  ON (e.id = ep_sticky.entryid AND ep_sticky.property = 'ep_is_sticky')";
                     }
 
index a90233b3258e7b9ac73ad63412d535b90aae1c05..77653a0f7481861a75b64b083e042c10ded965d5 100644 (file)
@@ -29,7 +29,7 @@ class serendipity_event_livesearch extends serendipity_event
         $propbag->add('description',   PLUGIN_EVENT_LIVESEARCH_DESC);
         $propbag->add('stackable',     false);
         $propbag->add('author',        'Christian Stocker, Garvin Hicking');
-        $propbag->add('version',       '1.0');
+        $propbag->add('version',       '1.3');
         $propbag->add('requirements',  array(
             'serendipity' => '0.8',
             'smarty'      => '2.6.7',
@@ -109,7 +109,7 @@ class serendipity_event_livesearch extends serendipity_event
 
                 case 'quicksearch_plugin':
                     echo '<script type="text/javascript">
-                    lsbase = "' . $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/ls' . ($serendipity['rewrite'] == 'none' ? '&' : '?') . '";
+                    lsbase = "' . $serendipity['baseURL'] . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] . '?/' : '') . 'plugin/ls' . ($serendipity['rewrite'] == 'none' ? '_&' : '?') . '";
                     waittext = "' . PLUGIN_EVENT_LIVESEARCH_WAIT . '";
                     addLoadEvent(liveSearchInit);
                     </script>';
@@ -130,11 +130,6 @@ class serendipity_event_livesearch extends serendipity_event
                     }
 
                     $parts     = explode('_', $uri_parts[0]);
-                    if (!empty($parts[1])) {
-                        $param     = (int) $parts[1];
-                    } else {
-                        $param     = null;
-                    }
 
                     switch($parts[0]) {
                         case 'ls-js':
@@ -145,15 +140,18 @@ class serendipity_event_livesearch extends serendipity_event
                         case 'ls':
                             $res = serendipity_searchEntries($_REQUEST['s']);
 
+                            echo '<?xml version="1.0" encoding="utf-8" ?>';
+                            echo '<div class="serendipity_livesearch_result">';
+
                             if (is_array($res) && count($res) > 0) {
-                                echo '<?xml version="1.0" encoding="utf-8" ?>';
-                                echo '<div class="serendipity_livesearch_result">';
                                 foreach($res AS $id => $entry) {
                                     echo '<div class="serendipity_livesearch_row"><a href="' . serendipity_archiveURL($entry['id'], $entry['title'], 'baseURL') . '">' . htmlspecialchars($entry['title']) . '</a></div>';
                                 }
-                                echo '</div>';
+                            } else {
+                                echo '<div class="serendipity_livesearch_row">' . print_r($res, true) . '</div>';
                             }
 
+                            echo '</div>';
                             break;
                     }
 
index 0295eeade1d75753427e59b5c59b53d6a31de363..460d245b6569e895598f7639da1f6bfd481c772d 100644 (file)
@@ -80,7 +80,7 @@ switch ($serendipity['GET']['step']) {
         }
 
         $file           = serendipity_fetchImageFromDatabase($serendipity['GET']['image']);
-        $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
+        $file['imgsrc'] = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $file['path'] . $file['name'] . '.' . $file['thumbnail_name'] . '.' . $file['extension'];
         if ($file['hotlink']) {
             $imgName    = $file['path'];
         } else {
index fdbab1ce80455b9bf0424ef7b403ee50baa75227..782c680c69cabbcf89bb4723874ed701ee753d66 100644 (file)
@@ -21,7 +21,7 @@ if (IS_installed === true && !defined('IN_serendipity')) {
 include_once(S9Y_INCLUDE_PATH . 'include/compat.inc.php');
 
 // The version string
-$serendipity['version']         = '0.8.5-dev';
+$serendipity['version']         = '0.8.5';
 
 // Name of folder for the default theme
 $serendipity['defaultTemplate'] = 'default';
@@ -194,11 +194,17 @@ if (defined('IN_installer') && IS_installed === false) {
  *   include path
  */
 if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php')) {
-    include_once($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php');
+    $local_config = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/serendipity_config_local.inc.php';
 } elseif (file_exists($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php')) {
-    include_once($serendipity['serendipityPath'] . '/serendipity_config_local.inc.php');
+    $local_config = $serendipity['serendipityPath'] . '/serendipity_config_local.inc.php';
 } else {
-    include_once(S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php');
+    $local_config = S9Y_INCLUDE_PATH . '/serendipity_config_local.inc.php';
+}
+
+if (is_readable($local_config)) {
+    include_once($local_config);
+} else {
+    serendipity_die(sprintf(INCLUDE_ERROR, $local_config));
 }
 
 define('IS_up2date', version_compare($serendipity['version'], $serendipity['versionInstalled'], '<='));
index 4918d3026c24c574f7454f8d7cf4bf31d4122ae2..f4003b20b541dacb07fe51accb5dd4c7f65b1ca9 100644 (file)
@@ -139,12 +139,14 @@ function serendipity_imageSelector_addToElement (str, el)
 {
     document.getElementById(el).value = str;
     document.getElementById(el).focus();
-    document.getElementById(el).onchange();
+       if (document.getElementById(el).onchange) {
+           document.getElementById(el).onchange();
+    }
 }
 
 function serendipity_imageSelector_addToBody (str, textarea)
 {
-    document.forms['serendipityEntry']['serendipity['+ textarea +']'].value += str;
+       wrapSelection(document.forms['serendipityEntry']['serendipity['+ textarea +']'], str, '');
     document.forms['serendipityEntry']['serendipity['+ textarea +']'].focus();
 }