Commit Graph

109 Commits

Author SHA1 Message Date
Christoph Schindler d2d7bf0b6c FS#2840 fix typo in debug message 2013-08-23 15:44:58 +02:00
Andreas Gohr 21c9604e66 we now require PHP 5.2.0 at least 2013-06-02 21:48:56 +02:00
Christopher Smith f755f9abc6 change nomenclature from 'show' to 'allow' (fn from canshow to allowed) 2013-04-07 19:40:27 +01:00
Christopher Smith 64cafb1fc0 for completeness (& defensive coding), test ['show'] against MSG_PUBLIC in case its redefined to a non-zero value 2013-04-01 20:47:21 +01:00
Christopher Smith d3bae47810 add capability to restrict recipients of dokuwiki 'msg' alerts. This is useful where message is added to the queue before authentication is initialized 2013-04-01 16:55:40 +01:00
Anika Henke 6a34de2d02 added to version info if version is unknown 2012-12-19 14:02:32 +00:00
Andreas Gohr 3161005d07 check for unicode preg capabilities in UTF-8 lib FS#2636
We now have two defines for checking for UTF-8 and Unicode property
support in PREG and use them to work around FS#2636 on older systems.
2012-11-12 21:22:26 +01:00
Andreas Gohr a731ed1d67 added PCRE UTF-8 checks to do=check FS#2636 2012-11-08 22:48:07 +01:00
Andreas Gohr 63d9b82068 avoid multiple paralell update checks
we now touch the messages before the actual update happens. this should
lower the chance of more than one update check running at a time.
2012-11-07 00:28:12 +01:00
Andreas Gohr d9934ae081 removed data dir security check as suggested in FS#2547 2012-08-26 16:35:17 +02:00
Andreas Gohr 3009a773c0 replaced use of basename() with utf8_basename() FS#2015 2012-07-28 10:40:48 +02:00
Andreas Gohr e5ab313f46 check locale setting in do=check FS#2445 2012-07-28 09:24:07 +02:00
Andreas Gohr 3008b66718 don't check data dir writability in do=check
these are already checked in init.php, so we can save some space here
2012-07-28 09:05:47 +02:00
Robert Nitsch c07c5d9357 Fixes messages.txt's modification timestamp not being updated.
This bug occurs on systems where writing a zero-length string to an
empty file does not update the file's modification timestamp.

