[lp_header_xPoweredBy]

Description

Link: [lp_header_xPoweredBy]
Author: Bil Corry
Category: Custom Tag
Version: 8.5.x
License: Public Domain
Posted: Aug. 26, 2006
Updated: Aug. 26, 2006
More by this author...
Via header, sets the X-Powered-By header.

By default, the header will look like:

X-Powered-By: Lasso Professional 8.5.1b5

Parameters

-value string, optional Optionally set the value for X-Powered-By header.

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[

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

none

Email:


Password:



Newest

Most Popular

Support tagSwap.net