Register
phpBB.com Wiki · Home Projects Help

root / trunk / phpBB / includes / functions_privmsgs.php

functions_privmsgs.php

View | Annotate | Download (53.2 KB)

# Date Author Comment
8996 View | Annotate 10/10/2008 07:58 PM toonarmy

Merging r8993, r8994, r8995

8968 View | Annotate 10/02/2008 02:05 PM acydburn

[Change] Remove NUL-Bytes directly in request_var() for strings and within the custom DBAL sql_escape() functions (MSSQL, Firebird, Oracle) (reported by AdhostMikeSw)

8952 View | Annotate 09/27/2008 01:45 PM toonarmy

Merge in r8940, r8941, r8942, r8945, r8946, r8947, r8949, r8950, r8951

8891 View | Annotate 09/19/2008 05:42 PM acydburn

Correctly delete message attachments. (Bug #23755) Also revamped and simplified delete_attachments() – it looks like we did not touch it for a long long time.

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.

8570 View | Annotate 05/26/2008 02:05 PM acydburn

merge

8526 View | Annotate 04/21/2008 05:10 PM acydburn

merge again, revisions 8516 to 8525

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

Go away evil carriage returns\!

8351 View | Annotate 01/30/2008 05:14 PM acydburn

merge with revision #r8350

8231 View | Annotate 11/07/2007 11:45 AM acydburn

- fix pm not_moved/removed retrieval (it was switched)
- cache db-size retrieval (saves a lot of seconds for very large boards)

8229 View | Annotate 11/06/2007 12:15 PM acydburn

- fix images off, css on problem for post/reply buttons
- changed calculating new/unread pm count to no longer rely on code logic, but apply all rules, operate on messages and then re-calculating after delivery.

8204 View | Annotate 10/19/2007 03:10 PM acydburn

fixing some annoying bugs

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

dumdidum… sorry. ;)

8092 View | Annotate 09/18/2007 04:49 PM acydburn

some fixes. :P
- language authors may review their email template files…

8079 View | Annotate 09/05/2007 03:33 PM acydburn

fixing some language and style bugs…

8061 View | Annotate 08/21/2007 05:09 PM acydburn

- make sure the copyright/disclaimer is consistent
- two fixes…

8050 View | Annotate 08/19/2007 03:40 PM naderman

- BBCode parsing order should ALWAYS be censor_text(), bbcode_secon_pass(), bbcode_nl2br(), smiley_text(), parse_attachments()
- using \r on custom bbcodes to allow line breaks [Bug #10758]

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…

7960 View | Annotate 07/27/2007 07:01 PM kellanved

#13791 – I hope this works :D

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

again, a lot of bug 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!)

7735 View | Annotate 06/09/2007 10:31 AM acydburn

fixing bug #12283 which is a fix for the fix in #12135
- hopefully now working for both…

7725 View | Annotate 06/08/2007 10:26 AM acydburn

fix bug #12135 with the patch provided by APTX

7685 View | Annotate 05/26/2007 04:23 PM naderman

- Send stylesheet in style.php even without a valid session id [Bug #11531]
- request_var should strictly return the requested number of dimensions
- corrected a character mapping in the search indexing character list, people might want to reindex after this change if they use fulltext_native

7469 View | Annotate 05/05/2007 12:22 PM acydburn

Better support for nested transactions…

7242 View | Annotate 03/30/2007 04:24 PM acydburn

other fixes…

7178 View | Annotate 03/12/2007 08:43 PM acydburn

it could happen that new private messages are wrongly tagged. We try to “repair” this when releasing messages.

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

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

6905 View | Annotate 01/18/2007 03:41 PM acydburn

fixing some bugs

6894 View | Annotate 01/17/2007 07:41 PM acydburn

ok, handled some bugs… the most important being validate_username (the variable passed to validate_data([...]array(‘username’, [...])) and updating group listings while doing relevant group actions. Oh, and PM icons are working now. :o

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

6816 View | Annotate 12/27/2006 06:43 PM acydburn

Unused Code inside function update_forum_data [Bug #6606]
Copy permissions protection for groups [Bug #6594]
HTML issues in ACP [Bug #6580, #6578]
Always send the correct encoding [related to bug #6576]
Mass email fixes for first loop iteration [Bug #6570]
Extension groups to be allowed in PM’s and/or Posts [Bug #6558]
Extension allowance checking clarified (no longer using forum id 0 for private messaging)
Using request_var() array method for some variables [Bug #6556]
Added confirmation for deletion of ranks/smilies/icons/word censores [Bug #6548, #6530, #6512, #6466]
Only show postable forums in dropdown list for moving posts on forum deletion as well as correct re-indexing [Bug #6510, #6476, #6384]
Jabber password being password field in jabber settings screen [Bug #6478]
user activity language variable if viewing not own profile [Bug #6432]
Show moderator group/user-name colour [Bug #6402]
Log rank creation/updating/removing [Bug #6398]
Update check permission changed from a_ to a_board [Bug #6392]

6702 View | Annotate 12/03/2006 05:12 PM acydburn

some tiny bugfixes.

6660 View | Annotate 11/26/2006 03:55 PM acydburn

- bug fixes for #5618, #5588 and #5584
- remove messenger->reset() calls (they are already performed on sending)

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

6628 View | Annotate 11/21/2006 07:15 PM acydburn

- fixing a bunch of bugs
- moved the install trigger error to sessions and also disabled it for those having DEBUG_EXTRA enabled.
i hope not having introduced too many new bugs.

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)

6545 View | Annotate 11/03/2006 12:26 PM acydburn

- implemented the suggested html_entity_decode function made by david
- fixed string length checking by also decoding entities for the sake of checking
- used the new html_entity_decode function

6497 View | Annotate 10/14/2006 04:56 PM acydburn

- store sql_layer directly within the layer itself
- new method sql_multi_insert to circumvent db-specific hacks
(hopefully not introduced any parsing errors)

6414 View | Annotate 09/28/2006 05:04 PM acydburn

- added confirmation to removing bbcodes
- added optional MX and DNSBL checks
- added backtrace (triggering sql error) on error within sql_in_set as well as making sure it is handling an array
- let users having f_list access to a forum actually see the forum without a topic list and not displaying an error message – this allows for giving people access to subforums but not the parent forum without the need to add the (sub-)forum to the index.
- some additional bugfixes

6411 View | Annotate 09/26/2006 09:59 PM acydburn

These changes should let olympus scale a little bit better.
i haven’t adjusted the schemas but added the details to create_schema_files – david is able to build them then in line with his changes. :)

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]

6364 View | Annotate 09/13/2006 06:08 PM acydburn

- fixed some bugs
- changed attachment handling a bit
- tried to remove target tags out of the code
- do not add session ids to urls for bots as well as not creating a new session on each page view for them

I bet i introduced some bugs too. ;)

6353 View | Annotate 09/05/2006 11:22 AM acydburn

oh, forgot one thing

6342 View | Annotate 09/01/2006 03:16 PM acydburn

fix some bugs – hopefully not breaking anything…

6271 View | Annotate 08/12/2006 03:14 PM acydburn

sql_in_set changes

6238 View | Annotate 08/06/2006 07:52 AM davidmj

This should end some issues we have been having regarding the proper binary encoding of stuff. :D
Acyd Burn: quit breaking the schema :P

6232 View | Annotate 08/03/2006 05:23 PM acydburn

- custom profile field fixed
- fixing sql_fetchfield from cache
- changing the quote parser. In my tests i have not seen changed behaviour – but i might have broken something with this change.

6209 View | Annotate 07/24/2006 12:08 PM davidmj

OK…

This commit should increase the total number of BBCodes from 31 to 2040. Some things to watch out for:

Each database likes to deal with binary data in its own, special way. They are, quite frankly, too cool for school.

MySQL, MSSQL and Oracle all allow me to send in a default value for their binary column using a hex number. However, MSSQL forces me to send the specific data as a hex number and thus we must CAST it.

PostgreSQL allows me to set a binary column, but with a twist. It demands that the default be in octal and its datatype allows somewhere around a gigabyte’s worth of BBCodes ( PGSQL users, we shut you down to 2040 for your own good! )

Firebird has no decent mechanism for allowing me to shuttle in binary data so I must force my way in. By virtue of triggers and a UDF, we ram in our default values.

SQLite is the most bizarre of them all. They have no mechanism for turning an ASCII code into a ASCII character. Because of this, we have a trigger and a UDF (just like Firebird!) but with a twist! The UDF is defined on the PHP side of things instead of SQL. SQLite also demands that it’s data be encoded before being sent off.

Other notes:
- SQLite installs again :D
- Firebird nearly installs again :P
- Database backup is not screwed up :P

P.S.
I hope nothing broke :D

6177 View | Annotate 07/13/2006 02:51 PM acydburn

- renamed the following columns:
comment -> attach_comment
new, forwarded, unread, marked, deleted -> pm_new, pm_forwarded, pm_unread, pm_marked, pm_deleted
module_name -> module_basename
value -> lang_value

- every column is now NOT NULL
- every column is now having a DEFAULT value
- hopefully mostly consistent across every db schema
- untested schemas: sqlite, oracle, firebird

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

time to squash some bugs

6104 View | Annotate 06/19/2006 11:30 PM acydburn

some bugfixes

6081 View | Annotate 06/17/2006 01:28 PM acydburn

fix bugs #2271 and #2273

6055 View | Annotate 06/13/2006 05:06 PM acydburn

- added class=”radio” to all radio- and checkboxes
- make sure the database gets closed correctly in cron.php
- bugfixes

6054 View | Annotate 06/13/2006 12:16 AM acydburn

- get swatch converted into new acp format
- add page title to ucp pages
- add ability to supress getting the who is online list in page_header() (saves us ideally 1-2 queries on ucp/mcp pages)
- fixing pm rules a bit as well as now having complete author memberships for author_in_group (sender -> is in usergroup -> xxx)

6017 View | Annotate 06/07/2006 10:44 AM acydburn

#2109

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.

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

some tiny changes…

5952 View | Annotate 05/20/2006 08:39 PM acydburn

- fixed a few smaller things

5931 View | Annotate 05/18/2006 11:03 PM acydburn

- fixing a few tiny bugs
- added new function to (re)apply sids where needed (login and mcp quickmod) – #1829

5902 View | Annotate 05/12/2006 10:52 PM acydburn

- introduce new function build_url to easily build a valid url from the user->page object as well as optionally removing certain keys
- changed attachment config to utilize the config build methods
- cleaned up posting.php
- the submit/delete_post functions are now usable (functions_posting.php)
- adjusted header icons (transparency)
- a bunch of fixes for mssql
- bug fixes

5880 View | Annotate 05/04/2006 07:20 PM acydburn

fix bug #1736

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

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

5768 View | Annotate 04/08/2006 03:06 PM acydburn

groupcp.php no longer exist (#1442)

5765 View | Annotate 04/06/2006 07:15 PM acydburn

To all people having their bug status set to fixed: SF pserver CVS access is currently down, therefore the snapshots are still out of date.

- fix a bunch of bugs
- <!- $Id$ -> is no longer allowed in template (.html) files
- changed layout of private message screens (folders are menu items)
- removed unread mode for private messages
- added new feature to template engine – “jump out of loop” or “loop another loop within my loop” :D (will be documented within the coding guidelines)
- added autologin field to sessions
- check session length checks
- added add_log statement to sessions to track session valid to invalid changes if ip/browser change depending on config settings (only debug)
- added multibyte support for various variables (exception at the moment is usernames which needs some discussion)
- hopefully not broke something. :/

5721 View | Annotate 03/25/2006 05:10 PM acydburn

do not ask why i put the pm table there instead of the polls. :o
- remove forum description from title tag (now it’s able to hold bbcode etc. resulting in broken layout)

5699 View | Annotate 03/22/2006 06:30 PM acydburn

adjusting sql_freeresult a bit as well as our error handler (it now prints out if it is because of DEBUG_EXTRA being defined – which is not enabled within the betas/rc’s and stable releases).

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

- a bunch of bugfixes. :P

5670 View | Annotate 03/19/2006 03:23 PM acydburn

- add our beloved in_phpbb check

5630 View | Annotate 03/14/2006 09:32 PM grahamje
  • empty log message *
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

5603 View | Annotate 03/06/2006 03:03 PM acydburn

- added “display_on_posting” setting to custom bbcodes (creates a button with the bbcode tag)
- fixed forum editing and parent id selection
- completely removed HTML support (it only creates security problems)
- changed cache_moderators() to reflect permission changes

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

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

5255 View | Annotate 10/04/2005 11:39 PM acydburn

- some bugfixes

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

5201 View | Annotate 08/19/2005 12:55 PM acydburn

hidden fields adjustments

5151 View | Annotate 05/15/2005 10:08 PM acydburn

- fixed url parsing ([] breakage)

5139 View | Annotate 05/01/2005 03:15 PM acydburn

- some private message fixes

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

5084 View | Annotate 01/28/2005 12:38 PM bartvb

Only send PM notification if the user wants to receive one

5068 View | Annotate 01/20/2005 09:57 PM acydburn

- bugfixes
- default sort options for posts too
- adjusted format_date to remove the (time intensive) preg_ calls
- temporary style.php code.

5048 View | Annotate 01/07/2005 12:03 AM acydburn

- merged getting of unread pm count function to get_folder function
- made folder usable within the template (especially custom folder)

5032 View | Annotate 12/12/2004 03:07 PM acydburn

- fix attachment mod errors
- make upload path consistent with all other 2.2 path settings
- fix “post title wrong after split” bug

4997 View | Annotate 10/08/2004 01:04 PM acydburn

- fixed move_pm and delete_pm

4984 View | Annotate 09/16/2004 08:33 PM acydburn

- more updates, mostly bugfixes to the bbcode parser
- changed current_user in sessions (please review)
- give more flexibility to style authors in regard to the pagination elements
- profile fields updates (included a sample constuct into viewtopic_body.html – have to be documented extensivly)
- code optimizations (use of strpos, sizeof, loops not iterating functions on every call, memory savings…)
- and last but not least - hopefully not introduced more bugs than healthy (cough)

4981 View | Annotate 09/05/2004 05:45 PM acydburn

- re-enable polls (user is now able to decide if users are able to change votes if this feature is enabled within the given forum)

4980 View | Annotate 09/05/2004 11:59 AM acydburn

dumdidumdidum

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

4920 View | Annotate 07/09/2004 12:41 AM acydburn

- remove output buffering options from download.php (not needed anymore)
- optimized viewtopic.php a little bit
- removed the create_function (was consuming too much memory) from viewtopic
- check for manually added convert[.exe] program name to imagemagick path in admin_attachments
- reduced filesize checking for imagemagick program (some installations require less than 20k)
- added checked=”checked” for “not selected” topic icon
- moved parse_text_display function from functions_posting.php to functions.php (see comment above function)
- check for user_id != ANONYMOUS in page_footer for displaying the administration link (there seems to be a problem checking for global options)
- rewrote attachment thumbnail functions – utilize GD2 functions if available, more uptodate checks…
- changed final thumbnail size calculation
- define S_ROW_COUNT within template class itself
- added SID to template vars in page_header
- added ability to view topic/forum within admin_viewlogs
- added optional acl checking to make_jumpbox, no need to duplicate the function for this small need
- added custom body file for confirm_box

4908 View | Annotate 06/02/2004 08:07 PM acydburn

- private messages – not finished yet.