Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / functions_messenger.php

functions_messenger.php

View | Annotate | Download (35.7 KB)

# Date Author Comment
8972 View | Annotate 10/06/2008 07:52 AM acydburn

merge r8970 and r8971

8781 View | Annotate 08/22/2008 03:32 PM acydburn

Merge chmod changes into trunk

8573 View | Annotate 05/29/2008 02:28 PM acydburn

i am very sorry… i played a bit… :(

8572 View | Annotate 05/29/2008 02:25 PM acydburn

ok… i hope i haven’t messed too much with the code and everything is still working.
Changes:
- Ascraeus now uses constants for the phpbb root path and the php extension. This ensures more security for external applications and modifications (no more overwriting of root path and extension possible through insecure mods and register globals enabled) as well as no more globalizing needed.
- A second change implemented here is an additional short-hand-notation for append_sid(). It is allowed to omit the root path and extension now (for example calling append_sid(‘memberlist’)) – in this case the root path and extension get added automatically. The hook is called after these are added.

8477 View | Annotate 03/29/2008 01:08 AM naderman

Go away evil carriage returns\!

8452 View | Annotate 03/18/2008 03:47 PM acydburn

merging… again

8295 View | Annotate 01/03/2008 06:00 PM davidmj

oh boy…
- Migrate code base to PHP 5.1+

8241 View | Annotate 11/17/2007 09:04 PM acydburn

some further fixes
- re-introduce grabbing random number from /dev/urandom

8232 View | Annotate 11/10/2007 05:19 PM acydburn

fixing tiny bugs

8146 View | Annotate 10/05/2007 04:30 PM acydburn

dumdidum… sorry. ;)

8090 View | Annotate 09/14/2007 04:06 PM acydburn

- correct jabber token handling
- undisclosed-recipients:; instead of undisclosed-recipient:;
- PM details button should not be there

8075 View | Annotate 09/02/2007 07:24 PM acydburn

fixing some bugs

8034 View | Annotate 08/16/2007 01:28 PM acydburn

- two new packages… diff and utf
- only 60 chars for topic title if new post (please see changelog for explanation)
- change utf8_wordwrap (had some bugs david and nils spotted – was not really functional, sorry for this. :D)

8033 View | Annotate 08/15/2007 07:32 PM acydburn

some bugs fixed

8025 View | Annotate 08/13/2007 02:14 PM acydburn

Some changes… non-invasive…

7909 View | Annotate 07/19/2007 10:38 PM acydburn

again, a lot of bug fixes

7830 View | Annotate 07/03/2007 05:36 PM acydburn

let’s see if i can break something. :o

7813 View | Annotate 06/30/2007 05:04 PM acydburn

some fixes…

7736 View | Annotate 06/09/2007 01:11 PM acydburn

ok, mess around with the templates + fixing some bugs + adjusting headers for those files already modified to circumvent conflicts for those having their editor set to remove trailing spaces (not recommended!)

7689 View | Annotate 05/26/2007 08:20 PM acydburn

oi^2

7687 View | Annotate 05/26/2007 06:38 PM acydburn

hopefully not too late in the game. Checked in new jabber class (the class done by the flyspray project). It would be nice if this could be tested with more servers – jabber.org seems to work fine…
- other fixes

7631 View | Annotate 05/18/2007 04:33 PM acydburn

Disable DEBUG by default, enable backtrace by default

7231 View | Annotate 03/25/2007 06:05 PM davidmj

:(

7230 View | Annotate 03/25/2007 05:58 PM davidmj

fopen + fread + fclose -> file_get_contents

7007 View | Annotate 02/18/2007 02:42 PM acydburn

fixing some bugs
more mcp links for easier moderating different aspects (all, forum, topic)
i may have introduced new bugs with this commit due to me having fixed some things weeks ago and some code changed in between – please report if you see something not working as expected.

6977 View | Annotate 02/09/2007 03:31 PM acydburn

those were missing

6930 View | Annotate 01/26/2007 05:09 PM acydburn

- fix some oddities (doubled spaces for example)
- changed the way make_forum_select() is returning the forum list – now including skipped forums but being disabled. This should make identifying the correct forum much more easier.
- Changed some permission namings based on suggestions by the community
- Tried to comply to the permission field ordering within the language files while displaying permission sets. Hopefully it’s worth the additional processing time.
- Disable submit buttons after clicking for installation and conversions.

6915 View | Annotate 01/21/2007 07:33 PM acydburn

fixing some bugs, most being submitted grammatical/spelling errors.

6846 View | Annotate 01/06/2007 08:37 PM acydburn

tiny alterations

6840 View | Annotate 01/05/2007 10:30 AM acydburn

forgot to add true to the var_export function. :(

6839 View | Annotate 01/04/2007 05:07 PM acydburn

- use var_export instead of our format_array function [Bug #6748]
- fix dumb error in column naming [Bug #6750]
- Make sure to catch some special conditions for cpf translation as well as correctly removing/adding default values on language installation/removing [Bug #6752]

6827 View | Annotate 01/01/2007 01:56 PM acydburn

fix typo

6826 View | Annotate 12/31/2006 05:56 PM acydburn

- telling the admin for what the board contact and board email addresses are used for and also making sure this explanation is correct ;)
- fixes for bugs #6694, #6664 and #6662

6803 View | Annotate 12/24/2006 02:11 PM acydburn

some fixes today
- most important change is the consolidation of the display attachment functions; merging them together to have one function we need to call.

6778 View | Annotate 12/17/2006 07:06 PM davidmj

- we need at least 4.3.3, “phpversion() < ‘4.3’” will always be false

6771 View | Annotate 12/16/2006 01:57 PM acydburn

fix for bug #6140 (jabber not working)

6715 View | Annotate 12/06/2006 06:35 PM acydburn

changes to how errors are processed by the messenger

6700 View | Annotate 12/02/2006 05:52 PM davidmj

by the power of math!

6650 View | Annotate 11/24/2006 03:59 PM acydburn

rather large update, most important things done:
- implemented provided patch/diff file for bug #5350 (Highway of Life) with some tiny changes and alterations
- more username/colour changes/fixes
- added a note about PM rule-dependant message removals so the user is not wondering too much if he can’t remember his rules. :)
- some column changes to fix unicode issues
- bugfixes

6642 View | Annotate 11/23/2006 03:54 PM acydburn

davidmj came up with a simpler (and working in all cases!) approach. :) Bow to him…

6640 View | Annotate 11/23/2006 01:44 PM acydburn

do not process if all ASCII

6639 View | Annotate 11/23/2006 12:53 PM acydburn

new mail_encode function to make sure we abide to the rfc but not split in-between of multibyte characters. The used method is not 100% accurate, but a good compromise between compatibility, conformance and performance.

6629 View | Annotate 11/21/2006 07:20 PM acydburn

decrease the barrier for E_ALL error reporting and email traces from DEBUG_EXTRA to DEBUG

6574 View | Annotate 11/12/2006 07:44 PM acydburn

ok, this should work now for mail() and smtpmail. We also removed the newline from the spacer for mail_encode due to php’s mail() function choking up on subjects with newlines.

6565 View | Annotate 11/11/2006 05:20 PM acydburn

seems like capitalizing menu titles introduced some problems. :) Also it might look strange for some languages – so therefore it is better be done within the language file directly.

6564 View | Annotate 11/11/2006 01:24 PM acydburn

let utf8 mails work again. I hope this is not giving problems for “strange” mail setups.

6548 View | Annotate 11/03/2006 10:05 PM acydburn

ok, i am an idiot…

6546 View | Annotate 11/03/2006 06:50 PM acydburn

- make sure the sql layer for mysql always states mysql4 and get to mysql if using mysql < 4
- assign some default vars to email templates (we always need some basic ones)

6478 View | Annotate 10/11/2006 03:48 PM acydburn

some fixes

6436 View | Annotate 10/03/2006 08:35 PM acydburn

- extend config checking to include check for writeable path
- removed not utilized user_allow_email column from schema
- removed inactive groups (they had no use at all, since inactive users are not able to login)
The only benefit those brought are distinguish users – but this is no longer needed too due to the inactive code present. This also allows us to retain group memberships as well as default settings for users being set inactive due to profile changes.
- rewrote user_active_flip to support multiple users and a mode, as well as coping with the aforementioned changes
- implemented updated jabber class to support SRV server records and for better jabberd2 support.
- jabber errors now logged to the error log with a full transaction
- fixed user_delete calls to include usernames where possible and also update last post information correctly
- implemented additioal checks to user management to cope with common mistakes
- On installation, guess the required mysql schema as best as possible. Users now only need to decide if they want to use the mysqli extension or not (mysqli selected by default) and no longer need to know their mysql version.
- founders do not need to re-activate their account on profile changes
- remove older session if re-authentication was successful (re-authentication always assigns a new session id)
- set the cookie directly instead of using php’s function
- added inactive_remind to see which users got deactivated because of reminders (or re-activation) sent out

hopefully not introduced too many bugs – those testing with CVS releases, please concentrate on user registration, activation, profile changes (email/password)...

6389 View | Annotate 09/23/2006 01:10 PM acydburn

made sql_rowseek consistent with the dbal methods as well as fixing sql_query_limit for mssql, especially if sql_query_limit($sql, 0, 0) is given…

6380 View | Annotate 09/18/2006 12:02 AM naderman

- no more encoding mixture, say hello to UTF-8 (I’ll add a validation solution for PHP 4.3.3/4 ASAP) [side effect: fixes Bug #3762]
- take local server time into consideration for birthday/age calculation
- faster active topic search
- allow changing active topic time frame [Bug #4150]
- reload stylesheet on language change [Bug #4222]

6352 View | Annotate 09/04/2006 10:35 PM acydburn

- fix security issue in download.php
- fixing some phpdocumentor warnings/errors
- adjust pop-before-smtp “auth” (nowadays no one should rely on it)
- add backtrace for smtp email errors if DEBUG_EXTRA is enabled

6312 View | Annotate 08/22/2006 11:26 PM acydburn

some updates. Also adjusted the utf tools and normalizer more to our coding guidelines.

6193 View | Annotate 07/20/2006 07:55 PM acydburn

revert a change i made (we already adjust line endings to be rfc-compliant and use \n for the php mail function as suggested by the manual)

6149 View | Annotate 07/06/2006 06:46 PM acydburn

some bugfixes

6114 View | Annotate 06/22/2006 05:14 PM acydburn

time to squash some bugs

6058 View | Annotate 06/13/2006 11:06 PM acydburn

make sure custom profile fields are created correctly on registration (#2225)

6057 View | Annotate 06/13/2006 08:50 PM grahamje

Only create a session if on doesn’t exist. In theory, checking for the presence of a sid should be enough to determine this…..

6048 View | Annotate 06/11/2006 08:13 PM acydburn

- fixed a few bugs
- added user_add() function
- check posted images ([img]) for same domain/scipt and php files
- auth_api.html updated to the coding guidelines look&feel
- introduced ability to force non page-updates (cron is using it)
- correctly resend coppa email

6046 View | Annotate 06/11/2006 01:53 AM naderman

- allow searching for post_count = 0 [Bug #2154]
- better permission check for user search by ip
- permissions for max attachments adjusted

6034 View | Annotate 06/10/2006 01:46 AM naderman

This looks a bit like an ugly hack, I know :(
But hopefully it will solve most of our encoding problems with jabber [Bug #1585]

6015 View | Annotate 06/06/2006 10:53 PM acydburn

ok, this one is rather large… the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different

apart from this, code cleanage, bug fixing, etc.

5973 View | Annotate 05/27/2006 06:24 PM acydburn

- remove description from profile fields
- added disclaimer about DEBUG_EXTRA to the ACP (i think this is needed – some idiots might think it is wise to have this enabled on a production board. :) We may let it there for the Betas though, but it will be removed during the RC’s)
- some bugfixes

5967 View | Annotate 05/26/2006 05:04 PM acydburn

some tiny changes…

5868 View | Annotate 04/30/2006 02:57 PM acydburn

give location for missing email files for better support

5867 View | Annotate 04/30/2006 02:50 PM acydburn

empty is only accepting vars

5866 View | Annotate 04/30/2006 02:19 PM acydburn

- use php_uname(‘n’) instead of posix_uname and HTTP_HOST
- updated the authors file a bit

5859 View | Annotate 04/29/2006 03:14 PM acydburn

reverting changes to the installer
do not introduce a function we never call outside of common.php

5853 View | Annotate 04/27/2006 04:20 PM naderman

- allow searches for multibyte characters in fulltext_native
- use preg_quote safely

5813 View | Annotate 04/21/2006 10:42 PM grahamje

Porting the random number generator code over
Fingers crossed that this doesn’t break anything…. ;-)

5784 View | Annotate 04/15/2006 04:48 PM acydburn

- fixed some bugs
- made sql schemas consistent
- added correct sequences and generators to sql schemas
- extended some rows to hold more data. This solves issues with multibyte characters and too short topic titles, names, etc.
- allow multibyte characters in usernames

5678 View | Annotate 03/21/2006 08:23 PM acydburn

- a bunch of bugfixes. :P

5674 View | Annotate 03/19/2006 11:25 PM naderman

- Bug 1104: fixed a typo ($necoding => $encoding)
- Bug 1139: active_topics now has a button to submit the “Display posts from previous

5628 View | Annotate 03/14/2006 09:13 PM grahamje

A q should be followed by a u ;-)

5622 View | Annotate 03/13/2006 12:19 AM acydburn

- streamlined reports to consist of the feature set we decided upon (Nils, your turn now)
- use getenv instead of $_ENV (with $_ENV the case could be wrong)
- permission fixes (there was a bug arising with getting permission flags – re-added them and handled roles deletion differently)
- implemented max login attempts
- changed the expected return parameters for logins/sessions
- added acp page for editing report/denial reasons
- other fixes here and there

5494 View | Annotate 01/25/2006 10:01 PM acydburn

- moved add_log out of functions_admin (this file should only be included in admin/admin-related pages)
- fixed cookie based topic tracking
- added missing config variables
- other minor things

5403 View | Annotate 12/30/2005 12:09 PM naderman

- mt_srand in unique_id working properly (swapped usec and sec)
- mt_srand in digest_md5 removed

5321 View | Annotate 12/05/2005 07:52 PM acydburn

- mass email

5315 View | Annotate 11/30/2005 06:48 PM acydburn

- added acp_language (language pack management)
- minor adjustments to cope with PHP5.x

5241 View | Annotate 10/02/2005 08:17 PM acydburn

- add even more bugs to the codebase
- changed submit_pm to carry on the from userdata

5194 View | Annotate 08/18/2005 02:44 PM acydburn

- fixing annoying queue bug

5157 View | Annotate 06/10/2005 08:57 PM acydburn

- log removing posts
- fix queue saving if package size is 0
- user memberships (not used atm)

5117 View | Annotate 04/10/2005 08:07 PM acydburn

- added updated coding guidelines
- introduced is_registered and is_bot flags for correct determinition of guest/registered/bot users
- changed bot code to act on useragent || ip

5116 View | Annotate 04/10/2005 01:21 PM acydburn

- fixed custom profile field get/store
- changed tz lang array to hold more descriptive timezones (no more tz+13, dst is a seperate option)
fixed bugs after jabber queue processing (data being escaped differently)

5114 View | Annotate 04/09/2005 02:26 PM acydburn

- Documentation related changes
- added resend activation email dialog
- fixed issue in session code
- log failed/successful admin re-authentication/login
- fixed simple forum dropdown box (used in mcp and posting)

5109 View | Annotate 03/22/2005 12:10 AM acydburn

- and my second attempt

5023 View | Annotate 11/06/2004 03:22 PM acydburn

- a bunch of updates, most of them bbcode related

5003 View | Annotate 10/19/2004 09:26 PM acydburn

- search updates

4979 View | Annotate 09/05/2004 11:54 AM acydburn

lets pm working again.

4978 View | Annotate 09/04/2004 09:32 PM acydburn

my turn to break the forum (and at least pm’s are no longer working – will not last long). HARRRR

4904 View | Annotate 05/31/2004 08:00 PM acydburn

- added delete cookies link
- fixed global announcement links in viewforum
- do not display redirects in link forums as posts in forum overview

4898 View | Annotate 05/26/2004 10:32 PM acydburn

message/mail updates

4836 View | Annotate 02/21/2004 01:47 PM acydburn

- put consoring and smilie processing into functions (we use them all over the place) for better changing and consistency.
- changed docs/AUTHORS to reflect the recent code re-use in functions_messenger.php
- pleasing the users a little bit more by using table constants. :D
- login box if “mode” is not allowed -> posting (thought about trigger_error integration, but we do not need this that often).

4805 View | Annotate 02/07/2004 12:00 PM acydburn

some small changes to mailing again (to better cope with invalid email addresses)

4778 View | Annotate 02/02/2004 02:06 PM psotfx

Wordwrap message

4777 View | Annotate 02/01/2004 10:45 PM acydburn

send mass mail immediatly
mail priority setting added
log session (see Note)

4775 View | Annotate 01/31/2004 08:07 PM acydburn

small change in handling recipients. ;)

4774 View | Annotate 01/31/2004 04:49 PM acydburn

new smtp auth methods. :) Digest MD5 is NOT tested, all others are working fine.

4682 View | Annotate 11/23/2003 11:25 PM acydburn

my attempt to break things…

4600 View | Annotate 10/14/2003 03:30 PM psotfx

opsie

4599 View | Annotate 10/14/2003 03:24 PM psotfx

Don’t trigger_error when connect fails in queue, continue queue processing of next object on email/jabber failure

4595 View | Annotate 10/13/2003 07:41 PM psotfx

Moved queue handling back to common … forgot to introduce session start when error handling … oopsie

4592 View | Annotate 10/13/2003 01:33 AM psotfx

Minor changes

4591 View | Annotate 10/12/2003 10:38 PM psotfx

Add jabber port, ignore queue lock if older than queue_interval … probably means it didn’t complete (this queue business may cause us problems …)

4583 View | Annotate 10/12/2003 05:29 PM psotfx

Updated the various “users of emailer”, fixed issue(!) of jabber using the email address as the uid, blah fixes, blah, blah di blah yakety smackety

4578 View | Annotate 10/12/2003 01:59 PM psotfx

Let’s break lots of things

4558 View | Annotate 10/12/2003 01:59 AM psotfx

oopsie, $fp no longer exists, using lock file instead

4553 View | Annotate 10/12/2003 01:51 AM psotfx

Merge email and IM (jabber) messaging