function minecraftConfigurationComparatorHelper($x) { global $minecraftParameters; if (isset($minecraftParameters[$x])) { return indexInArray($x, $minecraftParameters); } else { //put it at bottom return 99999; } }
function garenaConfigurationComparatorHelper($x) { global $garenaParameters, $garenaConnectionParameters; if (isset($garenaParameters[$x])) { return indexInArray($x, $garenaParameters); } else { if (($ckey_info = garenaConfigurationConnectionKey($x)) !== false) { $connection_id = $ckey_info['id']; $subkey = $ckey_info['key']; if (isset($garenaConnectionParameters[$subkey])) { return $connection_id * 1000 + indexInArray($subkey, $garenaConnectionParameters); } else { return $connection_id * 1000 + 999; } } else { //put it at bottom return 99999; } } }
function channelConfigurationComparatorHelper($x) { global $channelParameters; if (isset($channelParameters[$x])) { return indexInArray($x, $channelParameters); } else { //put it at bottom return 99999; } }
function ghostConfigurationComparatorHelper($x) { global $ghostParameters, $bnetParameters; if (isset($ghostParameters[$x])) { return indexInArray($x, $ghostParameters); } else { if (($bkey_info = ghostConfigurationBnetKey($x)) !== false) { $bnet_id = $bkey_info['id']; $subkey = $bkey_info['key']; if (isset($bnetParameters[$subkey])) { return $bnet_id * 1000 + indexInArray($subkey, $bnetParameters); } else { return $bnet_id * 1000 + 999; } } else { //put it at bottom return 99999; } } }