From 15a0877194f3d709bf080d35a51a649ea1ef7b51 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 4 Jul 2009 17:27:04 +0200 Subject: [PATCH] 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. --- cgi-bin/index.html | 111 --------------------------------------------- cgi-bin/index.php | 60 ------------------------ 2 files changed, 171 deletions(-) delete mode 100644 cgi-bin/index.html delete mode 100644 cgi-bin/index.php diff --git a/cgi-bin/index.html b/cgi-bin/index.html deleted file mode 100644 index e4084a3..0000000 --- a/cgi-bin/index.html +++ /dev/null @@ -1,111 +0,0 @@ -

Search package directories

-
-

- - - -
-Search on: - -   - - - - - -
-Distribution: - -Section: - - - -

-
-

There are shortcuts for some searches available:

- -
-

Search the contents of packages

-

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. -
-

-

- -   - -
-Display: -
- - - -
- - -
- - -
- - - -
- - - - - - -

- -
-
- diff --git a/cgi-bin/index.php b/cgi-bin/index.php deleted file mode 100644 index 006db80..0000000 --- a/cgi-bin/index.php +++ /dev/null @@ -1,60 +0,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"); - } - fclose($pipes[0]); - fpassthru($pipes[1]); - $stderr = fread($pipes[2], 4096); - $exit = proc_close($proc); - if ($exit) { - echo "

Error happened, code $exit

\n"; - } - echo "
".htmlspecialchars($stderr);
-	echo "
"; -} - -$SUITES = array('oldstable', 'stable', 'testing', 'unstable', 'experimental'); -$pi = substr($_SERVER["PATH_INFO"], 1); -$elems = explode('/', $pi); -if ($pi == "") { - readfile("index.html"); - exit; -} elseif ($pi == 'search') { - go("search_packages.pl"); -} elseif ($elems[0] == 'package' && count($elems) == 2) { - $_GET['searchon'] = 'names'; - $_GET['keywords'] = $elems[1]; - $_GET['suite'] = 'all'; - $_GET['exact'] = 1; - go("search_packages.pl"); -} elseif ($elems[0] == 'source' && count($elems) == 2) { - $_GET['searchon'] = 'sourcenames'; - $_GET['keywords'] = $elems[1]; - $_GET['suite'] = 'all'; - $_GET['exact'] = 1; - go("search_packages.pl"); -} elseif (in_array($elems[0], $SUITES) && count($elems) == 2) { - $_GET['package'] = $elems[1]; - $_GET['suite'] = $elems[0]; - go("show_package.pl"); -} elseif (in_array($elems[0], $SUITES) && count($elems) == 3) { - header("Location: http://merkel.debian.org/~jeroen/pdo/$elems[0]/".urlencode($elems[2])); - exit; -} elseif (substr($pi, 0, 4) == 'src:') { - header("Location: http://merkel.debian.org/~jeroen/pdo/source/".urlencode(substr($pi,4))); - exit; -} elseif (!eregi('[^a-z0-9+.-]', $pi)) { - header("Location: http://merkel.debian.org/~jeroen/pdo/package/".urlencode($pi)); - exit; -} else { - echo "404 not found"; -} -- 2.39.2