コード例 #1
0
ファイル: section.php プロジェクト: christ7622/arago-oe-dev
    $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;
}
コード例 #2
0
ファイル: index.php プロジェクト: jdegges/gumstix-pip-oe
 * 
 * You should have received a copy of the GNU Library General Public License along
 * with this library; see the file COPYING.LIB.  If not, write to the Free
 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 * 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" />