Commit Graph

113 Commits

Author SHA1 Message Date
Phy 08e9b52fd0
Renamed constant to RECENTS_ONLY_CREATION
This clarifies that it also works when requesting media changelog.
2020-03-09 20:24:19 -04:00
Tero Kivinen 68f43bcf6b
Implemented only_new option for RSS feed, so you can request RSS feed that contains only new files. 2020-03-09 20:21:11 -04:00
Phy 8de6bd9892
initialize rssRecentChanges flag to 0 2020-03-09 17:21:22 -04:00
Aurélien Martin 7b299f22af
Add option rss_show_deleted 2020-03-09 17:17:09 -04:00
Andreas Gohr cbb44eabe0 deprecated trigger_event() in favor of a static method on Event 2019-04-20 21:48:53 +02:00
Andreas Gohr e1d9dcc8b4 First go at moving the plugin classes into their own namespace 2019-04-20 21:33:23 +02:00
Michael Große d2f1d7a17e
Rename fields and add deprecated __get/__set
These fields might still be accessed from the outside, so in order to
not break backwards compatibility, this uses magic methods that emit
deprecation errors.
2019-02-14 23:41:13 +01:00
Michael Große 0db5771e6b
Refactor cache.php into different files 2019-02-02 13:41:48 +01:00
Andreas Gohr 0c3a570273 split changelog classes into their own namespace
The remaining functions in inc/changelog.php should be moved into a
utility class.
2018-06-15 11:45:58 +02:00
Andreas Gohr 4364181fd5 do not disclose email or IP addresses of users through RSS
The feed used to add real or fake email addresses to items (because some
feed formats require them). The default RSS1.0 format did not show them,
but that changed in the recent update of our FeedCreator classes.

Now all code for that has been removed, always showing an
@undisclosed.example.com email address. Because some feed readers may
use the email address to distinguis authors, the mechanism to prepend
the user name was kept.
2017-08-05 17:42:54 +02:00
Andreas Gohr 572dd708be use composer based library for feed creator #1970 2017-05-18 22:38:19 +02:00
Gerrit Uitslag 6ebabe2fed Fix PHP7 evaluation order incompatibility
Fixes #1480
2016-03-02 21:48:37 +01:00
Andreas Gohr 79e7937762 Remove error supression for file_exists()
In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PHP 5.3 now, there's no need to supress any error here
anymore. This might even give a minor performance boost.
2015-01-07 10:47:45 +01:00
Gerrit Uitslag e0c26282a6 scrutinizer documentations issues 2014-09-29 03:34:17 +02:00
Andreas Gohr ed74b60ead Merge pull request #626 from splitbrain/feedmodelistsort
Added sort by date option to feed in list mode
2014-05-25 11:47:07 +02:00
Gerrit Uitslag 470bf4b293 username_link should show user's name in feed too 2014-05-14 20:58:35 +02:00
Andreas Gohr d2704764cf use new $INPUT->valid() method in feed.php 2014-04-30 19:49:25 +02:00
Gerrit Uitslag 477e59988f add date sort option for list mode of feed 2014-03-20 15:40:31 +01:00
Gerrit Uitslag 6dcc1e8f85 Improve encoding dir in rssListNamespace() 2014-03-20 15:39:57 +01:00
Gerrit Uitslag b09b9f475d add 404 status header to feed disabled 2014-03-18 14:02:01 +01:00
Gerrit Uitslag 54be1338e5 allow disabling the rss feed 2014-03-18 13:19:05 +01:00
Andreas Gohr 3275c5d6fe Merge branch 'master' into diff_navigation
* master: (103 commits)
  Add a basic test case for the cache
  Events: Trigger a warning if the default action is not callable
  Fix caching (make the event callback public again)
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  translation update
  avoid HTTP image screenshot urls. closes #595
  translation update
  Extension manager: Fix cache extension to be .repo
  adjusted the office type color again
  another instance of empty() where an array key might not exist
  remove placeholder van denied.txt
  updated file icons once more
  removed 'not logged in' text, loginform is shown already
  Revert "added stripped bit to language file"
  fixed index file
  ...

Conflicts:
	inc/html.php
2014-03-14 17:09:29 +01:00
Christopher Smith e90eadd0d4 Merge pull request #547 from splitbrain/chris_rssfeedfixes
RSS feed fixes
2014-03-02 19:48:20 +00:00
Christopher Smith 26b26af6b5 add security character '$' around REMOTE_USER in cache key to avoid key clashes 2014-02-26 01:52:56 +00:00
Christopher Smith 4a193141ca remove rendundant line 2014-02-26 01:50:39 +00:00
Christopher Smith 3bf4233a75 add HOST and PORT to feed cache key 2014-02-26 01:49:29 +00:00
Gerrit Uitslag 8fcb305db0 Merge remote-tracking branch 'origin/master' into diff_navigation
Conflicts:
	inc/html.php
2014-02-23 22:07:26 +01:00
Gerrit Uitslag 0e2431b761 Improve PHPDocs, rename auth_basic to DokuWiki_Auth_Plugin 2014-02-17 19:01:57 +01:00
Gerrit Uitslag 2643fc174c Merge remote-tracking branch 'origin/master' into diff_navigation 2014-02-15 15:10:15 +01:00
Christopher Smith 27538f87e3 make media links in rss feeds absolute
This resolves issues with broken images when the wiki feed is
hosted by third parties (e.g. FeedBurner), as mentioned in
FS#2931 comments.
2014-02-14 21:04:08 +00:00
Christopher Smith ed714c3e6d add missing '&' before 't' in url construction 2014-02-14 21:00:10 +00:00
Michael Hamann 0b4e20cc13 Fix RSS namespace listings containing hidden pages 2013-12-02 00:15:38 +01:00
Michael Hamann 11540fc120 Revert "Exclude hidden pages (config["hidepages"]) from RSS feed (see https://www.dokuwiki.org/config:hidepages)"
This reverts commit f5151bdbf9.
2013-12-02 00:15:38 +01:00
Michael Hamann 44f1166462 Revert "fix indention of RSS patch"
This reverts commit a010fc32a9.
2013-12-02 00:15:38 +01:00
Gerrit Uitslag 047bad06fa refactor PageRevisionLog into Media- and PageChangelog extending Changelog 2013-11-21 21:07:08 +01:00
Gerrit Uitslag f523c9718b update function calls to changelog functions 2013-11-20 13:36:22 +01:00
Andreas Gohr a010fc32a9 fix indention of RSS patch 2013-10-13 11:14:43 +02:00
Snarkturne f5151bdbf9 Exclude hidden pages (config["hidepages"]) from RSS feed (see https://www.dokuwiki.org/config:hidepages) 2013-10-11 13:54:55 +02:00
Andreas Gohr 3e967eac77 removed superfluous parameter FS#2773 2013-05-05 19:52:33 +02:00
Christopher Smith a494ed3306 FS#2738, fix double encoding of html entities in RSS feeds (updates feed.php for changes to Diff class introduced in PR#179) 2013-04-10 18:36:35 +01:00
Michael Hamann 1512eb894e Fix content of pages with incorrect metadata in list feeds
Before this change the last modification time was taken from metadata
and then the revision that was specified there was loaded from the
attic. Now revisions from attic are only loaded when the page has been
modified more recently and the date is normally the last modification
time of the page source. This was a problem when the most recent change
was an external edit, then an older revision was shown in the feed.
2013-01-11 11:52:29 +01:00
Michael Hamann be808eff89 Fix title of media items in the feed with useheading on
This fixes the problem that media items in the feed got the title of the
previous item when useheading was enabled as no metadata is loaded for
media entries and thus the previous metadata was used again. This also
fixes dates for media files.
2012-09-14 13:49:45 +02:00
Andreas Gohr 29f2dfdcb8 Merge branch 'input-validation' of git://github.com/whoopdedo/dokuwiki into pull-request-110
* 'input-validation' of git://github.com/whoopdedo/dokuwiki:
  fix incorrect usage of tpl_getMediaFile
  fix necessary global declaration
  Input wrapper for html forms
  Input validation for media manager
  Input wrapper for exe scripts
  more INPUT wrapper uses: cache purge, sectok, getID
  Input wrapper for action.php

Conflicts:
	lib/exe/css.php
2012-07-06 11:07:34 +02:00
Anika Henke 0c06a18181 Merge branch 'master' of github.com:splitbrain/dokuwiki into frontend_improvements
Conflicts:
	lib/tpl/dokuwiki/css/basic.css
2012-06-29 17:51:09 +01:00
Andreas Gohr df06cef4cd removed superfluous whitespaces 2012-06-29 15:37:34 +02:00
Tom N Harris 36d61a2c62 fix incorrect usage of tpl_getMediaFile 2012-06-29 00:04:38 -04:00
Andreas Gohr 8fbb9b1406 added Input wrapper to feed.php 2012-06-24 15:17:38 +02:00
Andreas Gohr f9aa73bff8 code cleanup 2012-06-24 14:59:43 +02:00
Andreas Gohr 1a8210512c match on img tag in feed's img align replacement
this should avoid false positive matches on user content (which is
already escaped at this point)
2012-04-23 12:51:25 +02:00
Anika Henke 3c86b7ebf3 removed align attribute from images and inserted them only in the feed (FS#1351)
can someone with better regex skills please revise this?
2012-04-08 17:35:25 +01:00