cvs: pearweb /public_html account-info.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sat, 12 Jan 2008 23:43:10 +0000 |
| Subject: | cvs: pearweb /public_html account-info.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-50247@lists.php.net to get a copy of this message | ||
dufuz Sat Jan 12 23:43:10 2008 UTC
Modified files:
/pearweb/public_html account-info.php
Log:
CS fixes, kill of print_link in this file
http://cvs.php.net/viewvc.cgi/pearweb/public_html/account-info.php?r1=1.58&r2=1.59&diff_format=u
Index: pearweb/public_html/account-info.php
diff -u pearweb/public_html/account-info.php:1.58 pearweb/public_html/account-info.php:1.59
--- pearweb/public_html/account-info.php:1.58 Thu Jan 10 21:25:11 2008
+++ pearweb/public_html/account-info.php Sat Jan 12 23:43:10 2008
@@ -15,12 +15,11 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: account-info.php,v 1.58 2008/01/10 21:25:11 dufuz Exp $
+ $Id: account-info.php,v 1.59 2008/01/12 23:43:10 dufuz Exp $
*/
-/**
- * Details about PEAR accounts
- */
+
+// Details about PEAR accounts
require_once 'Damblan/URL.php';
require_once 'HTTP.php';
$site = new Damblan_URL();
@@ -30,9 +29,7 @@
$handle = htmlspecialchars(strtolower($params['handle']));
-/*
- * Redirect to the accounts list if no handle was specified
- */
+// Redirect to the accounts list if no handle was specified
if (empty($handle)) {
localRedirect('/accounts.php');
}
@@ -47,21 +44,21 @@
}
switch ($params['action']) {
- case "wishlist" :
- if (!empty($row['wishlist'])) {
- HTTP::redirect($row['wishlist']);
- } else {
- PEAR::raiseError(htmlspecialchars($row['name']) . " has not registered a
wishlist");
- }
- break;
-
- case "bugs" :
- HTTP::redirect("/bugs/search.php?handle=" . $handle . "&cmd=display");
- break;
-
- case "rss" :
- HTTP::redirect("/feeds/user_" . $handle . ".rss");
- break;
+ case "wishlist" :
+ if (!empty($row['wishlist'])) {
+ HTTP::redirect($row['wishlist']);
+ } else {
+ PEAR::raiseError(htmlspecialchars($row['name']) . " has not registered a
wishlist");
+ }
+ break;
+
+ case "bugs" :
+ HTTP::redirect("/bugs/search.php?handle=" . $handle .
"&cmd=display");
+ break;
+
+ case "rss" :
+ HTTP::redirect("/feeds/user_" . $handle . ".rss");
+ break;
}
@@ -144,37 +141,37 @@
array(' at ', ' dot '),
$row['email']);
echo ' <li>Email: ';
- print_link('/account-mail.php?handle=' . $handle,
+ echo make_link('/account-mail.php?handle=' . $handle,
htmlspecialchars($row['email']));
echo "</li>\n";
} else {
echo ' <li>Email: ';
- print_link('/account-mail.php?handle=' . $handle, 'via web form');
+ echo make_link('/account-mail.php?handle=' . $handle, 'via web form');
echo "</li>\n";
}
if ($row['homepage']) {
echo ' <li>Homepage: ';
- print_link(htmlspecialchars($row['homepage']));
+ echo make_link(htmlspecialchars($row['homepage']));
echo "</li>\n";
}
if ($row['wishlist']) {
echo ' <li>Wishlist: ';
- print_link('http://' .
htmlspecialchars($_SERVER['HTTP_HOST']) . '/user/' . $handle .
'/wishlist');
+ echo make_link('http://' .
htmlspecialchars($_SERVER['HTTP_HOST']) . '/user/' . $handle .
'/wishlist');
echo "</li>\n";
}
if ($row['pgpkeyid']) {
echo ' <li>PGP Key: ';
- print_link('http://pgp.mit.edu:11371/pks/lookup?search=0x'
+ echo make_link('http://pgp.mit.edu:11371/pks/lookup?search=0x'
. htmlspecialchars($row['pgpkeyid']) . '&op=get',
htmlspecialchars($row['pgpkeyid']));
echo "</li>\n";
}
echo ' <li>RSS Feed: ';
-print_link('http://' .
htmlspecialchars($_SERVER['HTTP_HOST']) . '/feeds/user_' . $handle .
'.rss');
+echo make_link('http://' .
htmlspecialchars($_SERVER['HTTP_HOST']) . '/feeds/user_' . $handle .
'.rss');
echo '</li>' . "\n";
echo ' <li>Bug Statistics: <br />' . "\n";
@@ -230,7 +227,7 @@
<?php
foreach ($packages as $row) {
echo '<li>';
- print_link('/package/' . htmlspecialchars($row['name']),
+ echo make_link('/package/' . htmlspecialchars($row['name']),
htmlspecialchars($row['name']));
echo ' (' . htmlspecialchars($row['role']) .
($row['active'] == 0 ? ", inactive" : "") . ')';
echo ' <small><a href="/bugs/search.php?package_name%5B%5D=';
@@ -269,7 +266,4 @@
</table>
<?php
-
-response_footer();
-
-?>
+response_footer();
\ No newline at end of file