<?php extra_styles('/css/thickbox.css'); response_header($title); ?> <style type="text/css"> #actions_box { position: fixed; background-color: white; right: 0; bottom: 0; padding: 1em; } .user_note label { cursor: pointer; } .user_note { margin-top: 1.5em; padding-top: 1.5em; border-top: 1px solid rgb(200, 200, 200); } </style> <script type="text/javascript" src="/javascript/thickbox.js"></script> <script type="text/javascript"> var isChecked = false; $('#submitButton').live('click', function() { if (isChecked === false) { $('input[type=checkbox]').each(function() { $(this).attr('checked', 'check'); isChecked = true; });
| If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Arnaud Limbourg <*****@*****.**> | +----------------------------------------------------------------------+ $Id$ */ /** * This page will show a list of packages with latest * release information along with bug count and any other info * that may be used to identify unmaintained packages */ auth_require('pear.qa'); require 'HTML/Table.php'; extra_styles('/css/packages_status.css'); // Sortable tables http://www.kryogenix.org/code/browser/sorttable/ $extra_header = '<script type="text/javascript" src="/javascript/sorttable.js"></script>'; $states = array('snapshot', 'devel', 'alpha', 'beta', 'stable'); response_header('Quality Assurance Initiative - Packages status', false, $extra_header); $state = htmlspecialchars($_GET['state']); if (!in_array($state, $states)) { report_error('This is not a valid state'); response_footer(); exit; } include_once 'pear-database-package.php'; $pck = new package(); $packages = $pck->listAll(false, false); if (PEAR::isError($packages)) { report_error('Cannot list packages');
/** * Prints out the XHTML headers and top of the page. * * @param string $title A string to go into the header's <title> * @param string $style -Unused- Sets global $_style variable * @param string $extraHeaders Additional HTML head tags * @param string $head <head> tag attributes * * @return void */ function response_header($title = 'The PHP Extension and Application Repository', $style = false, $extraHeaders = '', $head = '') { global $_style, $_header_done, $self, $auth_user, $RSIDEBAR_DATA, $in_manual; $extra_styles = extra_styles(); if ($_header_done) { return; } $_header_done = true; $_style = $style; $rts = rtrim($RSIDEBAR_DATA); if (substr($rts, -1) == '-') { $RSIDEBAR_DATA = substr($rts, 0, -1); } else { $menu = draw_navigation(); } if ($in_manual === false) { // The manual-related code takes care of sending the right headers. header('Content-Type: text/html; charset=UTF-8'); } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head <?php echo $head; ?> > <?php echo $extraHeaders; ?> <title><?php echo $title; ?> </title> <link rel="shortcut icon" href="/gifs/favicon.ico" /> <link rel="stylesheet" type="text/css" href="/css/reset-fonts.css" /> <link rel="stylesheet" type="text/css" href="/css/style.css" /> <?php foreach ($extra_styles as $style_file) { echo ' <link rel="stylesheet" type="text/css" href="' . $style_file . "\" />\n"; } ?> <!--[if IE 7]><link rel="stylesheet" type="text/css" href="/css/IE7styles.css" /><![endif]--> <!--[if IE 6]><link rel="stylesheet" type="text/css" href="/css/IE6styles.css" /><![endif]--> <link rel="stylesheet" type="text/css" href="/css/print.css" media="print" /> <link rel="alternate" type="application/rss+xml" title="RSS feed" href="http://<?php echo PEAR_CHANNELNAME; ?> /feeds/latest.rss" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="/javascript/jquery-dtpicker/jquery.dtpicker.min.js"></script> <link rel="stylesheet" type="text/css" href="/javascript/jquery-dtpicker/jquery.dtpicker.css" /> <!-- compliance patch for microsoft browsers --> <!--[if lt IE 8]> <script type="text/javascript" src="/javascript/IE8.js"></script> <![endif]--> <link rel="search" type="application/opensearchdescription+xml" title="PEAR Search Plugin" href="http://pear.php.net/osd.xml" /> </head> <body> <div> <a id="TOP"></a> </div> <div id="doc3"> <!-- START HEADER --> <div id="user"> <ul> <?php if (!$auth_user) { echo ' <li>' . make_link('/account-request.php', 'Register') . '</li>' . "\n"; echo ' <li class="last">'; if (@$_SERVER['QUERY_STRING'] && @$_SERVER['QUERY_STRING'] != 'logout=1') { $qs = @$_SERVER['QUERY_STRING']; echo make_link('/login.php?redirect=' . urlencode("{$self}?{$qs}"), 'Login'); } else { echo make_link('/login.php?redirect=' . $self, 'Login'); } echo '</li>' . "\n"; } else { echo ' <li>logged in as <a href="/user/' . $auth_user->handle . '">' . $auth_user->handle . '</a></li>' . "\n"; echo ' <li><a href="/account-edit.php?handle=' . $auth_user->handle . '">Profile</a></li>' . "\n"; echo ' <li><a href="/bugs/search.php?handle=' . $auth_user->handle . '&cmd=display&status=OpenFeedback&showmenu=1">Bugs</a></li>' . "\n"; echo ' <li><a href="/bugs/search.php?cmd=display' . '&status=All&bug_type=All&author_email=' . $auth_user->handle . '&direction=DESC&order_by=ts1&showmenu=1">My Bugs</a></li> ' . "\n" . ' <li class="last signout">'; $query_string = empty($_SERVER['QUERY_STRING']) ? '' : '&' . htmlspecialchars($_SERVER['QUERY_STRING']); echo make_link('?logout=1' . $query_string, 'Sign Out'); echo "</li>\n"; } ?> </ul> </div> <div id="search"> <form method="get" action="/search.php"> <p style="margin: 0px;"> <span class="accesskey">S</span>earch for <input type="text" name="q" value="" size="20" accesskey="s" /> in the <select name="in"> <option value="packages">Packages</option> <option value="site">This site (using Yahoo!)</option> <option value="users">Developers</option> <option value="pear-dev">Developer mailing list</option> <option value="pear-general">General mailing list</option> <option value="pear-cvs">SVN commits mailing list</option> </select> <input type="image" src="/gifs/small_submit_white.gif" alt="search" style="vertical-align: middle;" /> </p> </form> </div> <div id="header"> <?php echo make_link('/', make_image('pearsmall.gif', 'PEAR')); ?> <br /> </div> <div id="menubar"> <?php echo $menu['main']; ?> </div> <?php echo $menu['sub']; ?> <!-- END HEADER --> <!-- START MIDDLE --> <?php $style = ''; if (isset($RSIDEBAR_DATA)) { $style = ' style="margin-right: 230px;"'; ?> <!-- START RIGHT SIDEBAR --> <div class="sidebar_right"> <?php echo $RSIDEBAR_DATA; ?> </div> <!-- END RIGHT SIDEBAR --> <?php } ?> <!-- START MAIN CONTENT --> <div id="body"<?php echo $style; ?> > <?php }
| http://www.php.net/license/2_02.txt. | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Richard Heyes | | Michael Gauthier <*****@*****.**> | +----------------------------------------------------------------------+ $Id$ */ /* * TODO * o Number of packages in brackets does not include packages in subcategories */ /** * Page class */ require_once 'pear-page-packages.php'; /* * Check input variables. Expected URI variabless: * - catpid (category parent id), * - catname, * - php */ $catpid = isset($_GET['catpid']) ? (int) $_GET['catpid'] : null; $php = isset($_GET['php']) ? (string) $_GET['php'] : 'all'; $page = new page_packages($dbh); extra_styles('css/packages.css'); response_header($page->getTitle($catpid, $php)); $page->display($catpid, $php); response_footer();