Commit Graph

671 Commits (a5f76cd53ea14ec9bc73a59b6a9d06845d849818)

Author SHA1 Message Date
Dries Buytaert 3e9aabe058 - Moved some CXX checks to a centralized place; less error-prone. 2003-06-14 07:02:32 +00:00
Dries Buytaert d95499bf03 - Bugfix: small Xtemplate fixes. Patch by Ax. (Slightly modified.)
- Bugfix: block patch fix.  Patch by Gerhard.

- Bugfix: fixed broken URL in ping.  Patch by Gerhard.

  (This should fix the problems shown on http://www.blo.gs/info.php?id=1515.)

- Improvement: added better password generator.  Patch #1 by Al.  Fixes bug
  #1935.

- Improvement: performance improvement to the blog module.  Patch by Marco.
2003-06-13 17:34:18 +00:00
Dries Buytaert 1a2576036b - Bugfix: charset fixes/clean-up. Patch #52 by Al.
- Improvement: renamed some theme functions of the forum module for sake of consistency/readability.  Patch #2 by Kristjan.

- Improvement: usability improvements to the Xtemplate theme.  Patch #3 by Kristjan.

- Improvement: CSS'ified the book module pages.  Patch #3 by Al.  (I simplified the "l
ocation" part.  Al's approach gave you a bit more power but I'm not sure anyone wants
to change that.  Besides, this will change as soon we integrate the menu system so I kept it easy for now.)
2003-06-12 17:24:06 +00:00
Dries Buytaert 3b8c99d91e - Bugfix: fixed the CREATE FUNCTION in database.mssql as it needs to be prefixed with GO for some obscure reason. Patch by Kjartan.
- Bugfix: fixed the defaults for blocks in database.mssql so the NOT NULL fields get values.  Patch by Kjartan.

- Bugfix: changed check_form() to use htmlspecialchars() instead of drupal_specialchars() as this caused Drupal to emit incorrect form items in presence of quotes.  Example:

  <input type="submit" class="form-submit" name="op" value="Submit "top nodes" block changes" />

  IMO, drupal_specialchars() is better called xmlspecialchars() to avoid confusion.

- Bugfix: when an anonymous user visits a site, they shouldn't see any content (except the login block, if it is enabled) unless they have the "access content" permissions.  Patch by Matt Westgate.

- Improvement: improved the error checking and the error messages in the profile module.  Updated the code to match the Drupal coding conventions.  Modified patch from Matt Westgate.

- Improvement: don't generate the <base href=""> tag in the base theme; it is already emitted by theme_head().  Patch by Kristjan.

- Improvement: don't execute any SQL queries when checking the permissions of user #1.  Patch by Kjartan.

- Improvement: made a scalable layout form that works in IE and that behaves better with narrow themes.  Part of patch #51 by Al.

- Improvement: removed some redundant print statements from the comment module.  Modified patch from Craig Courtney.
2003-06-11 18:16:32 +00:00
Dries Buytaert a448f5a9b4 - Charset simpliciations. Patch #46 by Al. 2003-06-08 16:50:05 +00:00
Dries Buytaert ff914280b9 - Synced/unified the error reporting from database.mysql.inc and database.pear.inc.
This makes debugging the PostgreSQL (and MSSQL) support somewhat easier.
2003-06-08 12:10:25 +00:00
Dries Buytaert 6ac9f88959 - Bugfix: fix glitch in menu rendering code. Patch #42 by Al. 2003-06-08 08:20:39 +00:00
Dries Buytaert aa38097c07 - Dropped check_input(); use check_query() instead.
- Made the statistics module use referer_uri() for security's sake.
2003-06-06 21:37:11 +00:00
Dries Buytaert 17cd7c497d - Added a function check_url() that CSS checks URLs (or parts thereof). 2003-06-06 21:08:35 +00:00
Kjartan Mannes 94f5eee15a - adding admin module to module_list. 2003-06-06 14:07:45 +00:00
Dries Buytaert de3b0796d2 - Bugfix: better charset support for non-ISO-8859-1 languages. Patch 0029.charset.fixes.patch by Al. Could East Asia test this please.
- Bugfix: made the "moderate" field behave.  Patch 0030.queue.module.help.and.settings.form.patch by Al.

- Documentation: revised a large part of the help texts / documentation!  Al's 0024.* patches.

- Documentation: added a glossary to the help module.  Patch 0025.help.module.glossary.patch by Al and Michael.

- Usability: first step towards unifying the terminology used in the cloud module.  Patch by 0028.site.cloud.rationalize.name.patch Al.

- Usability + CSS improvements: revamped the node form and removed all tables.  Patch 0027.node.form.rewrite.patch by Al.

