Commit 15a08771 authored by Frank Lichtenheld's avatar Frank Lichtenheld

Delete unused script

Originally used by jvw for debugging, but I never used it and jvw hasn't
done anything in years, so remove that cruft.
parent f99a4acd
<h2><a name="search_packages" id="search_packages">Search package directories</a></h2>
<form method="GET" action="search">
<label for="kw">Keyword:</label>
<input type="text" size="30" name="keywords" id="kw">
<input type="submit" value="Search"> <input type="reset" value="Reset">
Search on:
<input type="radio" name="searchon" value="names" id="onlynames" checked="checked">
<label for="onlynames">Package names only</label>&nbsp;&nbsp;
<input type="radio" name="searchon" value="all" id="descs">
<label for="descs">Descriptions</label>
<input type="radio" name="searchon" value="sourcenames" id="src">
<label for="src">Source package names</label>
<select name="version">
<option value="experimental">experimental</option>
<option value="unstable">unstable</option>
<option value="testing">testing</option>
<option value="stable">stable</option>
<option value="oldstable">oldstable</option>
<option value="all" selected="selected">any</option>
<select name="release">
<option value="main">main</option>
<option value="contrib">contrib</option>
<option value="non-free">non-free</option>
<option value="all" selected="selected">any</option>
<p>There are shortcuts for some searches available:</p>
<li><code><var>name</var></code> for
the search on package names.</li>
for the search on source package names.</li>
<h2><a name="search_contents" id="search_contents">Search the contents of packages</a></h2>
<P>This search engine allows you to search the contents of Debian
distributions for any files (or just parts of file names) that are
part of packages.
You can also get a full list of files in a given package.
<form method="GET" action="">
<label for="keyword">Keyword:</label>
<input type="text" size="30" name="word" id="keyword"> &nbsp;
<input type="submit" value="Search">
&nbsp;<input type="reset" value="Reset">
<input type="radio" name="searchmode" value="searchfiles" id="searchfiles" checked="checked">
<label for="searchfiles">packages that contain files named like this</label>
<input type="radio" name="searchmode" value="searchfilesanddirs" id="searchfilesanddirs">
<label for="searchfilesanddirs">packages that contain files or directories named like this</label>
<input type="radio" name="searchmode" value="searchword" id="searchword">
<label for="searchword">packages that contain files or directories whose names contain the keyword</label>
<input type="radio" name="searchmode" value="filelist" id="filelist">
<label for="filelist">all files in this package</label>
<label for="casesens">Case sensitive:</label>
<select name="case" id="casesens">
<option value="insensitive" selected="selected">no</option>
<option value="sensitive">yes</option>
<label for="distro">Distribution:</label>
<select name="version" id="distro">
<option value="oldstable">oldstable</option>
<option value="stable" selected="selected">stable</option>
<option value="testing">testing</option>
<option value="unstable">unstable</option>
<label for="architecture">Architecture:</label>
<select name="arch" id="architecture">
<option value="i386" selected="selected">Intel x86</option>
<option value="m68k">Motorola 680x0</option>
<option value="alpha">Alpha</option>
<option value="amd64">AMD64</option>
<option value="sparc">SPARC</option>
<option value="powerpc">PowerPC</option>
<option value="arm">ARM</option>
<option value="hppa">HP PA/RISC</option>
<option value="ia64">Intel IA-64</option>
<option value="mips">MIPS</option>
<option value="mipsel">MIPS (DEC)</option>
<option value="s390">IBM S/390</option>
<option value="hurd-i386">Hurd (i386)</option>
<div class="clr"></div>
</div> <!-- end inner -->
function go($script)
$pipes = null;
$proc = proc_open("./$script php", array(
0 => array('pipe', 'r'),
1 => array('pipe', 'w'),
2 => array('pipe', 'w')
), $pipes);
foreach ($_GET as $k => $v) {
fwrite($pipes[0], urlencode($k)."=".urlencode($v)."\n");
$stderr = fread($pipes[2], 4096);
$exit = proc_close($proc);
if ($exit) {
echo "<h1>Error happened, code $exit</h1>\n";
echo "<pre>".htmlspecialchars($stderr);
echo "</pre>";
$SUITES = array('oldstable', 'stable', 'testing', 'unstable', 'experimental');
$pi = substr($_SERVER["PATH_INFO"], 1);
$elems = explode('/', $pi);
if ($pi == "") {
} elseif ($pi == 'search') {
} elseif ($elems[0] == 'package' && count($elems) == 2) {
$_GET['searchon'] = 'names';
$_GET['keywords'] = $elems[1];
$_GET['suite'] = 'all';
$_GET['exact'] = 1;
} elseif ($elems[0] == 'source' && count($elems) == 2) {
$_GET['searchon'] = 'sourcenames';
$_GET['keywords'] = $elems[1];
$_GET['suite'] = 'all';
$_GET['exact'] = 1;
} elseif (in_array($elems[0], $SUITES) && count($elems) == 2) {
$_GET['package'] = $elems[1];
$_GET['suite'] = $elems[0];
} elseif (in_array($elems[0], $SUITES) && count($elems) == 3) {
} elseif (substr($pi, 0, 4) == 'src:') {
} elseif (!eregi('[^a-z0-9+.-]', $pi)) {
} else {
echo "404 not found";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment