Commit by DotMG :: r1685 /branches/1.3/setup/ (4 files in 2 dirs): (link)
refs #519, #97 : language packs are dynamically checked upon install. the installer will give the ability to choose one from the language packs present as default lang.
Commit by DotMG :: r1679 /branches/1.3/ (wikka.php lang/en/en.inc.php): (link)
refs #959, 3 constants are used before the lang file is loaded in case of critical problems. These constants should not be placed in lang file, but in top of wikka.php which uses them.
Commit by DotMG :: r1665 /branches/1.3/setup/ (install.php inc/functions.inc.php): (link)
Now that update_default_page() is available, we can safely replace long SQL insert in setup/install.php with a simple call to update_default_page(). I've added a parameter $note to setup/inc/functions.inc.php#update_default_page() to which we would pass "Upgrading from 1.2 to 1.3" This commit also adds WikkaConfig page in case of an upgrade. And some merging of ACLS setting was also performed to simplify the install process.
Commit by DotMG :: r1643 /branches/1.3/ (4 files in 4 dirs): (link)
refs #38
I made a script to detect all possible constant used in the Wikka but not defined anywhere. It showed that the following constants aren't defined :
* RFC_MAX_EMAIL_LINE_LENGTH (libs/Compatibilily.lib.php)
* NO_PAGES_FOUND_MESSAGE (actions/category/category.php)
* STATUS_NO_PAGES_EDITED (actions/mychanges/mychanges.php)
For RFC_MAX_EMAIL_LINE_LENGTH, I don't know if it should be defined by PHP, a Web search returned no result explaining the use of this constant. For the other 2, I could make the fix.
In comments.xml and recentchanges.xml handlers, just modified VALID_FORMATS in comments to reflect FEED_VALID_FORMATS.
Commit by DotMG :: r1641 /branches/1.3/formatters/wakka.php: (link)
refs #830
For code blocks (%% ... %%) containing backticks comments (`` ... ``), the whole content of the code block is discarded. Added ^ and $ anchors to the preg patter for backticks.
Commit by DotMG :: r1638 /branches/1.3/ (17 files in 17 dirs): (link)
backlinks: $this->getPageTag() returns page_tag as key in the array and not tag. calendar: parameters month and year on the action not properly processed colour: include_once should be just include, otherwise, {{colour}} after a first use of {{color}} or {{colour}} would fail. contact: phpDoc changes feedback: fatal error (syntax error) files: replace $this->method with $this->handler highscores.php: removed notice lastedit.php: removed notices lastusers.php: removed notices ownedpages.php: Use of Wakka:$reg_username which is not initialized to the user currently registered. Reverting to use of method GetUserName() rss.php: config('onyx_rss') not defined wantedpages: replace tag with page_tag as a result of LoadPagesLinkingTo()
Commit by DotMG :: r1636 /branches/1.3/ (3 files in 3 dirs): (link)
Refs #398
- In libs/Wakka.class.php, a proper initialization of $this->registered was needed.
- In actions/mypages/mypages.php : Removed test with $page[owner] , because actually, all items returned by LoadPagesByOwner are pages owned by the user.
- In lang/en/en.inc.php : Changed "You" to "%s", because MyPages now can list pages owned by a given user (for admin). This change shoud be propagated to other lang.
Commit by DotMG :: r1635 /branches/1.3/handlers/recentchanges.xml/recentchanges.xml.php: (link)
Refs #250
- Removes Notices and error messages to avoid that the resulting XML feed is invalid, done in double step
(Fixed FEED_IMAGE_URL not defined, replaced $this->method with $this->handler)
(Added ob_start() and ob_end_clean() to catch all other possible error messages
- Fixed double escaping of ampersands in URL
Commit by DotMG :: r1634 /branches/1.3/ (4 files in 4 dirs): (link)
### STOP REFERRER SPAM
SetEnvIfNoCase Referer ".*(adultsite|picturesplace|learnthebiz|pi-o|erotica|ghettoinc|port5|bulk-email|camgirls|paris-hilton|modelos|kredit|handyflirt24|versicherung|wwww|erotower|krank|x-1000|flirtnet|blowjob|agedwife|in-the-vip|boysfirsttime|milf|captain-stabbin|tranny|Kontakt|erotik|fetish|frauen|hardcore|fick|krankenversicherung|jinnan-cross|8thstreet|xxx|XXX|ficken|fuck).*" BadReferrer
order deny,allow
deny from env=BadReferrer
<IfModule mod_rewrite.c>
# turn on rewrite engine
RewriteEngine on
# if request is a directory, make sure it ends with a slash
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*/[^/]+)$ $1/
# if not rewritten before, AND requested file is wikka.php
# turn request into a query for a default (unspecified) page
RewriteCond %{QUERY_STRING} !wakka=
RewriteCond %{REQUEST_FILENAME} wikka.php
RewriteRule ^(.*)$ wikka.php?wakka= [QSA,L]
# if not rewritten before, AND requested file is a page name
# turn request into a query for that page name for wikka.php
RewriteCond %{QUERY_STRING} !wakka=
RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
</IfModule>
AS400 (RPG/400, DB2 SQL, CL, DSPF, Cobol): 5 years
Other projects
I'm working with a malagasy spell checker at the moment. The source is actually closed but when I think I'm ready, this program will be opensource.
Actually, what I do is collecting all possible correct words, with a myspell-like files.