- CSS improvements: patch 0026.admin.css.small.improvement.patch by Al.

- Updated the MAINTAINERS file.
2003-06-05 18:09:39 +00:00
Dries Buytaert 355d25e73d - Bugfix: renamed the SQL field 'types' to 'nodes' because 'types' is a reserved keyword in MySQL 4. This fixes critical bug #1618. Patch by Marco.
==> This fix requires to run update.php!

- Bugfix: made sessions work without warnings when register_globals is turned off. The solution is to use $_SESSION instead of session_register().  This fixes critical bug #1797.  Patch by Marco.

- Bugfix: sometimes error messages where being discarded when previewing a node.  Patch by Craig Courtney.

- Bugfix: fixed charset problems.  This fixes critical bug #1549.  Patch '0023.charset.patch' by Al.

- Code improvements: removed some dead code from the comment module.  Patch by Marco.

- Documentation improvements: polished the node module help texts and form descriptions.  Patch '0019.node.module.help.patch' by Al.

- CSS improvements all over the map!  Patch '0021.more.css.patch' by Al.

- GUI improvements: improved the position of Druplicon in the admin menu.  Patch '0020.admin.logo.patch' by Al.

- GUI improvements: new logos for theme Marvin and theme UnConeD.  Logos by Kristjan Jansen.

- GUI improvements: small changes to the output emitted by the profile module.  Suggestions by Steven Wittens.

- GUI improvements: small fixes to Xtemplate.  Patch '0022.xtemplate.css.patch' by Al.

TODO:

- Some modules such as the buddy list module and the annotation module in the contributions repository are also using session_register().  They should be updated.  We should setup a task on Drupal.

- There is code emitting '<div align="right">' which doesn't validate.

- Does our XML feeds validate with the charset changes?

- The forum module's SQL doesn't work properly on PostgreSQL.
2003-06-04 18:24:39 +00:00
Dries Buytaert 05288ac48a - Bugfix: made request_uri() rewrite ( and ) with their entity equivalents
to avoid XSS attacks!  Patch by Al, Moshe, Marco, Kjartan and me.

- Bugfix: the admin module does now import drupal.css prior to admin.css.
Patch by me.

- Bugfix: the admin module was still emitting a <base href=""> tag.  I
removed this as it is been taken care of by theme_head();  Patch by me.

- Bugfix: made the tracker module's pager only consider published pages.
Patch by Moshe.

- Bugfix: cured some typos in the comment module's help function.  Patch by
Marco.

- Bugfix: fixed a typo in the pager_display() that caused optional
attributes to be discarded.

- Bugfix: made the Xtemplate emit empty boxes like any other theme does.
Patch by Al.

- Bugfix: fixed broken link on the statistics module's log page.
Reported by Kjartan.

- CSS improvements: made the HTML output emitted by the tracker module
look nicer.  Patch by Moshe and Al.

- CSS improvements: added CSS classes for form elements.  Patch by Al.

- CSS improvements: added a vertical gap between the last form item and the
submit button.  Patch by Al.  Note that Opera 6 is not picking up this
CSS but apparently others browsers such as Konqueror do.

- Xtemplate improvements: changed the color of the selected day in the
archive module's calendar.  Patch by Al.

- Usability improvements: made the "birthday" field of the profile module
look nicer.  Patch by Al.

------

- TODO: it might be a good idea to emit the following meta tag in the
theme_head() function:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Currently, some themes (and modules!) emit this while others don't.  This
would also make it possible to change the charset site-wide.

- TODO: now we added support for td.dark and td.light to drupal.css, maybe
it can be removed from admin.css as well as xtemplate.css?
2003-06-03 18:04:47 +00:00
Dries Buytaert 4582eeccd0 - Another register globals fix. Patch by Kjartan. 2003-06-01 19:51:40 +00:00
Dries Buytaert 82019d89fb - Omit "index.php" when using Apache. Patch by Al. 2003-05-31 13:05:06 +00:00
Dries Buytaert c6f9ca540d - Fixed typo. Patch by Marco. 2003-05-30 11:01:56 +00:00
Dries Buytaert 4499241fa1 - Make sure the HTML filter is applied before any other filter. Patch by
Al.
2003-05-30 05:45:35 +00:00
Dries Buytaert 7f2ce4acea - Fixed the order in which the CSS gets loaded. Patch by Al. 2003-05-30 05:10:35 +00:00
Dries Buytaert 1fc8a18c2d - Al's CSS patches. This commit improves the themability of some core
components such as lists, form items, removes an ugly hack from the
  archive module and should fix the poll problem (although it doesn't
  Opera/Konqueror).
2003-05-29 10:18:38 +00:00
Dries Buytaert d8f78a7c95 - Removed check_output() from the theme system layer. 2003-05-26 19:50:39 +00:00
Dries Buytaert 45d5aad6df - Updated Drupal to use "on output" filters. Derived from Gerhard's patch. 2003-05-24 16:26:13 +00:00
Dries Buytaert 9863dd5a71 - Fixed typo in URL(). Patch by Al.
- Added a filter option to disable/enable the rewrite_old_urls() filter.
  See task #1542.
2003-05-23 21:59:44 +00:00
Dries Buytaert b3c8b01d90 - Fixed a register globals problem in the pager. Patch by Al. (I also
removed a dead global variable.)
2003-05-23 21:33:24 +00:00
Dries Buytaert 5bd07f4bb2 - Fixed search module bug. Patch by Michael. 2003-05-23 17:59:25 +00:00
Dries Buytaert b68b2798d2 - Fixed a IIS bug with regard to register globals. This also avoids the
aforementioned ugly hack.  Patch by Moshe.
2003-05-20 04:41:36 +00:00
Dries Buytaert 65293a819b - Patch by Kjartan:
$_SERVER["HTTP_RAW_POST_DATA"] --> $GLOBALS["HTTP_RAW_POST_DATA"]

  Al: can you confirm that this fixes your problem?
2003-05-19 18:32:09 +00:00
Dries Buytaert bf28f8709b - Applied Moshe's patch that should make clean URLs work on IIS. I removed
a little hack that sometimes patches the request_uri(); I don't think
  this should trigger in first place.  If it does, let me know the URL of
  the form as well as the referring page.  (If this needs fixing after all,
  fixing this _inside_ request_uri() might be a better solution.)
2003-05-19 18:26:49 +00:00
Dries Buytaert 57c7d7b43b - The page_footer() function was always called twice due to the introduction
of the "footer" hook (and because of the existence of the page module).
  This caused the node view counter to be incremented twice per page view,
  the cache being set twice, etc.  Quite a bug.
2003-05-18 09:48:49 +00:00
Dries Buytaert c2d2fb7309 - Fixed a typo in the PostgreSQL database scheme. Patch by Michael Frankowski.
- Fixed a typo in the MSSQL database scheme.  Patch by Michael Frankowski.

- Removed dependency on "register_globals = on"!  Patches by Michael Frankowski.

  Notes:

  + Updated the patches to use $foo["bar"] instead of $foo['bar'].
  + Updated the INSTALL and CHANGELOG files as well.

- Tiny improvement to the "./scripts/code-clean.sh" script.
2003-05-13 18:36:38 +00:00
Dries Buytaert a161110a6b - Applied Michael Caerwyn's "%s -> %d" patch.
- Changed all occurences of '%d' to %d as suggested on the mailing list.
2003-05-07 21:00:36 +00:00
Dries Buytaert 9a62873a4b - Added <base href=""> to default theme. Patch by Al, though I had to add
a 'global $base_url;'.  Fixes bug #1533.
2003-05-07 20:39:27 +00:00
Dries Buytaert c2f3cb2b63 - Renamed 'xmlrpc_decode' to '_xmlrpc_decode' to avoid redeclaration when
PHP's XML-RPC library is enabled.

- Renamed 'xmlrpc_encode' to '_xmlrpc_encode' to avoid redeclaration when
  PHP's XML-RPC library is enabled.

- Removed 'if (funcion_exist("xmlrpc_encode"))' check from common.inc.
2003-04-29 22:02:02 +00:00
Dries Buytaert 31d8b14969 - A one line patch to theme.inc which adds a missing page title variable to
the header() function.  Patch by Moshe.
2003-04-25 20:10:36 +00:00
Dries Buytaert 709d9ec592 - Forgot to commit the modified "includes/common.inc" when applying the
htmlArea related modifications.  Thanks Gordon.
2003-04-23 18:58:43 +00:00
Dries Buytaert a956de78b9 - Fixed some PHP "notices". 2003-04-21 14:55:03 +00:00
Dries Buytaert b505b5ab65 - Committed Gordon's htmlarea patch. 2003-04-21 13:56:09 +00:00
Dries Buytaert cfb4d31f65 - Added missing quotes, initialized a variable an improved the error reporting
a little.
2003-04-21 12:36:09 +00:00
Dries Buytaert 81b05c6795 - Don't report duplicate entries - it is an OK thing to do. 2003-04-21 12:31:51 +00:00
Dries Buytaert a53e34e80e - Removed the deprecated function menu_add(). 2003-04-14 20:29:31 +00:00
Dries Buytaert 61780d8516 - Fixed bug in cache_get(). Patch by Anarcat. 2003-04-13 14:12:43 +00:00
Dries Buytaert 02f437a2f4 - Renamed 'validate_email_address' to 'valid_email_address'.
- Added a 'form_radio' function.
2003-04-13 13:42:51 +00:00
Dries Buytaert cb2d27c78d - Patch by Ax. Fixed some syntax errors:
-    case t("whatever");
    +    case t("whatever"):
