Here are the results:
"; $dfield=substr($dist[$i],$j,1); if(($dfield==$ufield)||($ufield=="a")||($dfield=="a")||(($ufield=="m")&&($dfield="s"))||(($dfield=="i")&&($ufield=="v"))||($ufield=="n")) { $score++; // echo "match" . substr($dist[$i],8) . $ufield . $j . "
"; } else { $fail=$fail . $j; } } $scoreid[$i]=substr($dist[$i],8); $scores[$i]=$score; $failid[$i]=$fail; } $k=0; //k=index for dists for($n=0;$n<=8;$n++) //n=index for score { //loop scores for($i=0;$i<=$distnum;$i++) //i=index for distribution, as usual { if($scores[$i]==(8-$n)) //if dist scores 8,7,6,etc... { $scoresn[$k]=$scores[$i]; $scoreidn[$k]=$scoreid[$i]; $failidn[$k]=$failid[$i]; $k++; } } } for($i=0;$i<=$distnum;$i++) { $score=$scoresn[$i]; $name=$scoreidn[$i]; $fail=$failidn[$i]; $fails=(8-$score); if($score >= 5) { $link=subStr($name, strPos($name, "")+4-strPos($name, "")+2; $pos2=strPos($link, ""); $title=subStr($link, $pos1, $pos2-$pos1); echo "
"; echo "\n"; echo $name . "
"; if($fails==0) echo "Perfect match!
"; elseif($fails==1) echo "Failed this criterion:
"; else echo "Failed these criteria:
"; for($j=0;$j"; break; case 1: echo "Either too old or too current.
"; break; case 2: echo "Comes with a different desktop than you're used to.
"; break; case 3: echo "Doesn't ship with a 3D desktop.
"; break; case 4: echo "Not recommended for gaming, but might work.
"; break; case 5: echo "Doesn't come with the packaging system you like.
"; break; case 6: echo "Too rigid for you. Control freak. :)
"; break; // case 6: // echo "Doesn't have a Live CD version available.
"; // break; case 7: echo "Not appropriate for your level of skillzzz.
"; break; } } echo "
"; if ($fails >= 2) { echo ""; } } } ?>