kink | 8 Feb 13:11
Picon
Gravatar

SF.net SVN: squirrelmail:[14277] trunk/squirrelmail/plugins/mail_fetch/ functions.php

Revision: 14277
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14277&view=rev
Author:   kink
Date:     2012-02-08 12:11:18 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
hex2bin is introduced in PHP 5.4

Modified Paths:
--------------
    trunk/squirrelmail/plugins/mail_fetch/functions.php

Modified: trunk/squirrelmail/plugins/mail_fetch/functions.php
===================================================================
--- trunk/squirrelmail/plugins/mail_fetch/functions.php	2012-02-08 12:09:10 UTC (rev 14276)
+++ trunk/squirrelmail/plugins/mail_fetch/functions.php	2012-02-08 12:11:18 UTC (rev 14277)
@@ -312,18 +312,21 @@
 // end of hooked functions

 /**
- * hex2bin - document me
+ * hex2bin - convert a hexadecimal string into binary
+ * Exists since PHP 5.4.
  */
-function hex2bin( $data ) {
+if ( ! function_exists('hex2bin') ) {
+    function hex2bin( $data ) {

-    /* Original code by josh@... */
+        /* Original code by josh@... */
(Continue reading)

kink | 8 Feb 13:09
Picon
Gravatar

SF.net SVN: squirrelmail:[14276] branches/SM-1_4-STABLE/squirrelmail/ plugins/mail_fetch/functions.php

Revision: 14276
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14276&view=rev
Author:   kink
Date:     2012-02-08 12:09:10 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
in PHP 5.4, hex2bin() exists and a fatal error is triggered when redeclaring

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/functions.php

Modified: branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/functions.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/functions.php	2012-02-07 23:05:36
UTC (rev 14275)
+++ branches/SM-1_4-STABLE/squirrelmail/plugins/mail_fetch/functions.php	2012-02-08 12:09:10
UTC (rev 14276)
@@ -92,15 +92,20 @@
     return '';
 }

-function hex2bin( $data ) {
-    /* Original code by josh@... */
+/** 
+ * hex2bin() only exists since PHP 5.4
+ */
+if ( ! function_exists('hex2bin') ) {
+    function hex2bin( $data ) {
+        /* Original code by josh@... */
(Continue reading)

pdontthink | 8 Feb 00:05
Picon

SF.net SVN: squirrelmail:[14275] trunk/squirrelmail/functions/strings.php

Revision: 14275
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14275&view=rev
Author:   pdontthink
Date:     2012-02-07 23:05:36 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
Spelling mistake

Modified Paths:
--------------
    trunk/squirrelmail/functions/strings.php

Modified: trunk/squirrelmail/functions/strings.php
===================================================================
--- trunk/squirrelmail/functions/strings.php	2012-02-07 23:04:45 UTC (rev 14274)
+++ trunk/squirrelmail/functions/strings.php	2012-02-07 23:05:36 UTC (rev 14275)
@@ -1542,7 +1542,7 @@
   * @param boolean $force_generate_new When TRUE, a new token will
   *                                    always be created even if current
   *                                    configuration dictates otherwise
-  *                                    (OPTION; default FALSE)
+  *                                    (OPTIONAL; default FALSE)
   *
   * @return string A security token
   *

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

------------------------------------------------------------------------------
(Continue reading)

pdontthink | 8 Feb 00:04
Picon

SF.net SVN: squirrelmail:[14274] branches/SM-1_4-STABLE/squirrelmail/ functions/strings.php

Revision: 14274
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14274&view=rev
Author:   pdontthink
Date:     2012-02-07 23:04:45 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
Spelling mistake

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/functions/strings.php

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/strings.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/strings.php	2012-02-07 22:51:58 UTC (rev 14273)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/strings.php	2012-02-07 23:04:45 UTC (rev 14274)
@@ -1344,7 +1344,7 @@
   * @param boolean $force_generate_new When TRUE, a new token will
   *                                    always be created even if current
   *                                    configuration dictates otherwise
-  *                                    (OPTION; default FALSE)
+  *                                    (OPTIONAL; default FALSE)
   *
   * @return string A security token
   *

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

------------------------------------------------------------------------------
(Continue reading)

pdontthink | 7 Feb 23:51
Picon

SF.net SVN: squirrelmail:[14273] trunk/squirrelmail

Revision: 14273
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14273&view=rev
Author:   pdontthink
Date:     2012-02-07 22:51:58 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
Better performance by reducing token usage to only one at a time (also added an option to revert to old
behavior if desired)

Modified Paths:
--------------
    trunk/squirrelmail/doc/ChangeLog
    trunk/squirrelmail/functions/strings.php

Modified: trunk/squirrelmail/doc/ChangeLog
===================================================================
--- trunk/squirrelmail/doc/ChangeLog	2012-02-07 22:50:13 UTC (rev 14272)
+++ trunk/squirrelmail/doc/ChangeLog	2012-02-07 22:51:58 UTC (rev 14273)
@@ -372,6 +372,7 @@
   - Unified address book searches somewhat: file-backed address books now
     search in each field individually; database-backed address books now
     search in fields other than first/last name (nickname, email)
+  - Made performance improvements in security token handling

 Version 1.5.1 (branched on 2006-02-12)
 --------------------------------------

Modified: trunk/squirrelmail/functions/strings.php
===================================================================
--- trunk/squirrelmail/functions/strings.php	2012-02-07 22:50:13 UTC (rev 14272)
(Continue reading)

pdontthink | 7 Feb 23:50
Picon

SF.net SVN: squirrelmail:[14272] branches/SM-1_4-STABLE/squirrelmail

Revision: 14272
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14272&view=rev
Author:   pdontthink
Date:     2012-02-07 22:50:13 +0000 (Tue, 07 Feb 2012)
Log Message:
-----------
Better performance by reducing token usage to only one at a time (also added an option to revert to old
behavior if desired)

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog
    branches/SM-1_4-STABLE/squirrelmail/functions/strings.php

Modified: branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog	2012-02-05 02:25:24 UTC (rev 14271)
+++ branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog	2012-02-07 22:50:13 UTC (rev 14272)
@@ -36,6 +36,7 @@
     rendering mode" setting in the configuration tool (#3240356).
   - Added "search_index_before" hook (analog of the "mailbox_index_before"
     hook)
+  - Made performance improvements in security token handling

 Version 1.4.22 - 12 July 2011
 -----------------------------

Modified: branches/SM-1_4-STABLE/squirrelmail/functions/strings.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/strings.php	2012-02-05 02:25:24 UTC (rev 14271)
(Continue reading)

pdontthink | 5 Feb 03:25
Picon

SF.net SVN: squirrelmail:[14271] trunk/documentation/devel/devel.sgml

Revision: 14271
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14271&view=rev
Author:   pdontthink
Date:     2012-02-05 02:25:24 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Update compose_form hook docs to match info in compose.php source file

Modified Paths:
--------------
    trunk/documentation/devel/devel.sgml

Modified: trunk/documentation/devel/devel.sgml
===================================================================
--- trunk/documentation/devel/devel.sgml	2012-02-05 00:36:21 UTC (rev 14270)
+++ trunk/documentation/devel/devel.sgml	2012-02-05 02:25:24 UTC (rev 14271)
@@ -1777,6 +1777,15 @@
 $compose_onsubmit[] = ' if (somevar == \'no\') { alert(\\"Sorry\\"); return false; }';
 </verb></tscreen>

+Also, plugin authors should try to retain compatibility with the Compose Extras
+plugin by resetting its compose submit counter when preventing form submit.  Use
+this JavaScript code:
+
+<tscreen><verb>
+global $compose_onsubmit;
+$compose_onsubmit[] = ' if (your-code-goes-here) { submit_count = 0; return false; }';
+</verb></tscreen>
+
 Any other form tag additions by a plugin (beside <tt/onsubmit/ event code) can
(Continue reading)

pdontthink | 5 Feb 01:36
Picon

SF.net SVN: squirrelmail:[14270] trunk/documentation/devel/devel.sgml

Revision: 14270
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14270&view=rev
Author:   pdontthink
Date:     2012-02-05 00:36:21 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Add new search_index_before hook

Modified Paths:
--------------
    trunk/documentation/devel/devel.sgml

Modified: trunk/documentation/devel/devel.sgml
===================================================================
--- trunk/documentation/devel/devel.sgml	2012-02-05 00:35:55 UTC (rev 14269)
+++ trunk/documentation/devel/devel.sgml	2012-02-05 00:36:21 UTC (rev 14270)
@@ -1613,6 +1613,7 @@
 <tt/login&lowbar;verified/|<tt>src/redirect.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
 <tt/right&lowbar;main&lowbar;after&lowbar;header/|<tt>src/right&lowbar;main.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
 <tt/right&lowbar;main&lowbar;bottom/|<tt>src/right&lowbar;main.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
+<tt/search&lowbar;index&lowbar;before/|<tt>src/search.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
 <tt/search&lowbar;before&lowbar;form/|<tt>src/search.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
 <tt/search&lowbar;after&lowbar;form/|<tt>src/search.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@
 <tt/search&lowbar;bottom/|<tt>src/search.php</tt>|<tt/do&lowbar;hook()/|&nbsp;@

This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
(Continue reading)

pdontthink | 5 Feb 01:35
Picon

SF.net SVN: squirrelmail:[14269] branches/SM-1_4-STABLE/squirrelmail

Revision: 14269
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14269&view=rev
Author:   pdontthink
Date:     2012-02-05 00:35:55 +0000 (Sun, 05 Feb 2012)
Log Message:
-----------
Add search_index_before hook so search screen behaves more like right_main

Modified Paths:
--------------
    branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog
    branches/SM-1_4-STABLE/squirrelmail/src/search.php

Modified: branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog	2012-02-03 07:45:57 UTC (rev 14268)
+++ branches/SM-1_4-STABLE/squirrelmail/doc/ChangeLog	2012-02-05 00:35:55 UTC (rev 14269)
@@ -34,6 +34,8 @@
     standards) - see the $browser_rendering_mode setting in
     config/config.php or the "4. General Options ==> 19. Browser
     rendering mode" setting in the configuration tool (#3240356).
+  - Added "search_index_before" hook (analog of the "mailbox_index_before"
+    hook)

 Version 1.4.22 - 12 July 2011
 -----------------------------

Modified: branches/SM-1_4-STABLE/squirrelmail/src/search.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/src/search.php	2012-02-03 07:45:57 UTC (rev 14268)
(Continue reading)

pdontthink | 3 Feb 08:45
Picon

SF.net SVN: squirrelmail:[14268] trunk/locales

Revision: 14268
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14268&view=rev
Author:   pdontthink
Date:     2012-02-03 07:45:57 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
Updating translation template for version 3.0 of Autocomplete plugin

Modified Paths:
--------------
    trunk/locales/doc/plugin-tracker.txt
    trunk/locales/po/autocomplete.pot

Modified: trunk/locales/doc/plugin-tracker.txt
===================================================================
--- trunk/locales/doc/plugin-tracker.txt	2012-02-03 07:07:46 UTC (rev 14267)
+++ trunk/locales/doc/plugin-tracker.txt	2012-02-03 07:45:57 UTC (rev 14268)
@@ -51,7 +51,7 @@
 askuserinfo                 1.0         2   Y-BAD (NOT TRANSLATED) (v1.1 unfixed)
 attachment_common           2.2         -   N (OBSOLETE)
 attachment_doc              1.2         1   Y-BAD (tarball missing .pot file; locale directory incorrectly formatted)
-autocomplete                2.0         3   Y-BAD (incorrectly uses sm domain)
+autocomplete                3.0         2   Y
 autorespond                 0.5.1       -   N (strings in config file; tarball missing .pot file; possible rtl issues)
 autosubscribe               1.1         -   N (no translatable strings)
 auto_cc                     2.0         3   Y-BAD (incorrectly uses sm domain; tarball missing .pot file)

Modified: trunk/locales/po/autocomplete.pot
===================================================================
--- trunk/locales/po/autocomplete.pot	2012-02-03 07:07:46 UTC (rev 14267)
(Continue reading)

pdontthink | 3 Feb 08:07
Picon

SF.net SVN: squirrelmail:[14267] trunk/locales

Revision: 14267
          http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=14267&view=rev
Author:   pdontthink
Date:     2012-02-03 07:07:46 +0000 (Fri, 03 Feb 2012)
Log Message:
-----------
Move Autocomplete translations to correct place; version 3.0 uses translations in correct manner

Added Paths:
-----------
    trunk/locales/locale/de_DE/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/fy/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/id_ID/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/km/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/lt_LT/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/nl_NL/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/nn_NO/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/sv_SE/LC_MESSAGES/autocomplete.po
    trunk/locales/locale/vi_VN/LC_MESSAGES/autocomplete.po
    trunk/locales/po/autocomplete.pot

Removed Paths:
-------------
    trunk/locales/locale/de_DE/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/fy/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/id_ID/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/km/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/lt_LT/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/nl_NL/LC_MESSAGES/extra/autocomplete.po
    trunk/locales/locale/nn_NO/LC_MESSAGES/extra/autocomplete.po
(Continue reading)


Gmane