"; ?> Slackware Package Search
\n"); } elseif (!in_array($clean_v, $versions)) { array_push($arr_fatal, "There's no version named slackware-".stripslashes($clean_v).".
\n"); } if ($clean_t == "") { array_push($arr_fatal, "You have to select a search type, it's a mandatory field.
\n"); } elseif (!in_array($clean_t, $search_types)) { array_push($arr_fatal, "The search type you are trying to use is not valid.
\n"); } if ($clean_q == "") { array_push($arr_fatal, "You have to enter a search string, it's a mandatory field.
\n"); } if (!preg_match("/[0-9]{1,2}/", $p)) { array_push($arr_fatal, "Page number must be an integer.
\n"); } // if there's some fatal error we show it if (count($arr_fatal) > 0) { for($i=0;$iFatal error: ".$arr_fatal[$i]; } } else { // ok, so the input is all right.. let's figure out what query to use // and let's go! // TODO - query cache //$query_hash = crc32("$clean_v $clean_t $clean_q"); if ($clean_t == "1") { $search_type = "package"; include("../includes/packagesearch.php"); } elseif ($clean_t == "2") { $search_type = "file"; include("../includes/filesearch.php"); } } ?>