portal local-server ad-image load
Function
The portal local-server ad-image load command loads an advertisement image file to the built-in Portal server login page.
The undo portal local-server ad-image load command deletes the advertisement image file loaded to the built-in Portal server login page.
By default, no advertisement image file is loaded to the built-in Portal server login page.
Format
portal local-server [ terminal-type { pc | phone } ] ad-image load ad-image-file
portal local-server page-name wechat-authen terminal-type phone ad-image load ad-image-file
undo portal local-server [ terminal-type { pc | phone } ] ad-image load
undo portal local-server page-name wechat-authen terminal-type phone ad-image load
Parameters
Parameter |
Description |
Value |
---|---|---|
terminal-type { pc | phone } |
Specifies a terminal type.
If the terminal type is not specified, this function only takes effect on the PC. To make this function take effect on both the PC and the mobile phone, you need to configure two commands for the PC and the mobile phone. |
- |
page-name wechat-authen |
Indicates the WeChat authentication page. |
- |
ad-image-file | Specifies the name of an advertisement image file to be loaded to the built-in Portal server login page. The size of the advertisement image file must be equal to or less than 256 KB. A file of 670 x 405 pixels is recommended. |
The value is a string of 5 to 64 case-sensitive characters without spaces, in the format of [ drive ] [ path ] filename.
|
Usage Guidelines
Usage Scenario
There is a blank area on the login page of the default page package used by the built-in Portal server. Users can customize this area by loading an advertisement image file. When the login page needs to be customized based on special requirements, the administrator can upload the user-defined advertisement image file to the device and run the portal local-server ad-image load command. After the advertisement image file is loaded, the user-defined advertisement images are displayed on the built-in Portal server login page for authentication.
Prerequisites
The user-defined advertisement image file has been uploaded to the device.