This leads to the messages.txt being downloaded almost endlessly, causing
long delays for logged-in users. Visitors are not affected, because the
messages.txt is only updated for logged-in users.
2012-05-21 19:43:03 +02:00
Anika Henke 8d3d756906 use DOKU_SCRIPT instead of stray doku.php in checkUpdateMessages() (FS#2364) 2011-11-08 23:06:59 +00:00
Guy Brand 4c7ecf15c9 Verify conf/ directory is writable in the do=check action 2011-11-05 21:53:56 +01:00
Piyush Mishra b838050e58 added new plugins config cascade and added plugin.info.txt 2011-08-20 19:11:52 +05:30
Anika Henke defb7d5769 fixed some missing config_cascade occurrences (FS#2235) 2011-05-07 23:11:00 +01:00
Michael Hamann 3d94d9edc8 Fix the wording of the search index check messages 2011-05-02 23:38:41 +02:00
Michael Hamann 26f7dbf522 Add a test to do=check that should detect search index corruption
With this test it should be possible to detect if the search index has
been corrupted by using Rincewind RC or a git version of the weeks
before the RC release.
2011-05-02 23:26:07 +02:00
Michael Hamann cc58224cff Fix msg() calls when messages have already been printed
This commit fixes two bugs that occurred when msg() was called after
html_msgarea() had already been called.
- the $MSG array is now cleared when it has been printed (otherwise $MSG
  has been printed again when another msg() call was done)
- headers_sent() didn't work for me, it always reported false although
  html_msgarea() had already been called which might be explainable with
  output buffering. This makes msg() now depend on the first call of
  html_msgarea() or headers_sent() in order to not to break msg() in
  ajax requests etc.
2011-01-10 22:23:23 +01:00
Michael Hamann 5bd930fff2 Write the debug log only when debugging is enabled
The debug log isn't automatically cleaned so don't write to it when
debugging is disabled and thus nobody is aware that debug output might
be generated.
2010-09-18 17:31:45 +02:00
Anika Henke ef362bb863 moved update message from its own file (conf/msg) into doku.php (FS#1800) 2010-06-27 13:58:07 +01:00
Gina Haeussge 3f803e5e8d FS#1878: Hide Dokuwiki version information from metadata and only show it to admins and manager in do=check. Also protected meta files README, VERSION and COPYING additionally to .ht* 2010-06-26 18:25:41 +02:00
Dominik Eckelmann 69266de50f fixed handling of MSG
msg() now stores always the message to the MSG array until headers are
sent. After this, a call of msg will print out all messages from the MSG
array immediately through html_msgarea.
This prevents double posting and losses of messages from the MSG array.
2010-06-24 14:36:50 +02:00
Andreas Gohr d7879495ee Merge branch 'requireall'
Conflicts:
	inc/fulltext.php
2010-03-12 14:11:50 +01:00
Andreas Gohr 1349379468 run dbg() output through htmlspecialchars 2010-02-08 13:33:41 +01:00
Andreas Gohr 0af14a6e25 removed more unneeded require_once() calls 2010-02-01 15:38:41 +01:00
Andreas Gohr 1690534421 first attempt to centralize all include loading
Classes are loaded throug PHP5's class autoloader, all other
includes are just loaded by default. This skips a lot of
require_once calls.

Parser and Plugin stuff isn't handled by the class loader yet.
2010-01-31 19:02:14 +01:00
Andreas Gohr 5cf31920a1 Read version from last Git log 2010-01-08 14:26:57 +01:00
Adrian Lang afc5e13aeb Grab version from darcs correctly and simpler
darcs-hash:20091210104320-e4919-3178a4f01fc1e1720ad86716552f4deaa52dc236.gz
2009-12-10 11:43:20 +01:00
Anika Henke 25c07f9324 added getVersionData() additionally to getVersion() to get version date and type independently
darcs-hash:20091115124244-f7d6d-fa481e7c3ebf5ae5ab1203e8774ab81e122e14a0.gz
2009-11-15 13:42:44 +01:00
Andreas Gohr e570ed43f1 correctly read version from darcs2 inventory
Ignore-this: 93b8d0ec90f44d1fde05f94965d4e4e1

darcs-hash:20091104121658-6e07b-4336680ee1a7964872ce9c576f3dd9a18bb1c1e2.gz
2009-11-04 13:16:58 +01:00
Andreas Gohr ab91da8996 set required PHP release to 5.1.2
Ignore-this: 5dd4f31786cfa624b5e54b4c19060003

darcs-hash:20091026115305-6e07b-b48459f3dcaa70898f799cd0e843997265af8fb9.gz
2009-10-26 12:53:05 +01:00
Andreas Gohr db959ae307 Coding Standard Cleanup
Ignore-this: 259cb5773c3144c6c706d87298dcf674

darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
2009-10-20 23:23:38 +02:00
Andreas Gohr a6783fdb13 Updated version checks for PHP 5
Ignore-this: 97d3d6fd8dc65d0cfce6b976cc2fad28

The next release will require PHP 5, the related checks were upgraded to check
for at least 5.0.0 (we might need to tune this)

darcs-hash:20090726115255-7ad00-59d67b61739db8eea0288a8010d7cdf507ab867b.gz
2009-07-26 13:52:55 +02:00
Andreas Gohr 0699d739ce optional additional header for dbglog()
darcs-hash:20090228145326-7ad00-014ee0dbaa44197eb50423cfd45f4fd2fbe54f22.gz
2009-02-28 15:53:26 +01:00
Andreas Gohr 4222b898cf check if mb_string function overloading is enabled FS#1565
darcs-hash:20090116122030-7ad00-da6705f92e7b128d3f908969aa6b348d28d85ae0.gz
2009-01-16 13:20:30 +01:00
Andreas Gohr 3b1dfc83d8 Added HTTP check for data directory security
The ?do

darcs-hash:20090114174724-7ad00-cc45b798d930b7e87c3c820925982fb8201cf7f4.gz
2009-01-14 18:47:24 +01:00
Andreas Gohr c7408a6326 better logging for objects and arrays in dbglog()
darcs-hash:20090113122638-7ad00-6bc9dc3dd4120b5a1551b50d97ce8529619819ce.gz
2009-01-13 13:26:38 +01:00
Andreas Gohr fa8adffee3 removed some illogical path setups
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
2008-12-13 10:04:00 +01:00
Andreas Gohr 24297a695f remove sensitive data from debug output more aggressively
This patch adds a new function that is used to remove sensitive data from
the debug output in a broader way. It will remove some innocent data but
should make sure most passwords and similar data can not be accessed even
when stored in some plugin's configuration data.

Disabling the debug option is still highly recommended.

darcs-hash:20080715211616-7ad00-19334e56d3910bcaa04147c4c59e0c59571764f3.gz
2008-07-15 23:16:16 +02:00
Andreas Gohr 73038c47e3 Check memory settings on ?do
This should help with diagnosing memory related problems

darcs-hash:20080223180701-7ad00-1308829c3d7432b1d0c23c3f1acc8228c0a41e1e.gz
2008-02-23 19:07:01 +01:00
Andreas Gohr 0d487d8f0b no write check for users.auth.php when non-plain backend is used FS#1271
darcs-hash:20071203202342-7ad00-66a9695f554122e6ad1b78e400cb56b07ec65d19.gz
2007-12-03 21:23:42 +01:00
Andreas Gohr c179167850 getUserData should really be implemented always... (FS#1272)
... but with this patch DokuWiki will not break completely when left out for
trustExternal() auth backends

darcs-hash:20071203201532-7ad00-72dbc2d16e4c8c09cca9558286164f4d858c19ce.gz
2007-12-03 21:15:32 +01:00
Andreas Gohr 009768124d don't use realpath() anymore (FS#1261 and others)
The use of realpath() to clean up relative file names caused some
trouble in certain setups relying on symlinks or having restricitve
file structure setups.

This patch replaces all realpath() calls with a PHP only replacement
which should solve those problems.

darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
2007-09-30 20:42:50 +02:00
Andreas Gohr 6957b2ea01 check for auth object at certain functions
This is a follow up on the previous patch to disable authtentication without
disabling ACL on backend problems. It fixes a few errors that might occour
in this rare situation.

darcs-hash:20070627194910-7ad00-de5ac10e0d36ecf8906c080e1d3dc1b2fd85b45d.gz
2007-06-27 21:49:10 +02:00
Andreas Gohr 8259f1aaae fix dbg_backtrace when arguments are an array or object
darcs-hash:20070418174151-7ad00-834f13a1a0c84254cf98058c3e6db223187598ed.gz
2007-04-18 19:41:51 +02:00
Andreas Gohr db09e31e6f dbg_backtrace() function added
This adds a useful debugging function for printing function call backtraces.

darcs-hash:20070305223458-7ad00-865f0cedcd1d904e98d3e89820102657f685712c.gz
2007-03-05 23:34:58 +01:00
Mike Frysinger 3d3c095d59 add some helpful user/group information to ?do
this simple patch adds user/group output when viewing a page
with ?do

darcs-hash:20061205201753-5224c-600980b0649b4cc927be5f46516f73aff3a6e7ed.gz
2006-12-05 21:17:53 +01:00
Andreas Gohr f8cc712e2a manager user/group
This patch adds support for a manager option as suggested in
http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html

darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz
2006-12-03 14:41:04 +01:00
Andreas Gohr e9208eb139 fixed paths in getVersion
darcs-hash:20061124202533-7ad00-316002eeb9a829a7f8d9f4f984a892af7a59bfc8.gz
2006-11-24 21:25:33 +01:00
Andreas Gohr 3afe5d1c34 PHP version check in the installer
darcs-hash:20061105204420-7ad00-2b80d8ceb37b48ccdaa10545ea6fb9bddb58529b.gz
2006-11-05 21:44:20 +01:00
Anika Henke 2cdbda067e typo in do
darcs-hash:20061015222615-d5083-774269139d15c9a12b364e2c88dea46b477c912e.gz
2006-10-16 00:26:15 +02:00
Andreas Gohr 100a97e3f1 remove metadebug again, improve doÞbug instead
This adds the complete $INFO array (contains the metadata) to the usual
debug output and removes the metadebug parameter again.

darcs-hash:20060925201052-7ad00-c9a15b921466803b3f2bd50b0d72211cf68658c5.gz
2006-09-25 22:10:52 +02:00
Andreas Gohr c1b9dbaf11 metadebug parameter added
With DokuWiki's reliance on certain page metadata, it is sometimes necessary to
view the metadata of a page. This patch allows developers to append the parameter
?metadebug

darcs-hash:20060925193202-7ad00-6a42c7458aaa1cc40df3c7a61ad70df5d64be152.gz
2006-09-25 21:32:02 +02:00
chris 587afae528 infoutils update
minor modifications to avoid php warnings if msg file is missing.

darcs-hash:20060917153009-9b6ab-4b6ee49d728e89c3427130c617b532cd23c680bb.gz
2006-09-17 17:30:09 +02:00
Andreas Gohr 3d7760aa04 update for updatecheck function
Messages are now displayed to all users if ACL is not enabled. The update-URL
changed to http://update.dokuwiki.org/check/

darcs-hash:20060917145025-7ad00-1d64b90e51c1a49567a28b132caf79ae0f124c8e.gz
2006-09-17 16:50:25 +02:00
Andreas Gohr c29dc6e421 updatecheck feature
This patch adds a feature to let DokuWiki automatically check if updates are
available or any other important messages (like security warnings) and then
display this info to the admin user.

DokuWiki will contact the URL http://www.splitbrain.org/lib/exe/msg.php
with a parameter telling it which messages it already know (read from
conf/msg) - the server side script then will return all new messages.

The messages will be displayed until DokuWiki was upgraded or conf/msg
was updated manually. Messages are cached and only checked once a day.

The messenger URL will probably change before the next release.

darcs-hash:20060916210229-7ad00-7ac592650e171ae4144b0eb47a751a4ca480f031.gz
2006-09-16 23:02:29 +02:00