That long if statement is true when the server name (or whatever is in $Request->ServerVariables("SERVER_NAME")->item()) neither begins with 'www' or 'mlx' nor is 'localhost'
If that is the case, it extracts the letters until the first '.' of the server name. For example if the server name is sef.mlxhelp.com, that would be 'sef'.>p>
Then it constructs the html code <inputH name="site" value="sef"/> out of it.
If the long if statement is false, the rest of the code is executed. That code seems to construct a list of sites, where you can select one.
Others with more experience with web coding will probably see much more.
But I would suggest giving some more details. Why do you suspect
$request->servervariables("SERVER_NAME") is undefinded? Which modules are used? Do you get any errors? What does the server log say?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.