* moved wt_presets to DB
* scales are now saved sensibly instead of just being dumped as is (also, tables have now constrains)
* added admin=weight-presets to edit presets
* added an internal user on id:0 who 'owns' the wt-presets and the +1 rates on new comments
* consequently added constraints to comment-related tables
Misc:
* Util::toJSON() priorizes its flags over CFG_DEBUG, wich fixes the modelviewer-redButton
* moved terrible javascript-dump from admin-page to template
* removed most templates by sensibly restructuring lvTab-data. Util::toJSON() does the rest.
* taught Util::toJSON() to recognize values prefixed with $ as js-code
* use Util::toJSON whenever possible
* misc
- mail attachments are displyed again
- always show all currency rewards on Quest-LVs
- suppress an error, when encountering unused ItemMods
* fixed typo preventing management of custom weight scales
* added forgotten GET-Parameter to sanitization, preventing rating of comments
* avoid hardcoding locales
* do not show tooltip on BUTTON_WOWHEAD
- rewrote currencies, achievements, events, factions
- GenericPage:
* moved more checks from Util
* structured and commented GenericPage to be easier to comprehend
* added GenericPage::postCache() to modify cached data before display (e.g. update time for events)
- fixed:
* parsing events from markdown (e.g. articles)
* huge padding of minibox headings (css)
* Loot passing jsGlobals to template
* ItemList::getExtendedCost passing jsGlobals to template
* categories for factions
* conflicting GenericPage::$subject when displaying 'notFound'
* load of typos
- added ObjectPage and ObjectsPage
- moved loot-related functions from Util to own class
- moved template-related functions from Util to GenericPage
- removed redundancies from user class
- enabled cache (may need some tweaking but it finally works as it should)
- some bugfixes