summaryrefslogtreecommitdiff
path: root/includes/common.inc
Commit message (Collapse)AuthorAge
* - Fixed small glitch in drupal_goto(): somethimes a "&" got appended. PatchDries Buytaert2002-11-29
| | | | by Marco.
* - SID will now only be appended when session.use_trans_sid is set. PatchDries Buytaert2002-11-21
| | | | by Kjartan.
* Patch based on work of Kjartan:Dries Buytaert2002-11-17
| | | | | | | | | | | | | | - Changed cache API. - Fixed caching bug in comment.module. Odd this hasn't been reported yet. - Fixed caching bug in forum.module. - Fixed caching bug in system.module. - Fixed caching bug in block.module. - Simplified caching support in forum.module thanks to improved cache API.
* * Added Jeremy's pager:Dries Buytaert2002-11-09
| | | | | | | | | | | | | | | | | | | | | | | "This is a simple, generic pager for Drupal-CVS. It is designed to be easily themeable and expandable. The code is highly-commented to enhance readability." "Pagers are constructed by combining the provided pieces (all of which can be easily modified to display the text or image you prefer) into your custom pager." * Statistics module fixes by Jeremy: - removed superfluous check for existence of watchdog() - saving changes in admin page displays status and returns same page - no longer return 1971/01/01 in "view statistics" table - switched from "!=" to "<>" in SQL queries for ANSI-SQL compliance - switched from "MAX(timestamp) as timestamp" to "MAX(timestamp) as max_timestamp" moving towards ANSI-SQL compliance. * Added a "theme_item_list" function to format itemized lists. Also changed a couple of modules to take advantage of it. Makes for a more consistent UI.
* - Committed Marco's block rewrite:Dries Buytaert2002-10-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | + Blocks are not longer called if not rendered: major performance improvement. + Fixed some bugs (preview option was broken, path option was broken). + Removed "ascii"-type blocks. + Added permission to for "PHP blocks" + ... NOTES: + You'll want to run "update.php": ALTER TABLE blocks DROP remove; ALTER TABLE blocks DROP name; + You'll want to update your custom modules as well as the modules in the contrib repository. Block function should now read: function *_block($op = "list", $delta = 0) { if ($op == "list") { return array of block infos } else { return subject and content of $delta block } }
* . fixing what I did earlier. Not sure how that happend.Kjartan Mannes2002-10-20
|
* - applying patch from Ax. Bug #389:Kjartan Mannes2002-10-20
| | | | "Notice: Undefined variable: conf" in common.inc on line 779
* - changed format_date to allow W (week of year) in a custom format.Kjartan Mannes2002-10-04
|
* - fixed a bug in module_invoke_all , it will now also add 0's to the resultKjartan Mannes2002-09-27
| | | | array. Thanks Moshe.
* - An attempt to solve drupal_goto() in presence of session IDs.Dries Buytaert2002-08-08
|
* - Made it possible to store arrays in the variables table. Patch by Marco.Dries Buytaert2002-07-06
|
* - A variety of small localization updates. Patch by Ori Folger.Dries Buytaert2002-07-05
|
* - cosmetics mostly.Kjartan Mannes2002-06-15
|
* - added some missing title attributs to links.Kjartan Mannes2002-06-14
|
* - Added missing translations and the like.Dries Buytaert2002-05-31
|
* The default form action (request_uri) didn't escape HTML entities (such as ↵Steven Wittens2002-05-21
| | | | &amp;)
* - more coding style fixes.Kjartan Mannes2002-05-13
|
* - minor cleanupKjartan Mannes2002-05-12
|
* - Fixed typo.Dries Buytaert2002-05-12
|
* - applied Stevens link patch.Kjartan Mannes2002-05-12
| | | | | | - fixed block permissions. - fixed user admin page errors: http://www.drupal.org/node.php?id=173. - cleaned up common.inc a bit: removed format_info, path_img, field_merge.
* - changed block, module and theme config pages to use checkboxes.Kjartan Mannes2002-05-11
| | | | | - coding style clean ups. - fixed taxonomy causing errors.
* - Fixed broken RSS feeds.Dries Buytaert2002-05-05
| | | | | | TODO: + Make l()/lm()/la() urlencode() URLs? + Fix problems with the #-trick in drupal_url()/l().
* - rolling back common.inc. Wasn't supposed to be in the last commit.Kjartan Mannes2002-05-04
|
* - making sure the nodes call filter().Kjartan Mannes2002-05-04
|
* - filter changes part 1. Part 2 tomorrow.Kjartan Mannes2002-05-03
|
* - fixing drupal_url()Kjartan Mannes2002-05-02
|
* - Included Moshe's guidelines on the use of t().Dries Buytaert2002-05-02
|
* Patch by Moshe Weitzman:Dries Buytaert2002-04-27
| | | | | | | | | | | | | | | | | | | | | | | | | - request_uri() behaves on non-apache web servers. i've tested on IIS and apache (many platforms). - modules may now implement the _search_item() hook which overrides the default formatting of search results. modules already can customize which fields are indexed. no module currently uses this hook but externalpage.module expects to do so. - added an optional $attribs argument to l(), lm(), and la() which is an associative array of attributes which are inserted into the <a> tag (feature #146). - drupal_str_replace() is deleted (i had recently added it). i verified that no scripts are currently calling this function. use strtr() or str_replace() instead. - arbitrary elements may be added to the <channel> and <item> blocks of an RSS feed by passing the $args associative array. the core RSS engine is now able to support elements like <cloud> and <catagory> [1] and RSS 1.0[2] [1] http://backend.userland.com/rss092 [2] http://groups.yahoo.com/group/rss-dev/files/namespace.html
* - Made the date strings configurable. Patch by Simon Lindsay.Dries Buytaert2002-04-24
|
* - Bugfix: solve problem with locales being "disabled". Reported by Jerritt,Dries Buytaert2002-04-24
| | | | fixed by Marco.
* - bug fixes:Kjartan Mannes2002-04-22
| | | | | | | | | | * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch.
* - Applied Marco's big patch, including contributions from Moshe:Dries Buytaert2002-04-20
| | | | | | | | | | | | | | | | | | | | | | + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ...
* - Added Marco's long-awaited taxonmy module and patches - a replacementDries Buytaert2002-04-14
| | | | | | | | | | | | | | | | | | | for the meta system. The patches add some extra functionality to the comment system (for example, comments can be set read-only) and fix a couple of small problems. + I integrated the required SQL updates from the varius *.mysql files into the "update.php" script. Upgrading should be easy ... + I did not apply/commit the "user.diff" as requested by Marco ... + I didn't know what to do with "forum.module" and "forum2.module": what do you want me to do with it Marco? Which one should go in? + Can we remove "node_index()" now; both from "node.module" and the themes? + Thanks Marco!
* - made the user information block into two different blocks. One forKjartan Mannes2002-04-02
| | | | | | | | | | | | | | | | login and one for user information. - added link to help in book module (post-patch, see below). - applied various patches: Patch by Greg Tyrelle <greg@tyrelle.net> - tracker module now shows usernames next to comments. Patch by Moshe Weitzman <moshe@wallaware.com> - book module has a more complete help. - added administrative link to export book to html - fixed non book nodes not showing up in trees. Patch by moshe weitzman <weitzman@tejasa.com> - links can be defined in the configuration file.
* - applied search patch.Kjartan Mannes2002-03-05
| | | | | | | | | | | | | | | | - added who is online block. - made weblog module more configurable. - users may now delete their own accounts (Feature #8) - users may now request a password using email address *or* username. formerly required both items to match an account which was onerous. - the link to request a new password is now presented whenever a user fails login. - there is now a confirmation message after submitting edits to your user information. - error messages in user.module may now be stylized by themes. - <hook>_form has a $param setting you can fill with form parameters. - improved wording for a few config settings. - fixed various non-coding standard things.
* - Fixed more than 30 HTML and XML well-formedness errors.Dries Buytaert2002-01-27
|
* - Fixed a typoDries Buytaert2002-01-05
|
* Integrated Marco's generic/improved cache into Drupal. Requires anDries Buytaert2002-01-05
| | | | | | | | | | | | | | | | | | | | SQL update. See below for more details. - Merged the file "cache.inc" into "common.inc". - In addition, I renamed the field 'url' in the cache table to a more generic 'cid' (cache identifier). It's no longer for URLs only. - Made the "cache_set()" function ASNI compliant such that it will play nice with other databases such as Postgres. - Added some extra input checking. - Updated the old caching code in the functions "page_header()" and "page_footer()" to use the new, generic cache API. - Updated "update.php" to make the required SQL changes.
* - import.module:Dries Buytaert2001-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + Improved input filtering; this should make the news items look more consistent in terms of mark-up. + Quoted all array indices: converted all instances of $foo[bar] to $foo["bar"]. Made various other changes to make the import module compliant with the coding style. - theme.inc: + Fixed small XHTML glitch - comment system: + Made it possible for users to edit their comments (when certain criteria are matched). + Renamed the SQL table field "lid" to "nid" and updated the code to reflect this change: this is a rather /annoying/ change that has been asked for a few times. It will impact the contributed BBS/forum modules and requires a tiny SQL update: sql> ALTER TABLE comments CHANGE lid nid int(10) NOT NULL; + Moved most (all?) of the comment related logic from node.php to comment.module where it belongs. This also marks a first step towards removing/reducing "node.php". + Added a delete button to the comment admin form and made it so that Drupal prompts for confirmation prior to deleting a comment from the database. This behavior is similar to that of deleting nodes. + Disabled comment moderation for now. + Some of the above changes will make it easier to integrate the upcomcing mail-to-web and web-to-mail gateways. They are part of a bigger plan. ;) - node system: + Made it so that updating nodes (like for instance updating blog entries) won't trigger the submission rate throttle. + Fixed a small glitch where a node's title wasn't always passed to the $theme->header() function. + Made "node_array()" and "node_object()" more generic and named them "object2array()" and "array2object()". + Moved most (all?) of the comment related logic from node.php to comment.module where it belongs. This also marks a first step towards removing/reducing "node.php". - misc: + Applied three patches by Foxen. One to improve performance of the book module, and two other patches to fix small glitches in common.inc. Thanks Foxen!
* - Merged 3 tiny include files into "common.inc".Dries Buytaert2001-12-27
|
* - Added "query log" functionality to Drupal. Inspired by weitzman'sDries Buytaert2001-12-23
| | | | code/patch.
* Replaed incorrect "<p />" tag in form_item with a better <p> ... </p> ↵Steven Wittens2001-12-20
| | | | combination.
* form_checkbox() was totally broken: a checkbox needs a value on top of being ↵Steven Wittens2001-12-20
| | | | (un)checked. When it is checked, the value is sent as "name=value". When not checked, nothing is sent. Usually a value of "1" will suffice, but I added explicit separate $value and $checked parameters to make sure no mix-up occurs, and to allow more freedom.
* comment.module:Dries Buytaert2001-12-08
| | | | | - small improvements to the comment admin interface. - merged comment.inc and comment.module.
* - Made a small improvement to format_name()Dries Buytaert2001-12-05
|
* Node and book updates:Dries Buytaert2001-12-01
| | | | | | | - Fixed a glitch in the book overview in the admin section. - When updating a book page through the admin section, no new revision is created unless explictely specified. - Improved the usability of the node and book pages a little.
* - fixed pass by reference errors. PHP only allows declaration of &$vars, notKjartan Mannes2001-11-26
| | | | | passing them that way. For more info: http://no.php.net/manual/en/language.references.pass.php
* - Bugfix: when updating a book page, the name of the author did not change.Dries Buytaert2001-11-24
| | | | | | | | | | | | | | - Bugfix: the "Edit comments" part of the node administration pages did not display the correct comments. - Bugfix: somethimes, update in a book page would mess up the book. - Improvement: when "node administrators" update a book page through the "update this book page"-link (like regular users do), their update will be subject to moderation. - Improvement: made some intermediate changes to the filter mechanism. Needs more work.
* - modified node_save so that revisions are not validated using check_input,Kjartan Mannes2001-11-23
| | | | | | | | as this breaks revisions. - modified link_node() to take a third parameter $main, which will be passed on to _link hooks. This lets modules decide which links a node will get when shown on the main page, or when not. - updated themes to use the new syntax.
* - fixed a typo in an English sentence.Dries Buytaert2001-11-12
|