You are viewing Revision 7 of Discuss_Version_0.30_DevTrack

This page is registered as a special page, however you are viewing a previous revision of the page. As such, the special page function will not be triggered.

One thing I've changed is in DoMaintPurgeOldRevs(). Previously we relied on stat to get the file modification time, and use that to determine when to remove the old revision based on $PurgeArchives. However, along the way it was changed to check the internal ts variable instead. This is all well and good, however, it presents a unique problem. If you have a page that has been unmodified for a year, and a spammer comes along and spams it, assuming your $PurgeArchives was set to 2 weeks, the last good copy of the page will be purged immediately, leaving only the spammed version. By checking the file modification time instead, it will guarantee that you have a previously known good copy for at least $PurgeArchives time, regardless of how old that good copy was.

-- AaronGraves Wed Jul 31 16:29:38 UTC 2013 (69.4.28.21)


Aneuch will now show you the number of comments on a discussion page in the link to the discussion page.

-- AaronGraves Wed Jul 31 17:58:39 UTC 2013 (69.4.28.21)


Link behavior was changed in the Markup() sub. Now if you create a link to a page that does not exist, the name is displayed surrounded by brackets, and there is a question mark after the name, which links to the edit command for that page (i.e. ?do=edit;page=PageName). The title element says "Create page PageName".

-- AaronGraves Thu Aug 1 15:12:51 UTC 2013 (69.4.28.21)


Categories can be implemented in a rudimentary way. The way I've done it on this site so far is to put the word "Category", followed by the category name, at the bottom of each page in that category (for example, "CategoryTest"). If you then search for "CategoryTest", you will see every page with that tag on it.

While it's not perfect, it's something that's available. Ultimately I'd like to make it better than this, similar to MediaWiki.

-- AaronGraves Thu Aug 1 15:16:08 UTC 2013 (69.4.28.21)


I updated Aneuch to use the environment variable PATH_INFO, which allows you to have URLs similar to http://www.mysite.com/aneuch.pl/HomePage. This does not require a change in the .htaccess file, however I have updated the htaccess.dist file which will be included in future tarballs.

-- AaronGraves Thu Aug 1 23:14:11 UTC 2013 (174.74.32.92)


An unfortunate bug cropped up after the switch to the PATH_INFO method. On sites where no .htaccess rules were employed (and the user relied on using aneuch.pl/PageName to access their pages) the cookie path was getting set incorrectly (basically, it was including the aneuch.pl part in the path).

This was not an immediately obvious problem, since everything functioned properly until you went to save a page. Upon the POST action, the cookie would be read incorrectly (since the path was wrong), and the edit was being rejected outright. So that was fixed today.

Also today, I implemented the TextCha feature. You set questions and their corresponding answers in your config.pl file by using the %QuestionAnswer hash. This should be an effective deterrent against automated bot spam, however it will not affect human spammers in any way. That's coming next, with BannedContent.

-- AaronGraves Mon Aug 5 02:42:21 UTC 2013 (174.74.32.92)


A lot of anti-spam work is taking place in Aneuch 0.30. Read the Discuss Spam page for the details.

-- AaronGraves Mon Aug 5 16:00:13 UTC 2013 (69.4.28.21)