Allow uploading of url-specific logo
Allow the admin to configure a logo from the stylesheet page, based on the active access url (so he can change the logo without having to change the stylesheet).
The logo should be stored in the /home/[url]/ directory (or /home/ if no access-url) and should be managed as a settings_current param:
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES
('portal_logo', NULL, 'text', 'stylesheets', '', 'PortalLogoTitle', 'PortalLogoComment', NULL, NULL, 1);
If the value is not filled (empty), then the default logo (header_logo.png) from the CSS is used.
Only allow uploading: png, gif, jpg, jpeg, svg (to avoid security flaws).
$PortalLogoTitle = "Portal logo";
$PortalLogoComment = "Pick the logo to show on your homepage. The logo should be 90 pixels high and up to a maximum of 800 pixels wide. Finer customization can be obtained by changing the CSS background properties and uploading a transparent gif/png logo image (to enable click over this area).";
Although the field type is "text", it should allow for the upload of an image (the "stylesheets" category is customized anyway).