Requirements:<br><br> ' . formattext($p['reqmts']) . ' </p> '; $rss->addItem($item); } } } else { if ($_GET['src'] == 'duties') { include_once "getduties.php"; include_once "formattext.php"; $user = scrub($_GET['u']); $rss->title = '[FF] ' . $user . '\'s duties'; $rss->description = $user . '\' duties on FOSS Factory.'; $rss->link = $GLOBALS['SITE_URL'] . 'account.php#tabs'; list($rc, $duties) = getduties($user); if ($rc == 0) { foreach ($duties as $d) { $item = new FeedItem(); $item->title = $d['subject']; $item->link = $d['link']; $item->guid = $d['guid']; $item->date = $d['deadline']; $item->description = formatText($d['body']); $rss->addItem($item); } } } else { if ($_GET['src'] == 'projectevents') { include_once "formattext.php"; $pid = scrub($_GET['p']);
header("Content-type: text/plain"); $username = $_REQUEST["u"]; $password = $_REQUEST["p"]; // Verify the user's credentials list($rc, $err) = ff_checkpassword($username, $password); if ($rc == 5 || $rc == 2) { print "Incorrect username or password\n"; exit; } else { if ($rc) { print "Internal system error: {$rc} {$err}\n"; exit; } } include_once "getduties.php"; list($rc, $duties) = getduties($username); if ($rc) { print "Internal system error: {$rc} {$duties}\n"; exit; } print "You have " . (sizeof($duties) == 1 ? "1 duty." : sizeof($duties) . " duties") . "\n"; foreach ($duties as $duty) { print "--\n"; print "Project: {$duty['projectid']}"; list($rc, $projectinfo) = ff_getprojectinfo($duty["projectid"]); if (!$rc) { print " \"{$projectinfo['name']}\""; } print "\n"; print "Subject: {$duty['subject']}\n"; print "Deadline: " . ($duty["deadline"] ? date("D F j, H:i:s T", $duty["deadline"]) : "unassigned") . "\n";
list($rc, $memberinfo) = ff_getmemberinfo($id); if ($rc == 2) { print "No such member: {$id}"; softexit(); } if ($rc) { print "Database error"; softexit(); } list($rc, $projects) = ff_getleadprojects($id); if ($rc) { print "Database error"; softexit(); } include_once "getduties.php"; list($rc, $duties) = getduties($id); if ($rc) { print "Database error"; softexit(); } apply_template("Member: {$memberinfo['name']}", array(array("name" => "Member: {$memberinfo['name']}", "href" => "member.php?id={$id}")), '', false, true); ?> <h1>Member Information</h1> <p> Username: <b><?php echo $id; ?> </b><br> Name: <b><?php echo htmlentities($memberinfo["name"]);