summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/remove.pm
AgeCommit message (Collapse)Author
2010-06-23rcs_commit and rcs_commit_staged api changesJoey Hess
Using named parameters for these is overdue. Passing the session in a parameter instead of passing username and IP separately will later allow storing other session info, like username or part of the email. Note that these functions are not part of the exported API, and the prototype change will catch (most) skew, so I am not changing API versions. Any third-party plugins that call them will need updated though.
2010-06-23stop using REMOTE_ADDRJoey Hess
Everywhere that REMOTE_ADDR was used, a session object is available, so instead use its remote_addr method. In IkiWiki::Receive, stop setting a dummy REMOTE_ADDR. Note that it's possible for a session cookie to be obtained using one IP address, and then used from another IP. In this case, the first IP will now be used. I think that should be ok.
2010-05-14remove, rename: Add guards against XSRF attacks.Joey Hess
2010-05-06simplify formbuilder stylesheet specificationJoey Hess
Since all forms are wrapped in a template that defines the actual stylesheets, formbuilder just has to be told to turn on stylesheet mode, not what file is the style sheet.
2010-03-26fix the other half of the filecheck filename bugJoey Hess
2010-02-12add section informationJoey Hess
2010-01-18clarify errorJoey Hess
2009-12-14remove: Fix problem removing pages with utf-8 in the name.Joey Hess
2009-01-26only pass named parameters to the canremove hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2009-01-26remove unnecessary returnsJoey Hess
check_canremove/canrename is called only for its side effect (of failing if removal is not allowed), its return value is never used and returning something makes that unclear
2009-01-26Merge branch 'master' into poJoey Hess
2009-01-20fix removal form displayJoey Hess
The form was misdisplayed when displayed via comment removal.
2009-01-01remove: implemented a new canremove hook; use it in the po pluginintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-12-23finalise version 3.00 of the plugin apiJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-10-23more work on untrusted committersJoey Hess
Wired up check_canedit and check_canremove, still need to deal with check_canattach, and test.
2008-10-06remove: Avoid $_ breakage. (Stupid, stupid perl.)Joey Hess
This avoids another one of those $_ scoping issues where a deep call to a function that changes $_ clobbers the array that is being looped over.
2008-10-02remove, rename: Allow acting on attachments as a page is being created.Joey Hess
2008-09-27Export pagetitle, titlepage, linkpage.Joey Hess
2008-09-27pagetype is exportedJoey Hess
2008-09-27Merge commit 'smcv/beautify'Joey Hess
Conflicts: IkiWiki/Plugin/recentchanges.pm Note that smcv's approach of using urlto also gets the url right when redirecting to a non-html file, which is a better approach than my recent fix to recentchanges
2008-09-23rename, remove: Don't rely on a form parameter to tell whether the page ↵Joey Hess
should be treated as an attachment.
2008-09-21remove: redirect via urlto(), avoiding mentions of index.htmlSimon McVittie
2008-08-03add plugin safe/rebuild info (part 2 of 3)Joey Hess
(brain.. melting..)
2008-07-23foldageJoey Hess
2008-07-22add rcs_commit_staged and rcs_renameJoey Hess
Implemented for git and svn so far. Note that rcs_commit_staged does assume that the rcs has the ability to "stage" multiple changes for a later commit. Support for this varies, but all we really care about is staging removals and renames, which, AFAIK, all modern rcs's support.
2008-07-22rename checks improvementsJoey Hess
2008-07-22permission checking improvementsJoey Hess
Break out into function so it can be done up-front before confirmation too.
2008-07-21use check_canattachJoey Hess
As noted, this may be overkill..
2008-07-21skeleton rename pluginJoey Hess
2008-07-21error if nothing selectedJoey Hess
2008-07-21probably redundant symlink checkJoey Hess
2008-07-21remove debuggingJoey Hess
2008-07-21typosJoey Hess
2008-07-21typosJoey Hess
2008-07-21need to untaint..Joey Hess
2008-07-21a few bugfixesJoey Hess
Including a check the the file is in the srcdir, as opposed to some other directory.
2008-07-21support for removing attachmentsJoey Hess
2008-07-21simplified confirmation formJoey Hess
also, there's no titlepage conversion issues
2008-07-21touchupsJoey Hess
2008-07-21redirect after removalJoey Hess
2008-07-21basically, removal worksJoey Hess
Still need to consider all the edge cases..
2008-07-21form tweaks; use titleJoey Hess
2008-07-21implemented form state saving and retrievalJoey Hess
This is overkill for delete, since it's only used on Cancel. But it will be crucial for rename, so as to restore any pending edits after renaming a page.
2008-07-21basic removal form skeletonJoey Hess