2003-04-04 06:17:02 +00:00
Dries Buytaert 3ab5709af5 - Changed pconnect() to connect(). 2003-04-03 22:18:47 +00:00
Dries Buytaert 62f5ae01f6 - Some coding style fixes. 2003-04-03 22:18:27 +00:00
Dries Buytaert 3ad7449bc7 - Various improvements to the menu system.
- Changed the import and taxonomy module to use better URLs.  Patches by
  Al.

- Fixed locale module weirdness.  Patch by Kjartan.
2003-04-01 06:05:15 +00:00
Kjartan Mannes e73a163dbd - Rollback: $cid in cache_set() is not required to be numerical. 2003-03-29 18:08:56 +00:00
Dries Buytaert 4742ba3549 - Fixed some SQL query directives. 2003-03-29 16:30:40 +00:00
Dries Buytaert d1be768b28 - Moved the logic of email validation from user_validate_mail to a new function
in common.inc.  Modified patch from Gerhard.
2003-03-28 10:55:27 +00:00
Dries Buytaert 64b6cb5897 - Removed one line of dead code. 2003-03-19 22:01:38 +00:00
Dries Buytaert 8952e9c53e - Rollback: do not initialize the theme before initializing the user. 2003-03-17 07:01:12 +00:00
Dries Buytaert 2c0f3c9457 - Cache improvement: only flush cache when told to. 2003-03-16 21:49:33 +00:00
Dries Buytaert b2583b624c Patch by Ax:
- db_query_range() in database.mysql.inc wasn't updated to match
  db_query().

- Fixed phpdoc.
2003-03-16 17:38:51 +00:00
Dries Buytaert 170b674a09 - All LIMIT queries must go through the pager or through db_query_range().
The syntax for db_query_range() was enhanced so it matches db_query(). So
  you may pass extra arguments of the SQL statement which are checked via
  check_query() and then substituted into the SQL statement. After these
  optional arguments, you always pass $from and $count parameters which
  define your range.  Most often, the $from is 0 and the count is the max
  number of records you want returned.  Patch by Moshe.

- The pager_query() function for PEAR was enhanced so that it adds  proper
  GROUP BY statement counting the number of records to be paged. Patch by
  James Arthur.

- MSSQL database scheme by Moshe.
2003-03-16 07:02:20 +00:00
Dries Buytaert 4ad174c411 - Eliminated system_init(), the session stuff, and made it possible to
rebuild the menu.
2003-03-12 21:46:14 +00:00
Dries Buytaert 53321bafae - Patch by Kjartan:
+ Pager is not generated when there are less results than the limit.
   + Fixes ugly blank rows in administration pages when there is just one
     page.
2003-03-12 20:45:24 +00:00
Kjartan Mannes 54ea2de9f3 - Adding $Id$ keyword. 2003-03-12 09:51:30 +00:00
Dries Buytaert 7a88330d9d - Committed slightly modified version of Kjartan's theme.inc patch: Drupal
will now barf when trying to instantiate a non-existing theme class.
  This should help to identify broken themes, and to track down theme system
  related bugs.
2003-03-11 23:08:01 +00:00
Kjartan Mannes c4cf16dd3d - Removing drupal module from the always loaded modules (again). 2003-03-09 17:28:51 +00:00
Kjartan Mannes 46cbc276a6 - Adding O modifier to format_date. 2003-03-09 16:55:07 +00:00
Dries Buytaert a3b25924bd - Removed debug statement 2003-03-08 21:15:10 +00:00
Dries Buytaert c1734532f7 - Made rewrite_old_url() distinguish between absolute and relative URLs.
In case of a absolute URL it will try not to rewrite outgoing/external
  URLs.
2003-03-08 21:10:22 +00:00
Kjartan Mannes a0deb476fa - Changed _nodeapi("conf") to _nodeapi("settings").
- Changed node settings page to use table().
- Minor code beautification here and there.
2003-03-08 14:35:42 +00:00
Kjartan Mannes 831ee21303 - Renamed "form.admin" to "form admin".
- Added node_admin_settings() to let users set node defaults.
    * Added _nodeapi("conf")
- Modified form_checkbox() to unset options. (Modified the patch from Ax.)
- Removed the _save() hook.
- Fixed a logical flaw in field_get() and field_set() which would break
  moderation.
- Moved some admin menus around and cleaned up some typos.
2003-03-07 22:11:44 +00:00
Dries Buytaert 914bd030e6 - Fixed typo: "data_format" -> "date_format_short". Patch by walkah. 2003-03-07 17:32:01 +00:00
Dries Buytaert d659fedb38 - Removed the path_uri() function in favor of the $base_url variable and
fixes a handful of bugs introduced by the clean URL patch.
2003-03-07 06:37:30 +00:00
Dries Buytaert 7775d5a327 - Fixed "SELECT lid, FROM locales WHERE string = 'Reset to defaults'" problem:
invoke module_init() *after* the locale module has been initialized.  The
  system module was translating string from within its init hook which is now
  possible/allowed.
2003-03-04 17:44:37 +00:00
Dries Buytaert b10c5f4233 - Small improvement to locale_init(). 2003-03-04 15:10:37 +00:00
Dries Buytaert f4cdeb1f5a - Calls set_error_handler("error_handler") before locale_init() /
theme_init() so that errors happening there will be handled and don't
result in warnings printed.  Patch by Ax.
2003-03-04 06:19:01 +00:00
Dries Buytaert 41ac56a4be - Bugfix: transparent session ID handling wasn't working properly with
drupal_goto().  Patch by Al.
2003-02-27 22:52:08 +00:00
Dries Buytaert f21742c772 - Patch by Ax: "The $block->path setting, which <cite>lets you define regular expressions to specify on which pages you want the specific blocks to be shown</cite> [1], has been disfunctional for some time (did it ever work at all?). one reason was the magic_quotes_gpc / stripslashes issue [2] - luckily, this got solved today. the other reason is a buggy implementation that a) compares the path to $PHP_SELF (which is the script name only, without any url params like "?op=view&id=13"; in the case of clean urls, worse, it is index.php always ...) instead of request_uri() (which does have these params and the proper value), and b) doesn't properly escape the regexp delimiter character in the expression ("/back\/slash/")." 2003-02-27 22:48:32 +00:00
Dries Buytaert 6f6561a8b2 - Fixed some spelling mistakes. Patch by Al. 2003-02-27 22:45:00 +00:00
Dries Buytaert 8ae2520965 - Removed stripslashes(). See http://lists.drupal.org/pipermail/drupal-devel/2003-February/022233.html. Patch by Ax. 2003-02-26 22:02:46 +00:00
Dries Buytaert cff898ffdb - Fixed bug when an additional parameter is being passed to the callback.
Patch by Zbynek.

- Made the menu_tree() function emit CSS tags to identify which menus are
  expanded/collapsed/leafs.  Patch Zbynek and Al Maw.
2003-02-25 19:48:55 +00:00
Dries Buytaert 277ceae515 - New menu houskeeping. Prototyped by Zbynek.
The following modules need updating:
    * glossary module
    * feed module (Breyten's version)
    * mailhandler module
    * notify module
    * project module
    * smileys module
    * admin module
    * style module
    * taxonomy_dhtml module

  To avoid unexpected problems menu_add() is deprecated (it will print an
  error message when used) and menu() should be used instead.
2003-02-20 22:44:51 +00:00
Dries Buytaert 8f190d131b - Documented the fact that the $base_url should not have a trailing slash.
Requested by Kjartan.

- Fixed at least 3 typos.
2003-02-15 21:49:17 +00:00
Dries Buytaert a7a323e702 - Made sure clean URLs are disabled by default. Reported by Moshe. 2003-02-15 17:15:48 +00:00
Dries Buytaert d038729797 - Clean URLs. 2003-02-14 19:52:45 +00:00
Kjartan Mannes 32989e14db - Fixed blog.module to accept blog/name URLs as well as blog/id
- Changed the RewriteRule in .htaccess.
- Fixed form_select() matching incorrectly.
- Added missing $Id$ to menu.inc
2003-02-12 21:37:56 +00:00
Dries Buytaert 074b9bf421 - Added temporary check around inclusion of "xmlrpc.inc". 2003-02-12 16:21:48 +00:00
Dries Buytaert e90f3b883b - See http://lists.drupal.org/pipermail/drupal-devel/2003-February/021824.html. 2003-02-11 20:01:17 +00:00
Dries Buytaert 9281d0cdd7 - Applied Alastair's date patch.
- Removed all instances of '$user->nodes'.

- Committed Moshe's taxonomy patch - minus the node_compact_list() bit.  It needs a bit more thought/work.  This patch changes the links of taxonomy pages/feeds so update your custom code and themes accordingly!

Themes should now use "taxonomy_link("taxonomy terms", $node)" to get an array of taxonomy term links.  The old construct is deprecated and should be changed.

// old theme blob:
if (function_exists("taxonomy_node_get_terms")) {
  foreach (taxonomy_node_get_terms($node->nid) as $term) {
    $terms[] = l($term->name, NULL, array(), "or=$term->tid");
  }
}

// new theme blob:
if (module_exist("taxonomy")) {
  $terms = taxonomy_link("taxonomy terms", $node);
}

// old URL:
http://foo.com/index.php?or=1,2

// new URL:
http://foo.com/?q=taxonomy/page/or/1,2
2003-02-09 17:39:40 +00:00
Dries Buytaert e4ff410614 - Patch by Moshe: sometimes modules display content composed by people who
are not members of the site. Two examples are listhandler and import modules.
There is no easy way for these modules to display the true author of the
content. Usually, the content appears as if authored by Anonymous User. This
3 line patch enables modules to override the author name in their _view() hook.
2003-02-02 10:13:13 +00:00
Dries Buytaert cfd31c93f1 Patch by Ax:
- Bad usage of css ID's: they may be used for a single element only,
but were used as #node, #block, which can occur multiple times in a
single page.

- Moved HTML from theme to template - thats what templates are all
about!

- Added support for head() hook

- Added support for diffentiating between boxes and blocks.

- Typo: secundary -> secondary
2003-02-01 19:54:19 +00:00
Dries Buytaert bb9f9868eb - Committed Alastair Tse's getallheaders() patch. 2003-01-31 08:32:41 +00:00
Dries Buytaert 4088adad1a - Fixed bug introduced by Moshe's common.inc patch; posting content would
cause "Array" to be displayed.
2003-01-27 19:37:07 +00:00
Dries Buytaert 92b5fc369a - Fixed XHTML glitch in the sitemap. Thanks Moshe and Michael. 2003-01-27 19:15:20 +00:00
Dries Buytaert a32e3d1408 - Added sitemap feature to administration pages. Requested by various
people including Michael and Moshe.
2003-01-26 13:27:59 +00:00
Dries Buytaert 4028362fda - Applied Moshe's _exit patch (slightly modified).
- Fixed bug in system.module.
2003-01-26 13:22:02 +00:00
Dries Buytaert 4dac201e7c - Patch by Ulf: XHTML-ified the code. 2003-01-21 22:57:43 +00:00
Dries Buytaert 9a23223e25 - Applied Ori's format_plural() patch; see mailing list for details.
NOTE: some modules in the contributions repository might need to be updated.
2003-01-21 22:44:25 +00:00
Dries Buytaert 389dc00886 - Replaced "&" by "&amp;". Patch by Ulf. 2003-01-20 19:54:11 +00:00
Dries Buytaert 5b1e1da22e - Tidied up a SQL query.
- Changed a "&" to a "&amp;".
2003-01-20 19:20:22 +00:00
Dries Buytaert f6da12ca19 Patch by Marco:
- forum: fixed link to new topic
- forum: new topic shows default forum correctly
- forum: first_new is back; the anchor didn't consider multiple pages
- forum: use standard pager, needed some changes/fixes to pager.inc
- forum: some cleanup
- forum: taxonomy hook
- renamed first_new to simply new
- added an optional parameter to pager_query for the count query
- used the optional count param for paging forum topics
- internal change: moving a topic doesn't duplicate the node anymore but just
  changes the forum (term); no change in functionality, and shadow still
  works (suggested by Dries).  This probably also made some queries somewhat
  lighter.
- bug fixed: anonymous users always saw "n (n new)" in the replies column
- updated pager help and moved from _help to phpdoc
2003-01-15 23:01:42 +00:00
Dries Buytaert 6f15124748 - Enabled XML-RPC. 2003-01-15 05:57:55 +00:00
Dries Buytaert e25bc4fda3 - Fixed glitch in table_cell(). Spotted by Michael. 2003-01-15 05:56:50 +00:00
Dries Buytaert d268783669 - Small improvement to the admin menu based on feedback from Michael. 2003-01-14 20:33:42 +00:00
Dries Buytaert 7d677b5c5a - Added some more URL rewrite rules based on contributions from Gerhard. 2003-01-12 11:53:31 +00:00
Dries Buytaert d1521b48e5 - Rewrite old-style URLs. Based on patch by Gerhard. 2003-01-11 20:07:42 +00:00
Dries Buytaert 0d384c8ead - Fixed "clean URL" glitch in queue module. Patch by Ax.
- Small improvement to url().  Patch by Ax.
2003-01-11 10:46:11 +00:00
Dries Buytaert 640128b08d - Added some isset()s to kill some "Undefined variable" warnings. Patch by
Julio.
2003-01-09 20:06:00 +00:00
Dries Buytaert 6744e34066 - Fixed the pager. It might not be 100% correct, but it will work in 95%
of the cases.
2003-01-09 19:53:51 +00:00
Dries Buytaert 28aa217f90 - Made sure the $links array is properly initialized before doing an
array_merge.  According to Ori, this fixes a problem when using PHP
  as an ISAPI module with the Sambar server.
2003-01-08 05:47:57 +00:00
Dries Buytaert affacdf508 - Added a few line breaks in the HTML emitted by the table() function
for better readability of the HTML code.  Patch by Moshe.
2003-01-07 19:21:28 +00:00
Dries Buytaert 56d0434f82 - Fixed bug in update of taxonomy links. 2003-01-06 21:43:07 +00:00
Dries Buytaert 2647a943f0 - Forgot to update the taxonomy links. Reported by Adam. 2003-01-06 21:24:21 +00:00
Dries Buytaert a380356d6e - Fixed typo in watchdog(). Reported by Marco. 2003-01-06 20:58:31 +00:00
Dries Buytaert 89b2069e4d - Clean URL patch. 2003-01-06 19:51:01 +00:00
Steven Wittens 97858f9b2e Typo ('tat' > 'that') 2003-01-05 01:19:37 +00:00
Dries Buytaert 8a63646576 - Added an extra parameter to watchdog() which lets you specifiy an "action"
or "operation" link.

- Made the main page of the administration section show an overview of all
  watchdog entries with such action link.

- Fixed typo in PostgreSQL database scheme.
2003-01-04 11:03:15 +00:00
Dries Buytaert de95001c92 - Tidied up the use of check_output(). Might make rendering pages a bit
snappier (performance improvement).
2002-12-31 12:34:07 +00:00
Dries Buytaert 92758279fa - Bugfix: wrapped an RSS item's description in a check_output() to ensure
proper markup.
2002-12-31 10:58:47 +00:00
Dries Buytaert e97c6a73d6 - Code improvement: menu_tree() will no longer generate empty "<ul></ul>"
constructs.
2002-12-30 15:54:06 +00:00
Dries Buytaert 769ebb666c - Check input given to table rendering functions to avoid warning. 2002-12-30 08:33:02 +00:00
Dries Buytaert 14158fbc6b - Added table rendering functions. As an example, I changed the node module
to take advantage of it.
2002-12-29 12:03:08 +00:00
Dries Buytaert a3ad12a9b6 - We don't have to show the main row anymore. 2002-12-27 14:58:57 +00:00
Dries Buytaert 26e0b9b75c - Made Drupal report an error when magic_quotes are disabled. 2002-12-26 12:16:09 +00:00
Dries Buytaert 22fa9ed70a - Refactored the administration pages. 2002-12-24 15:40:32 +00:00
Dries Buytaert 8f673be382 - Small improvement. Patch by Moshe. 2002-12-21 19:10:47 +00:00
Dries Buytaert 20e22ad292 - Removed some backslashes. Reported by Adam. 2002-12-20 22:08:17 +00:00
Dries Buytaert 146beb5156 - Fixed bug in cache_clear_all(). Patch by Marco. 2002-12-16 16:42:49 +00:00
Dries Buytaert eacfd45863 - Forgot a tag. 2002-12-15 23:05:25 +00:00
Dries Buytaert 99d84c9330 - Committed Marco's pager improvements.
- Fixed another annoyance with editing content.
2002-12-14 11:55:54 +00:00
Dries Buytaert b6b24c28e0 Applied patch by Natrak:
- page_header() now adds Last-Modified and ETag http headers.
- When running PHP as an Apache module page_header() will check the HTTP
  headers for conditional gets, and will only push the content when it
  fails. (Works for html and xml pages as they are all cached). Note:
  this is a PHP limitation, so until PHP makes it work for other web
  servers this won't work for them.
- Added created field to cache database to hold the timestamp when the
  cache was created.
- Changed cache_get() to return an object with ->data and ->created.
- Update forum and locale modules.
2002-12-11 22:00:04 +00:00
Dries Buytaert 81a6bcd7a2 - Fixed typo. Reported by Kobus. 2002-12-11 20:21:04 +00:00
Dries Buytaert 7ce686c152 o Permission improvements:
+ Removed the "post content" permission and replaced it by more fine-grained permissions such as "maintain static pages", "maintain personal blog", "maintain stories", etc.

o Usability improvements to teasers:

   + Teaser forms are no more.  Teasers are extracted automatically but can also be instructed using a delimiter "---".  Furthermore, when a post it too short for a teaser, the user won't be bother with teaser stuff anymore.

   + Added an option to set the teaser length, or to disable teasers all together.

   + When previewing a post, both the short (if any) and the full version of a post are shown.  This addresses a common complaint; for example, when writing a book page there was no way you could preview the short version of your post.

   + Forum posts can be teasered now.  This is particularly helpful in the context of drupal.org where we promote forum topics.

o Bugfix: replaced all PHP short tags (<?) with long tags (<?php).

o Bugfix: removed hard-coded dependence on comment module.

o Bugfix: when the queue module was disabled, it was not possible to approve updated book pages.

o Bugfix: applied modified version of Marco's node_teaser() fix.
2002-12-10 20:35:20 +00:00
Dries Buytaert 296a01f399 - Made sure session.cache_limiter is set to "none" as suggested by Moshe
and Ax.
2002-12-08 08:19:29 +00:00
Dries Buytaert 7c187f894c - Added "short_open_tag 1" to the PHP settings. 2002-12-07 21:21:35 +00:00
Dries Buytaert 8a91f1befa - Added some extra information about PHP settings. 2002-12-02 22:18:37 +00:00
Dries Buytaert 060810841b - Patch by Jeremy to fix a module loading bug:
- module.inc:
       + added call to _init for all modules

    - statistics.module:
       + added statistics_init()
       + moved all global actions into statistics_init()
2002-11-29 05:53:40 +00:00
Dries Buytaert 6c862208d8 - Fixed small glitch in drupal_goto(): somethimes a "&" got appended. Patch
by Marco.
2002-11-29 05:45:57 +00:00
Dries Buytaert 51778ef1b3 - Applied Ax's pager patch: includes documentation (rewrote it somewhat) and two
bugfixes; one that makes taxanomy based paging work (eg. index.php?and=2,3)
  and one that kills a warning when the query returns no records.
2002-11-26 19:24:20 +00:00
Dries Buytaert 4a723b9095 - Added some comments/explanation wrt to the "$db_url" settings; this seemed
to cause problems/confusion.
2002-11-26 18:38:01 +00:00
Dries Buytaert 4f94488b55 - SID will now only be appended when session.use_trans_sid is set. Patch
by Kjartan.
2002-11-21 18:25:38 +00:00
Dries Buytaert 36cb350ef1 - Don't display "1" when there is only one page. 2002-11-18 19:21:09 +00:00
Kjartan Mannes 15f1a61197 - changing theme patch. Now Drupal will init the $this->path automatically. 2002-11-17 16:32:03 +00:00
Kjartan Mannes 4d45f0c777 - changing the sorting algorithm in module_list so it is case insensitive. 2002-11-17 16:26:06 +00:00
Dries Buytaert 9e32c2e960 Patch based on work of Kjartan:
- 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.
2002-11-17 06:42:52 +00:00
Kjartan Mannes 64f8781f78 - made the themes path aware. If your theme creates a constructor function it
will now be passed the filename as the first parameter.
2002-11-16 18:06:32 +00:00
Dries Buytaert 99fd26db08 - Small cosmetic change. Patch by Natrak. 2002-11-10 21:16:58 +00:00
Dries Buytaert 6ba38a7eeb - Fixed db_query_range() in PEAR database abstraction layer. Patch by James. 2002-11-09 20:58:16 +00:00
Dries Buytaert 2fc257a076 - Oops. Braino. 2002-11-09 20:50:50 +00:00
Dries Buytaert 3dd7d9b47d - Oops. The db_query_range() query got added twice. 2002-11-09 20:47:52 +00:00
Dries Buytaert 6d1ffea494 - Added check to see whether $items is initiliazed. Thanks James. 2002-11-09 20:12:03 +00:00
Dries Buytaert c93ab2a21f - Added a db_query_range function. Patch by Natrak, slightly modified. 2002-11-09 20:02:41 +00:00
Dries Buytaert a6a47a3257 - Applied Moshe's "theme head" patch:
"This patch to theme.inc adds the ability for modules to insert HTML
   into the <HEAD> section of all web pages. The additional modules in
   this directory [ed: blog.module] demonstate possible uses for the
   new _head() hook."
2002-11-09 16:24:46 +00:00
Dries Buytaert 562df8fe43 * Added Jeremy's pager:
"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.
2002-11-09 13:59:36 +00:00
Dries Buytaert b3abbc4b54 Patch by Natrak:
- Modules and themes now use the same functions to find and administer
  files.
- Modules can now be placed in sub-directories.
- Theme descriptions can no longer be edited. This will be handled by
  Dries' theme_conf patch.
- Update required to keep old modules enabled.
2002-11-08 13:19:12 +00:00
Kjartan Mannes 601d34ec31 - removing whitespace (+testing still). 2002-11-06 14:18:45 +00:00
Dries Buytaert 8d103a0898 - Committed Marco's block rewrite:
+ 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
         }
       }
2002-10-26 15:17:26 +00:00
Dries Buytaert 2512ce7697 - Killed a warning. Reported by ax. 2002-10-24 17:44:39 +00:00