makelfslink.php

Go to the documentation of this file.
00001 <?php
00015 function makeLFSLink($host)
00016 {
00017     if(!is_array($host) ||
00018        !isset($host['hostName']) ||
00019        !isset($host['rules']) ||
00020        !isset($host['serverType']))
00021             return false;
00022     $out = 'lfs://|';
00023     $out .= htmlentities($host['hostName']) . '|';
00024     $out .= ($host['rules'] & 8) ? ('1|') : ('0|');
00025     $out .= ($host['serverType'] == 0) ? ('S1') : ('S2');
00026     return $out.'|/';
00027 }
00028 ?> 

Generated on Wed Oct 25 03:13:32 2006 for LFSWorldParsingProviderFramework by  doxygen 1.4.6