summaryrefslogtreecommitdiff
path: root/lib/themeuploader.php
AgeCommit message (Collapse)Author
2010-09-02Fixes for Mac metadata files mucking up theme zip filesBrion Vibber
2010-09-02Ticket #2638: allow themes to specify a base theme to load with 'include' ↵Brion Vibber
setting in a theme.ini file
2010-09-02Fixes for custom theme upload:Brion Vibber
* skip more files (.xcf image sources, .html docs) * skip files before rejecting them for funky filenames! * allow period in filenames (eg foo-1.4.ttf) but blacklist some unsafe extensions-within-extensions
2010-06-21Improve error message per discussion on ↵Siebrand Mazeland
http://translatewiki.net/wiki/Thread:Support/Unclear_message. Spotted by Peter17 and changed per suggestion of McDutchie with approval of Brion.
2010-06-07Basic custom CSS and theme uploading features. 'local' subdir can now be ↵Brion Vibber
customized to a distinct directory and URL path to make it easier to separate custom themes for a multi-site farm running a common code base. Currently only one custom theme may be uploaded per site, saved with the name 'custom' and stored into the local/themes subdirectory. Administrators can upload a .ZIP archive containing a theme through the design admin panel; its contents are validated to ensure that only legit files are saved, and a 5M size quota is enforced. Theme upload requires the zip extension for PHP; if not present, theme uploading is disabled by default. Uploading and the custom CSS can be controlled via $config['theme_upload']['enabled'] and $config['custom_css']['enabled']. Configurable directory/path/server for 'local' subdirectory (currently only as used for themes; local plugins not yet switched over) Can set $config['local']['dir'] etc; not currently exposed in the admin panels. Per-site directories on a separate themes server could be set up such as: $config['local']['dir'] = '/path/to/themes/local/' . $_nickname; $config['local']['server'] = 'themes.example.com'; $config['local']['path'] = '/local/' . $_nickname; $config['local']['ssl'] = 'never';