Ability to brand skin with custom override logo (SKINS)(LANG)

Version 1.57.0


CMD_SKINS or CMD_API_SKINS Method: POST enctype="multipart/form-data" action=upload_logo file=logo.gif name=enahanced Where the file can be any image file. DA compares the extension to /etc/mime.types to ensure it exists and starts with "image/" else it's rejected. You can include "which=2" to the POST or other related GET/POST queries to work on logo2.* instead of logo.* =================== SKIN - css now has "pencil" and "edit_cog" class to show IMG_PENCIL and IMG_EDIT_COG icons, shown in the |SKINS| table in skins.conf. style.css - files_user.conf: IMG_EDIT_COG=images/cog.png IMG_PENCIL=images/pencil.png - files_reseller.conf: CMD_SKINS_CUSTOMIZE=reseller/skins_customize.html LF_SKINS=reseller/skins.html - new file: /usr/local/directadmin/data/skins/enhanced/reseller/skins_customize.html - skin.conf add the IMG file you want to use for the logo. For enhanced, it's: logo_token=IMG_SKIN_HEADER logo2_token=IMG_SKIN_HEADER2 where any User call to IMG_SKIN_HEADER is swapped with the custom logo. =================== API && json=yes View custom settings for a skin: CMD_SKINS?action=edit_customization&name=enhanced&json=yes dumps values similar to the skin tokens: { "CUSTOM_LOGO_TOKEN": "IMG_SKIN_HEADER", "HAS_CUSTOMIZATION": "1", "HAS_CUSTOM_LOGO": "1", "HAS_CUSTOM_LOGO2": "1", "name": "enhanced" } Show skins/settings: CMD_SKINS?json=yes { "can_logo": { "enhanced": "./data/skins/enhanced", "evolution": "../../../home/admin/skins/evolution" } , "full_list": { "default": "./data/skins/default", "enhanced": "./data/skins/enhanced", "evolution": "../../../home/admin/skins/evolution", "power_user": "./data/skins/power_user" } , "skin_owners": { "default": "server", "enhanced": "server", "evolution": "admin", "power_user": "server" } } View custom logo (image response) CMD_SKINS?action=view_custom_logo&name&enhanced Clear Custom Logo: action=clear_custom_logo&name=enhanced Upload custom image: method: POST enctype="multipart/form-data" action=upload_logo file=name (via file select) You can include "which=2" to the POST or other related queries to work on logo2.* instead of logo.* =================== LANG - new file: /usr/local/directadmin/data/skins/enhanced/lang/en/internal/skins.txt - updates to: /usr/local/directadmin/data/skins/enhanced/lang/en/internal/commands.txt /usr/local/directadmin/data/skins/enhanced/lang/en/reseller/skins.html

Try DirectAdmin with a 30-day money back guarantee!