Not Found


"; if(strlen($no_path) < 3) echo " " . $no_path . " is too short to be used as a search string. Go back and try something longer






"; else echo " The function " . $no_path . " could not be found. Try again






"; commonFooter(); } function multi_choice($file, $lang) { global $full_match; $request = $_GET['function']; $switch = (int)0; if($full_match > 1) { commonHeader('multiple choice'); echo "

"; echo "

PHP-GTK 1 Manual search results for "$request"

\n"; echo "
"; } elseif($full_match < 1) { commonHeader('multiple choice'); echo "

"; echo "

There is no exact match for "$request" in the PHP-GTK 1 Manual.
Here is a list of the nearest matches:

\n"; echo "
"; $switch = 1; } for($i = 0; $i < sizeof($file); $i++) { $path[$i] = str_replace("/manual1/", "", $file[$i]); $bits[$i][] = explode(".", $path[$i]); foreach($bits[$i] as $piece) { $GTK = substr(strtoupper($piece[0]), strlen($lang) + 1); $classlink = strtolower($file[$i]); if(strpos($classlink, "pt_br")) $classlink = str_replace("pt_br", "pt_BR", $classlink); if(sizeof($piece) == 5 && $piece[2] == "method") { similar_text(strtolower($request), strtolower($piece[3]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; /* We should have a nice clean separate function for $full_match == 1) */ } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match == 0)) { echo "

 $piece[3]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 5 && $piece[2] == "property") { $prop = strtolower(substr($piece[1], 3, strlen($piece[1]))); if(strstr($prop, "event")) $prop = "event"; similar_text(strtolower($request), strtolower($piece[3]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match == 0)) { echo "

 \$$prop->$piece[3] as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 5) { similar_text(strtolower($request), strtolower($piece[3]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match == 0)) { echo "

 "$piece[3]" as in the $piece[1] $piece[2]"; $i++; } } elseif(sizeof($piece) == 4 && $piece[1] == "enum") { similar_text(strtolower($request), strtolower($piece[2]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "

 [$piece[2]Value] as in the $piece[2] $piece[1]s"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 4 && $piece[2] == "constructor") { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "

 $piece[1]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 4) { similar_text(strtolower($request), strtolower($piece[2]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "

 $piece[2]() as in the $GTK function"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 3 && $piece[2] == "constructor") { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "

 $piece[1]() as in the $piece[1] $piece[2]"; if($switch == 0) echo "?"; echo "

"; } } elseif(sizeof($piece) == 3) { similar_text(strtolower($request), strtolower($piece[1]), $percent); if($percent == 100 && $full_match == 1) { header("Location: http://$_SERVER[HTTP_HOST]$classlink"); exit; } elseif(($percent == 100 && $full_match > 1) || ($percent > 50 && $full_match !== 1)) { echo "

 $piece[1] as in the $piece[1] class"; if($switch == 0) echo "?"; echo "

"; } } } } echo "
Back"; commonFooter(); } $function = strtolower($_GET['function']); if(strlen($function) < 3) { make404($lang); exit; } $file = find_manual_page($lang, $function); if(is_array($file)) { if(sizeof($file) < 2) { $file = strtolower($file[0]); if(strpos($file, "pt_br")) $file = str_replace("pt_br", "pt_BR", $file); header("Location: http://$_SERVER[HTTP_HOST]$file"); exit; } multi_choice($file, $lang); exit; } elseif($file && !is_array($file)) { $file = strtolower($file); if(strpos($file, "pt_br")) $file = str_replace("pt_br", "pt_BR", $file); header("Location: http://$_SERVER[HTTP_HOST]$file"); exit; } else { make404($lang); exit; } ?>