| 1 |
# Copyright (C) 2001 Craig Small <csmall@debian.org>
|
| 2 |
# Copyright (C) 2001, 2002, 2003, 2004, 2005 Martin Michlmayr <tbm@cyrius.com>
|
| 3 |
# This file may be distributed under the GPL v2 or higher.
|
| 4 |
|
| 5 |
<?
|
| 6 |
session_start();
|
| 7 |
include("config.inc");
|
| 8 |
include("common.inc");
|
| 9 |
|
| 10 |
function print_maintainers() {
|
| 11 |
if ( ($db = open_db())) {
|
| 12 |
$sql = "SELECT * FROM manager ORDER by login";
|
| 13 |
if (! ($query = pg_exec($db, $sql))) {
|
| 14 |
echo "Problem with query", pg_ErrorMessage($db), "<BR>";
|
| 15 |
echo "SQL was: $sql.<BR>\n";
|
| 16 |
pg_Close($db);
|
| 17 |
return FALSE;
|
| 18 |
}
|
| 19 |
$rows = pg_NumRows($query);
|
| 20 |
for ($i = 0 ; $i < $rows ; $i++) {
|
| 21 |
$row = pg_Fetch_Array($query, $i);
|
| 22 |
echo "<A href=\"amprofile.php?login=", trim($row["login"]), "&"; ?><?=SID?><?
|
| 23 |
echo "\">";
|
| 24 |
if ($row["is_active"] == "f") { # put inactive managers in brackets
|
| 25 |
echo "(";
|
| 26 |
}
|
| 27 |
echo $row["login"];
|
| 28 |
if ($row["is_active"] == "f") {
|
| 29 |
echo ")";
|
| 30 |
}
|
| 31 |
echo " - ", $row["name"], " <",
|
| 32 |
$row["email"], "></A><BR>\n";
|
| 33 |
}
|
| 34 |
|
| 35 |
pg_Close($db);
|
| 36 |
return TRUE;
|
| 37 |
}
|
| 38 |
return FALSE;
|
| 39 |
}# print_maintainers()
|
| 40 |
?>
|
| 41 |
#use wml::nmpage title="Debian New Maintainer - AM Main Page"
|
| 42 |
<?
|
| 43 |
|
| 44 |
if (!session_is_registered("s_username") || !session_is_registered("s_isam")) {
|
| 45 |
?>
|
| 46 |
<STRONG>
|
| 47 |
You should not be here!</STRONG>
|
| 48 |
<? } else {
|
| 49 |
session_register("s_username");
|
| 50 |
session_register("s_isam");
|
| 51 |
session_register("s_isfd");
|
| 52 |
session_register("s_isdam");
|
| 53 |
?>
|
| 54 |
<H1>Debian New Maintainer</H1><BR>
|
| 55 |
<? if ($_SESSION['s_isfd'] == 't') { ?>
|
| 56 |
<P>Here is a list of known Application Managers:<BR>
|
| 57 |
<? print_maintainers(); ?>
|
| 58 |
<? } # Is fd
|
| 59 |
} # Registered session ?>
|