Esempio n. 1
0
<?php

set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include_once "aur.inc";
# access AUR common functions
set_lang();
# this sets up the visitor's language
include_once 'pkgfuncs.inc';
# package specific functions
check_sid();
# see if they're still logged in
# Set the title to the current query if required
if (isset($_GET['ID'])) {
    if ($pkgname = pkgname_from_id($_GET['ID'])) {
        $title = $pkgname;
    }
} else {
    if (!empty($_GET['K'])) {
        $title = __("Search Criteria") . ": " . $_GET['K'];
    } else {
        $title = __("Packages");
    }
}
# Retrieve account type
if (isset($_COOKIE["AURSID"])) {
    $atype = account_from_sid($_COOKIE["AURSID"]);
} else {
    $atype = "";
}
# Grab the list of Package IDs to be operated on
$ids = array();
Esempio n. 2
0
$pkgid = $_GET['ID'];
$votes = getvotes($pkgid);
$account = account_from_sid($SID);
if ($account == 'Trusted User' || $account == 'Developer') {
    ?>
<html>
<body>
<h3><?php 
    echo account_from_sid($SID);
    ?>
</h3>
<h2>Votes for <a href="packages.php?ID=<?php 
    echo $pkgid;
    ?>
"><?php 
    echo pkgname_from_id($pkgid);
    ?>
</a></h2>
<?php 
    while ($row = mysql_fetch_assoc($votes)) {
        $uid = $row['UsersID'];
        $username = $row['Username'];
        ?>
<a href="account.php?Action=AccountInfo&ID=<?php 
        echo $uid;
        ?>
">
<?php 
        echo $username;
        ?>
</a><br />