$rss->cssStyleSheet = false; $rss->xslStyleSheet = false; # Use UTF-8 (fixes FS#10706). $rss->encoding = "UTF-8"; #All the general RSS setup $rss->title = "AUR Newest Packages"; $rss->description = "The latest and greatest packages in the AUR"; $rss->link = "{$protocol}://{$host}"; $rss->syndicationURL = "{$protocol}://{$host}" . get_uri('/rss/'); $image = new FeedImage(); $image->title = "AUR"; $image->url = "{$protocol}://{$host}/images/AUR-logo-80.png"; $image->link = $rss->link; $image->description = "AUR Newest Packages Feed"; $rss->image = $image; #Get the latest packages and add items for them $packages = latest_pkgs(20); while (list($indx, $row) = each($packages)) { $item = new FeedItem(); $item->title = $row["Name"]; $item->link = "{$protocol}://{$host}" . get_pkg_uri($row["Name"]); $item->description = $row["Description"]; $item->date = intval($row["SubmittedTS"]); $item->source = "{$protocol}://{$host}"; $item->author = username_from_id($row["MaintainerUID"]); $rss->addItem($item); } #save it so that useCached() can find it $feedContent = $rss->createFeed(); set_cache_value($feed_key, $feedContent, 1800); echo $feedContent;
?> &SeB=m"><?php echo $row['User']; ?> </a> <?php } else { ?> N/A <?php } ?> </strong> <br /> <?php echo __("Submitted: %s by %s", gmdate("Y-m-d H:i", $row['Submitted']), html_format_username(username_from_id($row['SubmitterID']))); ?> <br /> <?php echo __("End"); ?> : <strong><?php echo gmdate("Y-m-d H:i", $row['End']); ?> </strong> <?php if ($isrunning == 0) { ?> <br /> <?php
<?php $pkgbuild_uri = sprintf(config_get('options', 'pkgbuild_uri'), urlencode($row['Name'])); $log_uri = sprintf(config_get('options', 'log_uri'), urlencode($row['Name'])); $snapshot_uri = sprintf(config_get('options', 'snapshot_uri'), urlencode($row['Name'])); $git_clone_uri_anon = sprintf(config_get('options', 'git_clone_uri_anon'), htmlspecialchars($row['Name'])); $git_clone_uri_priv = sprintf(config_get('options', 'git_clone_uri_priv'), htmlspecialchars($row['Name'])); $uid = uid_from_sid($SID); $base_id = intval($row['ID']); $keywords = pkgbase_get_keywords($base_id); $submitter = username_from_id($row["SubmitterUID"]); $maintainer = username_from_id($row["MaintainerUID"]); $comaintainers = pkgbase_get_comaintainers($base_id); $packager = username_from_id($row["PackagerUID"]); if ($row["MaintainerUID"] !== NULL) { $maintainers = array_merge(array($row["MaintainerUID"]), pkgbase_get_comaintainer_uids(array($base_id))); } else { $maintainers = array(); } $unflaggers = array_merge($maintainers, array($row["FlaggerUID"])); $votes = $row['NumVotes']; $popularity = $row['Popularity']; # In case of wanting to put a custom message $msg = __('unknown'); # Print the timestamps for last updates $updated_time = $row["ModifiedTS"] == 0 ? $msg : gmdate("Y-m-d H:i", intval($row["ModifiedTS"])); $submitted_time = $row["SubmittedTS"] == 0 ? $msg : gmdate("Y-m-d H:i", intval($row["SubmittedTS"])); $out_of_date_time = $row["OutOfDateTS"] == 0 ? $msg : gmdate("Y-m-d", intval($row["OutOfDateTS"])); $pkgs = pkgbase_get_pkgnames($base_id); $base_uri = get_pkgbase_uri($row['Name']); ?>
<?php $pkgid = intval($_REQUEST['ID']); if ($row["Location"] == "unsupported" and ($uid == $row["MaintainerUID"] or ($atype == "Developer" or $atype == "Trusted User"))) { $edit_cat = "<a href='pkgedit.php?change_Category=1&ID="; $edit_cat .= $pkgid . "'>" . $row["Category"] . "</a>"; $edit_cat .= " <span class='fix'>("; $edit_cat .= __("change category") . ")</span>"; } else { $edit_cat = $row['Category']; } if ($row["MaintainerUID"]) { $maintainer = username_from_id($row["MaintainerUID"]); if ($SID) { $maintainer = '<a href="account.php?Action=AccountInfo&ID=' . $row['MaintainerUID'] . '">' . $maintainer . '</a>'; } } else { $maintainer = "None"; } $votes = __('Votes') . ': ' . $row['NumVotes']; if ($atype == "Developer" or $atype == "Trusted User") { $votes = "<a href=\"voters.php?ID={$pkgid}\">{$votes}</a>"; } # In case of wanting to put a custom message $msg = __('unknown'); $license = empty($row['License']) ? $msg : $row['License']; # Print the timestamps for last updates $updated_time = $row["ModifiedTS"] == 0 ? "(unknown)" : gmdate("r", intval($row["ModifiedTS"])); $submitted_time = $row["SubmittedTS"] == 0 ? "(unknown)" : gmdate("r", intval($row["SubmittedTS"])); ?> <div class="pgbox">
print $row['User']; ?> &SeB=m'><?php print $row['User']; ?> </a> <?php } else { ?> N/A <?php } ?> </b><br /> <?php print __("Submitted: %s by %s", "<b>" . gmdate("r", $row['Submitted']) . "</b>", "<b>" . username_from_id($row['SubmitterID']) . "</b>"); ?> <br /> <?php print __('End'); ?> : <b><?php print gmdate("r", $row['End']); ?> </b></p> <p> <?php print str_replace("\n", "<br />\n", htmlentities($row['Agenda'])); ?> </p>
<?php if (empty($result)) { ?> <tr><td align="center" colspan="0"><?php echo __("No results found."); ?> </td></tr> <?php } else { while (list($indx, $row) = each($result)) { if ($indx % 2) { $c = "even"; } else { $c = "odd"; } $username = username_from_id($row["UserID"]); ?> <tr class="<?php echo $c; ?> "> <td> <?php echo html_format_username($username); ?> </td> <td> <a href="<?php echo get_uri('/tu/'); ?> ?id=<?php
} elseif ($password != $confirm) { $error = __('Password fields do not match.'); } elseif (!good_passwd($password)) { $length_min = config_get_int('options', 'passwd_min_len'); $error = __("Your password must be at least %s characters.", $length_min); } elseif ($uid == null) { $error = __('Invalid e-mail.'); } if (empty($error)) { $salt = generate_salt(); $hash = salted_hash($password, $salt); $error = password_reset($hash, $salt, $resetkey, $email); } } elseif (isset($_POST['email'])) { $email = $_POST['email']; $username = username_from_id(uid_from_email($email)); if (empty($email)) { $error = __('Missing a required field.'); } else { send_resetkey($email); header('Location: ' . get_uri('/passreset/') . '?step=confirm'); exit; } } $step = isset($_GET['step']) ? $_GET['step'] : NULL; html_header(__("Password Reset")); ?> <div class="box"> <h2><?php echo __("Password Reset");