예제 #1
0
        $row['homepage'] = 'http://' . $row['homepage'];
    }
    $bb->horizHeadRow("Homepage:", "<a href=\"{$row['homepage']}\" target=\"_blank\">" . "{$row['homepage']}</a></td>\n");
}
//XXX: Remove entirely?
//$bb->horizHeadRow("Registered since:", $row['created']);
$bb->horizHeadRow("Additional information:", empty($row['userinfo']) ? "&nbsp;" : $row['userinfo']);
$bb->horizHeadRow("VCS Access:", implode("<br />", $access));
if ($row['wishlist'] != "") {
    $bb->horizHeadRow("Wishlist:", make_link("/wishlist.php/" . $row['handle'], "Click here to be redirected."));
}
if ($row['admin'] == 1) {
    $bb->fullRow("{$row['name']} is a PECL administrator.");
}
$query = "SELECT p.id, p.name, m.role\n          FROM packages p, maintains m\n          WHERE m.handle = '{$handle}'\n          AND p.id = m.package\n          AND p.package_type = 'pecl'\n          ORDER BY p.name";
$sth = $dbh->query($query);
$bb->end();
print "</td><td valign=\"top\">\n";
$bb = new BorderBox("Maintaining These Packages:", "100%", "", 2, true);
if ($sth->numRows() > 0) {
    $bb->headRow("Package Name", "Role");
    while (is_array($row = $sth->fetchRow())) {
        $bb->plainRow("<a href=\"/package/" . $row['name'] . "\">" . $row['name'] . "</a>", $row['role']);
    }
}
$bb->end();
print "<br />\n";
display_user_notes($handle, "100%");
print "<br /><a href=\"/account-edit.php?handle={$handle}\">" . make_image("edit.gif", "Edit") . "</a>";
print "</td></tr></table>\n";
response_footer();
예제 #2
0
<?php 
}
?>
</table>

<br />

<?php 
// }}}
// {{{ "Available Releases"
if (!$relid) {
    $bb = new BorderBox("Available Releases", "90%", "", 5, true);
    if (count($pkg['releases']) == 0) {
        print "<i>No releases for this package.</i>";
    } else {
        $bb->headRow("Version", "State", "Release Date", "Downloads", "");
        foreach ($pkg['releases'] as $r_version => $r) {
            if (empty($r['state'])) {
                $r['state'] = 'devel';
            }
            $r['releasedate'] = substr($r['releasedate'], 0, 10);
            $dl = $downloads[$r_version];
            $downloads_html = '';
            foreach ($downloads[$r_version] as $dl) {
                $downloads_html .= "<a href=\"/get/{$dl['basename']}\">" . "{$dl['basename']}</a> (" . sprintf("%.1fkB", @filesize($dl['fullpath']) / 1024.0) . ")";
                $urls = package_dll::getDllDownloadUrls($pkg['name'], $r_version, $pkg['releases'][$r_version]['releasedate']);
                if ($urls) {
                    $downloads_html .= "&nbsp;&nbsp;<a href=\"/package/{$pkg['name']}/{$r_version}/windows\">" . "<img src=\"/gifs/windows-icon.png\" />DLL</a>";
                }
            }
            $link_changelog = "<small>[" . make_link("/package-changelog.php?package=" . $pkg['name'] . "&release=" . $r_version, "Changelog") . "]</small>";
예제 #3
0
				}
				
				return false;
			}
        //-->
        </script>
		<form action="<?php 
        echo htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES);
        ?>
" name="mass_reject_form" method="post">
		<input type="hidden" value="" name="cmd"/>
		<?php 
        $bb = new BorderBox("Account Requests", "100%", "", 7, true);
        $requests = $dbh->getAssoc("SELECT u.handle,u.name,n.note,u.userinfo,u.created FROM users u " . "LEFT JOIN notes n ON n.uid = u.handle " . "WHERE u.registered = 0 " . "ORDER BY created ASC");
        if (is_array($requests) && sizeof($requests) > 0) {
            $bb->headRow("<font face=\"Marlett\"><a href=\"#\" onclick=\"toggleSelectAll(this)\">6</a></font>", "Name", "Handle", "Account Purpose", "Status", "Created at", "&nbsp;");
            foreach ($requests as $handle => $data) {
                list($name, $note, $userinfo, $created_at) = $data;
                // Grab userinfo/request purpose
                if (@unserialize($userinfo)) {
                    $userinfo = @unserialize($userinfo);
                    $account_purpose = $userinfo[0];
                } else {
                    $account_purpose = $userinfo;
                }
                $rejected = preg_match("/^Account rejected:/", $note);
                if ($rejected) {
                    continue;
                }
                $bb->plainRow('<input type="checkbox" value="' . $handle . '" name="uid[]" onmousedown="highlightAccountRow(this)"/>', sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', $name), sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', $handle), sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', nl2br($account_purpose)), sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', $rejected ? "rejected" : "<font color=\"#c00000\"><strong>Outstanding</strong></font>"), sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', $created_at), sprintf('<span style="cursor: hand" onmousedown="highlightAccountRow(this)">%s</span>', "<a onmousedown=\"event.cancelBubble = true\" href=\"" . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES) . "?acreq={$handle}\">" . make_image("edit.gif") . "</a>"));
            }