Lasso Soft Inc. > Home

[lp_header_xPoweredBy]

Linklp_header_xPoweredBy
AuthorBil Corry
CategoryCustom Tag
Version8.5.x
LicensePublic Domain
Posted26 Aug 2006
Updated26 Aug 2006
More by this author...

Description

Via header, sets the X-Powered-By header.

By default, the header will look like:

X-Powered-By: Lasso Professional 8.5.1b5

Sample Usage

You can either put this tag at the top of the page:

  lp_header_xPoweredBy; // creates the header "X-Powered-By: Lasso Professional 8.5.1b5"

Or you can create a LassoStartup script that adds it to all pages:

  define_atbegin: { lp_header_xPoweredBy; };

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.

[

define_tag:'lp_header_xPoweredBy',
	-description='Via header, sets the X-Powered-By header.',
	-priority='replace',
	-optional='value';		// override default with this value

	if: !(local_defined:'value');
		// example default: Lasso Professional 8.5.1
		local:'value' = 'Lasso Professional ' (Lasso_Version: -LassoVersion);
	/if;
	
	content_header += 'X-Powered-By: ' (string:#value) '\r\n';
	
/define_tag;

]

Comments

No comments

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft