Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component displayname="Host Utility" hint="I pull the url for the host" output="false"
- {
- public string function getHost() {
- var urlString = '';
- if( cgi.server_port != 80) {
- urlString = 'http://' & cgi.server_name & ':' & cgi.server_port;
- }
- else {
- urlString = 'http://' & cgi.server_name;
- }
- return urlString;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement