[pmwiki-users] cookbook fatal error on pmwiki.org

Dominique Faure dominique.faure at gmail.com
Mon Mar 27 14:22:47 CST 2006

On 3/27/06, David Spitzley <dspitzle at wash.k12.mi.us> wrote:
> Actually, what would perhaps help things would be to add an admin-only "truncate" link to the history pages, which will actually chop off the history after whatever point you revert to.  Right now if you revert spam, the addition of the spam stays in the history file, which aside from bloating the length also things leaves references to the spam URLs in place.  Of late I've been hand modifying the files of spammed pages to get rid of the spam from the history.  If we could actually drop the stuff from the history entirely as an administrative function we could solve both the length problem and purge spammed content from page histories so that it isn't captured by search engines.  Any chance of that being doable?  Obviously we'd want to keep the existing "restore" links, as there are plenty of times when one would want to retain the history when reverting.

Maybe you may have a look at Cookbook.ExpireDiff. I'm used to install
it this way in the config.php:


if ($action == 'diff') {
  $ExpireDiffFmt = <<<__EOT__
<div id='wikiexpire'>
  <form action='\$PageUrl' method='post'>
    <input type='hidden' name='action' value='expirediff' />
    <input type='hidden' name='n' value='\$FullName' />
    <p>Expire difference(s) older than
      <input type='text' name='keepdays' value='7' /> day(s)</p>
    <input type='submit' />
  $HandleDiffFmt = array(&$PageStartFmt,


More information about the pmwiki-users mailing list