$pkgsearch = $_POST["pkgsearch"]; } if (isset($_POST["section"]) && $_POST["section"] != "") { $section = $_POST["section"]; } if (isset($_POST["arch"]) && $_POST["arch"] != "") { $arch = $_POST["arch"]; } else { $arch = ""; } if (isset($_POST["pkgname"]) && $_POST["pkgname"] != "") { $pkgname = $_POST["pkgname"]; } //print("$action"); switch ($action) { case "sectionslist": echo sectionslist(); break; case "searchletter": echo searchletter(); break; case "pkgquery": echo searchpkg("%{$pkgsearch}%", $arch); break; case "pkgname": echo pkgdetails($pkgname); break; case "section": echo searchsection($section); break; }
* USA. * */ require_once 'includes/config.inc'; require_once 'includes/functions.inc'; if (!check_database()) { die("Database not found and cannot be created."); } read_vars_from_get(array('name', 'arch', 'pkgsearch', 'letter', 'pkgname', 'section')); $ipkgoutput = ''; if (!empty($section)) { $ipkgoutput = searchsection($section); } elseif (!empty($letter)) { $ipkgoutput = searchpkg("{$letter}%", $arch); } elseif (!empty($pkgname)) { $ipkgoutput = pkgdetails($pkgname); } elseif (!empty($pkgsearch) or !empty($arch)) { $ipkgoutput = searchpkg("%{$pkgsearch}%", $arch); } $archs_list = get_arch_list(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Feed browser</title> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="all">@import "css/feed.css";</style> </head> <body > <div id="right">