cvs: pearweb /public_html index.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 09 Dec 2007 15:53:41 +0000 |
| Subject: | cvs: pearweb /public_html index.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-49679@lists.php.net to get a copy of this message | ||
dufuz Sun Dec 9 15:53:41 2007 UTC
Modified files:
/pearweb/public_html index.php
Log:
Logged in users can just use the menu instead of having to scroll down for this stuff.
http://cvs.php.net/viewvc.cgi/pearweb/public_html/index.php?r1=1.137&r2=1.138&diff_format=u
Index: pearweb/public_html/index.php
diff -u pearweb/public_html/index.php:1.137 pearweb/public_html/index.php:1.138
--- pearweb/public_html/index.php:1.137 Sun Dec 9 15:39:46 2007
+++ pearweb/public_html/index.php Sun Dec 9 15:53:41 2007
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: index.php,v 1.137 2007/12/09 15:39:46 dufuz Exp $
+ $Id: index.php,v 1.138 2007/12/09 15:53:41 dufuz Exp $
*/
include_once 'pear-database-release.php';
@@ -40,6 +40,7 @@
$RSIDEBAR_DATA .= '<tr><td align="right">' . $feed_link .
"</td></tr>\n";
$RSIDEBAR_DATA .= "</table>\n";
}
+
$popular = release::getPopular(5);
if (@sizeof($popular) > 0) {
$RSIDEBAR_DATA .= "<strong>Popular Packages*:</strong>\n";
@@ -142,29 +143,11 @@
<?php
echo hdelim();
if ($auth_user) {
- if (auth_check('pear.dev')) {
- echo '<h2>» Developers</h2>';
- echo '<div class="indent">';
-
- echo menu_link("Upload Release", "release-upload.php");
- echo menu_link("New Package", "package-new.php");
-
- echo '</div>';
- }
-
echo '<h2>» Package Proposals (PEPr)</h2>';
- echo '<div class="indent">';
- echo menu_link("Browse Proposals", "pepr/");
- echo menu_link("New Package Proposal", "pepr/pepr-proposal-edit.php");
+ echo '<div class="indent">';
+ echo menu_link("Browse Proposals", "pepr/");
+ echo menu_link("New Package Proposal", "pepr/pepr-proposal-edit.php");
echo '</div>';
-
- if (auth_check('pear.admin')) {
- echo '<h2>» Administrators</h2>';
- echo '<div class="indent">';
- echo menu_link("Overview", "/admin/");
- echo '</div>';
- }
-
} else {
?>