in reply to Re^5: puzzled by pages
in thread puzzled by pages
sub transform { if (!$Session->{'isAuthenticated'}) { #Following statement checks if site is www prefix if so it check +s tempo or mlxhelp and uses appropriate stylesheet #for each this only checks www. prefix need another to check the + rest of the potential matches if ($Request->ServerVariables("SERVER_NAME")->item()=~/(\w+)\.co +m/) { $domain = $1; #$Response->write("This is the domain"); if ($1 eq 'tempohelp') { my $trns= $Server->MapPath("Transforms/tpLogin.xsl"); return $trns; } if ($1 eq 'mlxhelp') { $Response->write("This is the domain $1"); my $trns=$Server->MapPath("Transforms/pLogin.xsl"); return $trns; } } #closes wwww prefix check.. if (!(substr($Request->ServerVariables("SERVER_NAME")->item(),0,3) + eq "www") && !(substr($Request->ServerVariables("SERVER_NAME")->item +(),0,3) eq "mlx") && !(lc($Request->ServerVariables("SERVER_NAME")->i +tem()) eq "localhost")) { $Request->ServerVariables("SERVER_NAME")->item() =~ /([\w]*)\./; $str .= ".$1."; $Response->write("this is $str"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: puzzled by pages
by kyle (Abbot) on Jun 11, 2008 at 19:01 UTC | |
by grashoper (Monk) on Jun 11, 2008 at 23:47 UTC |