00001 <?php
00015 function isLFSWorldError($string)
00016 {
00017 switch(trim(substr($string, 0, 50)))
00018 {
00019 case 'hl: no hotlaps found':
00020 case 'hl: no racer':
00021 case 'ch: invalid track':
00022 case 'ch: invalid car':
00023 case 'pst: no valid username':
00024 case 'pb: racer has no pbs':
00025 case 'no output':
00026 case 'can\'t reload this page that quickly after another':
00027 case 'hl_log is only available since version 1.2 and later':
00028 case '':
00029 return true;
00030 }
00031
00032 return false;
00033 }
00034
00035 ?>