示例#1
0
文件: index.php 项目: stof/pearweb
   | http://www.php.net/license/3_0.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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
require_once 'pear-database-channel.php';
$channels = channel::listActive();
$inactive_channels = array();
if (auth_check('pear.admin')) {
    $inactive_channels = channel::listInactive();
}
response_header("Channels", false, '<link rel="alternate" type="application/xbel+xml" href="xbel.php" title="Channel list as XBEL" />');
$tabs = array("List" => array("url" => "/channels/index.php", "title" => "List Sites."), "Add Site" => array("url" => "/channels/add.php", "title" => "Add your site."));
?>

<h1>Channels</h1>

<?php 
print_tabbed_navigation($tabs);
?>

<h2>What&#39;s that?</h2>

<p>A number of third-party sites make it possible to install their
software package using the new <a href="/manual/en/guide.migrating.channels.php">channels</a>
feature of PEAR &ge; 1.4.0.  Specific installation instructures are
provided on the individual pages.</p>
示例#2
0
<?php

/* The bug system error page */
// Obtain common includes
require_once '../include/prepend.php';
// If 'id' is passed redirect to the bug page
$id = !empty($_GET['id']) ? (int) $_GET['id'] : 0;
if ($id) {
    redirect("bug.php?id={$id}");
}
response_header('Bugs :: 404 Not Found');
?>
<h1>404 Not Found</h1>

<p>Doh.</p>

<?php 
response_footer();
示例#3
0
文件: privacy.php 项目: stof/pearweb
   +----------------------------------------------------------------------+
   | Copyright (c) 2003-2005 The PEAR Group                               |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header("Privacy Policy");
?>

<h1>Privacy Policy</h1>

<h2>&raquo; Email</h2>

<p>We will not give away your email address to anyone, who is not
related to the operations of pear.php.net. We will also <b>never</b>
ask you to send us any of your passwords via email.</p>

<h2>&raquo; Logfiles</h2>

<p>We are keeping logfiles of the requests that reach our web servers,
but we do only use those files for statistical purposes.</p>
示例#4
0
 * available through the world-wide-web at the following URI:
 * http://www.php.net/license/3_0.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.
 *
 * @category  pearweb
 * @package   Bugs
 * @copyright Copyright (c) 1997-2005 The PHP Group
 * @license   http://www.php.net/license/3_0.txt  PHP License
 * @version   $Id: quick-fix-desc.php 252104 2008-02-02 21:23:23Z dufuz $
 */
/**
 * Obtain common includes
 */
require_once './include/prepend.inc';
response_header('How to retrieve the package version information');
?>
<h2>How to retrieve the version of your package</h2>
<p>
 When reporting a bug, it is very helpful if you tell us which version
 of the package you are using. You can obtain this number by opening
 a shell and typing:
</p>
<pre>pear list|grep $packagename</pre>
<p>
 Alternatively, type in <tt>pear list</tt> alone and search the
 output for your package.
</p>
<?php 
response_footer();
示例#5
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2001-2005 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header('Announcing the PEAR Group');
?>

<h1>Announcing the PEAR Group</h1>

[August 20, 2003]

<div id="news-entry">

<p>
 On 12th August 2003 <?php 
echo user_link('ssb', true);
?>
, the founder of PEAR, announced
 the forming of the PEAR Group, which will be the governing body of
 PEAR. The full announcement can be
示例#6
0
function handle_pear_errors($error_obj)
{
    response_header("Oops! We are sorry that you are unable to report an undocumented feature today.");
    $error = "<p>Greetings! We are experiencing an error, and in the spirit of Open Source would like you to fix it. ";
    $error .= "Or more likely, just wait and someone else will find and solve this.</p>\n";
    $error .= "<p>It's our guess that the database is down. Argh!!!</p>\n";
    // FIXME: If logged in, show other stuff....
    response_footer($error);
    exit;
}
示例#7
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2003-2005 The PEAR Group                               |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header("The PEAR Group: Version Naming");
?>

<h1>PEAR Group - Administrative Documents</h1>

<h2>&raquo; Version Naming</h2>

<p>Published: 26th Februray 2004</p>

<p>The PEAR Group would like to take this opportunity to define the
following version naming convention, which will be mandatory for all
packages from now on. All developers should attempt to move to
this new version naming scheme as soon as possible.</p>

<p>Vote Results: +1 (6), -1 (0), +0 (2)</p>
示例#8
0
switch (txfield('bug_type', $bug, isset($_POST['in']) ? $_POST['in'] : null)) {
    case 'Feature/Change Request':
        $bug_type = 'Request';
        break;
    case 'Documentation Problem':
        $bug_type = 'Doc Bug';
        break;
    case 'Security':
        $bug_type = 'Sec Bug';
        break;
    default:
    case 'Bug':
        $bug_type = 'Bug';
        break;
}
response_header($show_bug_info ? "{$bug_type} #{$bug_id} :: " . htmlspecialchars($bug['sdesc']) : "You must be logged in", $bug_id != 'PREVIEW' ? "\n\t\t<link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} - RDF' href='rss/bug.php?id={$bug_id}'>\n\t\t<link rel='alternate' type='application/rss+xml' title='{$bug['package_name']} Bug #{$bug['id']} - RSS 2.0' href='rss/bug.php?id={$bug_id}&format=rss2'>\n\t" : '');
// DISPLAY BUG
$thanks = isset($_GET['thanks']) ? (int) $_GET['thanks'] : 0;
switch ($thanks) {
    case 1:
    case 2:
        display_bug_success('The bug was updated successfully.');
        break;
    case 3:
        display_bug_success('Your comment was added to the bug successfully.');
        break;
    case 4:
        $bug_url = "{$site_method}://{$site_url}{$basedir}/bug.php?id={$bug_id}";
        display_bug_success("\n\t\t\tThank you for your help!\n\t\t\tIf the status of the bug report you submitted changes, you will be notified.\n\t\t\tYou may return here and check the status or update your report at any time.<br>\n\t\t\tThe URL for your bug report is: <a href='{$bug_url}'>{$bug_url}</a>.\n\t\t");
        break;
    case 6:
示例#9
0
require_once '../../include/prepend.php';
session_start();
bugs_authenticate($user, $pw, $logged_in, $user_flags);
if (!$logged_in) {
    response_header("Bugs admin suite");
    response_footer("Please login");
    exit;
}
$actions = array('list_lists', 'list_responses', 'phpinfo');
$action = !empty($_GET['action']) && in_array($_GET['action'], $actions) ? $_GET['action'] : 'list_lists';
if ($action === 'phpinfo') {
    phpinfo();
    exit;
}
response_header("Bugs admin suite");
inline_content_menu('/admin/', $action, array('phpinfo' => 'phpinfo()', 'list_lists' => 'Package mailing lists', 'list_responses' => 'Quick fix responses'));
if ($action === 'list_lists') {
    $res = $dbh->query("\n\t\tSELECT name, list_email \n\t\tFROM bugdb_pseudo_packages \n\t\tWHERE project = 'php'\n\t\tAND LENGTH(list_email) > 0\n\t\tORDER BY list_email\n\t");
    echo "<dl>\n";
    while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
        echo "<dt>", $row['name'], ": </dt>\n<dd>", mailto_list(explode(',', $row['list_email'])), "</dd>\n";
    }
    echo "</dl>\n";
}
if ($action === 'list_responses') {
    $res = $dbh->query("\n\t\tSELECT *\n\t\tFROM bug_resolves\n\t");
    echo "<h3>List Responses</h3>";
    echo "<pre>\n";
    while ($row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)) {
        print_r($row);
示例#10
0
    } else {
        if (empty($row['passwd'])) {
            $errors[] = "No password found for #{$bug_id} bug report, sorry.";
        } else {
            $resp = mail($row['email'], 'Password for ' . SITE_BIG . ' bug report #' . $bug_id, 'The password for ' . SITE_BIG . ' bug report #' . $bug_id . ' is ' . $row['passwd'] . '.', 'From: ' . PEAR_BOUNCE_EMAIL);
            if ($resp) {
                $success = 'The password for bug report #' . $bug_id . ' has been sent to ' . PEAR_Bugs_Utils::spamProtect($row['email'], 'text');
            } else {
                $errors[] = 'Sorry. Mail can not be sent at this time. Please try again later.';
            }
        }
    }
} else {
    $errors[] = 'Invalid bug id provided';
}
response_header('Bug Report Password Finder');
echo "<h1>Bug Report Password Finder</h1>\n";
report_error($errors);
if ($success) {
    report_success($success);
}
?>

<p>
If you need to modify a bug report that you submitted, but have
forgotten what password you used, this utility can help you.
</p>

<p>
Enter in the number of the bug report, press the Send button
and the password will be mailed to the email address specified
示例#11
0
    }
    $accounts .= " [<a href=\"/user/{$row['handle']}\">details</a>]<br />";
}
if (!$relid) {
    $downloads = array();
    $sth = $dbh->query("SELECT f.id AS `id`, f.release AS `release`," . " f.platform AS platform, f.format AS format," . " f.md5sum AS md5sum, f.basename AS basename," . " f.fullpath AS fullpath, r.version AS version" . " FROM files f, releases r" . " WHERE f.package = {$pacid} AND f.release = r.id");
    while ($sth->fetchInto($row)) {
        $downloads[$row['version']][] = $row;
    }
}
// }}}
// {{{ page header
if ($version) {
    response_header("Package :: {$name} :: {$version}");
} else {
    response_header("Package :: {$name}");
}
html_category_urhere($pkg['categoryid'], true);
if ($relid) {
    echo " :: " . make_link("/package/{$name}", $name);
}
print "<h2 align=\"center\">{$name}";
if ($version) {
    print " {$version}";
}
print "</h2>\n";
// }}}
// {{{ Supeseded checks
$dec_messages = array('abandoned' => 'This package is not maintained anymore and has been superseded.', 'superseded' => 'This package has been superseded, but is still maintained for bugs and security fixes.', 'unmaintained' => 'This package is not maintained, if you would like to take over please go to <a href="/takeover.php">this page</a>.');
$dec_table = array('abandoned' => array('superseded' => 'Y', 'unmaintained' => 'Y'), 'superseded' => array('superseded' => 'Y', 'unmaintained' => 'N'), 'unmaintained' => array('superseded' => 'N', 'unmaintained' => 'Y'));
$apply_rule = null;
示例#12
0
<?php

session_start();
require_once '../include/prepend.php';
unset($_SESSION['user']);
session_destroy();
response_header('Logout');
?>

<p>You've been logged out.</p>

<?php 
response_footer();
示例#13
0
<?php

response_header('Election :: ' . ucfirst($new));
?>
<h1>Confirm Election Details [Step 3]</h1>
<?php 
if ($error) {
    foreach ($error as $err) {
        echo '<div class="errors">' . htmlspecialchars($err) . '</div>';
    }
}
?>
<form name="newelection" action="/election/<?php 
echo $new;
?>
.php" method="post">
<input type="hidden" name="step" value="4" />
<?php 
if ($new == 'edit') {
    ?>
<input type="hidden" name="election_id" value="<?php 
    echo $election_id;
    ?>
" />
<?php 
}
// if ($new == 'edit'):
?>
<input type="hidden" name="choices" value="<?php 
echo $info['choices'];
?>
示例#14
0
 * that is bundled with this package in the file LICENSE, and is
 * available through the world-wide-web at the following URI:
 * http://www.php.net/license/3_0.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.
 *
 * @category  peclweb
 * @package   peclweb
 * @author    Daniel Convissor <*****@*****.**>
 * @copyright Copyright (c) 2004 The PHP Group
 * @license   http://www.php.net/license/3_0.txt  PHP License
 * @version   $Id$
 * @see       generate_captcha(), validate_captcha(), captcha-image.php
 */
response_header('CAPTCHA :: Help');
?>

<h1>CAPTCHA Help</h1>

<p>Some forms on the PECL website use
<a href="http://en.wikipedia.org/wiki/Captcha"><acronym
 title="Completely Automated Public Turing test to tell Computers and Humans Apart"
 >CAPTCHA</acronym></a>s in order to avoid our getting spammed.</p>

<?php 
if (isset($_SESSION['captcha'])) {
    ?>

<p>Your CAPTCHA is <img src="/captcha-image.php" alt="CAPTCHA text" />.
If you are having a hard time reading it, reloading this page
示例#15
0
   | Copyright (c) 2001-2003 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
require_once "HTML/Form.php";
response_header("PEAR Administration - Package maintainers");
if (isset($_GET['pid'])) {
    $id = (int) $_GET['pid'];
} else {
    $id = 0;
}
$self = htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES);
// Select package first
if (empty($id)) {
    auth_require(true);
    $values = package::listAllNames();
    $bb = new BorderBox("Select package");
    $form = new HTML_Form($self);
    $form->addSelect("pid", "Package:", $values);
    $form->addSubmit();
    $form->display();
示例#16
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2001-2005 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header();
?>
<h1>PEAR Meeting - Summary</h1>

[May 16, 2003]

<div id="news-entry">

<h2>&raquo; Introduction</h2>

<p>
This document aims at providing a comprehensive sum up of what was said
and decided at the PEAR meeting which took place on Friday, 10th, May 2003
in Amsterdam.
</p>
示例#17
0
文件: karma.php 项目: stof/pearweb
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Author: Martin Jansen <*****@*****.**>                                   |
   +----------------------------------------------------------------------+
   $Id$
*/
redirect_to_https();
@session_start();
$csrf_token_name = 'pear_csrf_token_' . basename(__FILE__, '.php');
include_once 'HTML/QuickForm2.php';
include_once 'HTML/Table.php';
require_once 'Damblan/Karma.php';
require_once 'Damblan/Mailer.php';
auth_require('global.karma.manager');
$karma = new Damblan_Karma($dbh);
response_header("PEAR Administration :: Karma Management");
echo "<h1>Karma Management</h1>\n";
$handle = null;
if (!empty($_REQUEST['handle'])) {
    $handle = trim($_REQUEST['handle']);
    if (!preg_match(PEAR_COMMON_USER_NAME_REGEX, $handle)) {
        $handle = null;
    }
}
if ($handle === null || empty($handle)) {
    $form = new HTML_QuickForm2('karma_edit', 'post');
    $form->removeAttribute('name');
    include_once 'pear-database-user.php';
    $list = user::listAll(true);
    $users = array();
    foreach ($list as $user) {
示例#18
0
        $xhdr = "From: {$name} <{$email}>";
        $subject = "PECL Account Request: {$handle}";
        $ok = mail("*****@*****.**", $subject, $msg, $xhdr, "-f noreply@php.net");
        response_header("Account Request Submitted");
        if ($ok) {
            print "<h2>Account Request Submitted</h2>\n";
            print "Your account request has been submitted, it will " . "be reviewed by a human shortly.  This may take from two " . "minutes to several days, depending on how much time people " . "have.  " . "You will get an email when your account is open, or if " . "your request was rejected for some reason.";
        } else {
            print "<h2>Possible Problem!</h2>\n";
            print "Your account request has been submitted, but there " . "were problems mailing one or more administrators.  " . "If you don't hear anything about your account in a few " . "days, please drop a mail about it to the <i>pecl-dev</i> " . "mailing list.";
        }
        print "<br />Click the top-left PECL logo to go back to the front page.\n";
    } while (0);
}
if ($display_form) {
    response_header("Request Account");
    $cs_link = make_link('http://git.php.net/?p=php-src.git;a=blob_plain;f=CODING_STANDARDS;hb=HEAD', 'PHP Coding Standards');
    $lic_link_pecl = make_link('http://www.php.net/license/3_01.txt', 'PHP License 3.01');
    $lic_link_doc = make_link('http://www.php.net/manual/en/cc.license.php', 'Creative Commons Attribution License');
    $doc_howto_pecl = make_link('http://wiki.php.net/doc/howto/pecldocs', 'PECL Docs Howto');
    print "<h1>Publishing in PECL</h1>\n\n<p>\n A few reasons why you might apply for a PECL account:\n</p>\n<ul>\n <li>You have written a PHP extension and would like it listed within the PECL directory</li>\n <li>You would like to use php.net for version control and hosting</li>\n <li>You would like to help maintain a current PECL extension</li>\n</ul>\n<p>\n\n<p>\n You do <b>not</b> need an account if you want to download, install and/or use PECL packages.\n</p>\n\n<p>\n Before filling out this form, you must write the public <i>pecl-dev@lists.php.net</i> mailing list and:\n</p>\n<ul>\n <li>Introduce yourself</li>\n <li>Introduce your new extension or the extension you would like to help maintain</li>\n <li>Link to the code, if applicable</li>\n</ul>\n\n<p>\n Also, here is a list of suggestions:\n</p>\n<ul>\n <li>\n  We strongly encourage contributors to choose the {$lic_link_pecl} for their extensions,\n  in order to avoid possible troubles for end-users of the extension. Other solid\n  options are BSD and Apache type licenses.\n </li>\n <li>\n  We strongly encourage you to use the {$cs_link} for your code, as it will help\n  the QA team (and others) help maintain the extension.\n </li>\n <li>\n  We strongly encourage you to commit documentation for the extension, as it will\n  make the extension more visible (in the official PHP manual) and also teach\n  users how to use it. See the {$doc_howto_pecl} for more information.\n  Submitted documentation will always be under the {$lic_link_doc}.\n </li>\n <li>\n  Note: wrappers for GPL (all versions) or LGPLv3 libraries will not be accepted.\n  Wrappers for libraries licensed under LGPLv2 are however allowed while being discouraged.\n </li>\n <li>\n  Note: Wrappers for libraries with license fees or closed sources libraries without licenses fees\n  are allowed.\n </li>\n\n</ul>\n\n<p>\n And after submitting the form:\n</p>\n<ul>\n <li>\n  If approved, you will also need to <a href='http://php.net/git-php.php'>apply for a php.net account</a>\n  in order to commit the code to the php.net SVN repository. Select 'PECL Group' within that form when applying.\n </li>\n</ul>\n\n<p>\n <strong>Please confirm the reason for this PECL account request:</strong>\n</p>\n\n<script language=\"JavaScript\" type=\"text/javascript\" defer=\"defer\">\n<!--\n\tfunction reasonClick(option)\n\t{\n\t\tif (option == 'pkg') {\n\t\t\tenableForm(true);\n\n\t\t\t// Lose border\n\t\t\tif (document.getElementById) {\n\t\t\t\tdocument.getElementById('reason_table').style.border = '2px dashed green';\n\t\t\t}\n\t\t} else {\n\t\t\t// Gain border\n\t\t\tif (document.getElementById) {\n\t\t\t\tdocument.getElementById('reason_table').style.border = '2px dashed red';\n\t\t\t}\n\n\t\t\talert('Reminder: please only request a PECL account if you will maintain a PECL extension, and have followed the guidelines above.');\n\t\t\tenableForm(false);\n\t\t}\n\t}\n\n\tfunction enableForm(disabled)\n\t{\n\t\tfor (var i=0; i<document.forms['request_form'].elements.length; i++) {\n\t\t\tdocument.forms['request_form'].elements[i].disabled = !disabled;\n\t\t\t//document.forms['request_form'].elements[i].style.backgroundColor = '#c0c0c0';\n\t\t}\n\t}\n\n\tenableForm(false);\n//-->\n</script>\n\n<table border=\"0\" style=\"border: 2px #ff0000 dashed; padding: 0px\" id=\"reason_table\">\n\t<tr>\n\t\t<td valign=\"top\"><input type=\"radio\" name=\"reason\" value=\"pkg\" id=\"reason_pkg\" onclick=\"reasonClick('pkg')\" /></td>\n\t\t<td>\n\t\t\t<label for=\"reason_pkg\">\n\t\t\t\tI have already discussed the topic of maintaining and/or adding a PECL extension on the\n\t\t\t\tpecl-dev@lists.php.net mailing list, and we determined it's time for me to have a PECL account.\n\t\t\t</label>\n\t\t</td>\n\t</tr>\n\n\t<tr>\n\t\t<td valign=\"top\"><input type=\"radio\" name=\"reason\" value=\"other\" id=\"reason_other\" onclick=\"reasonClick('other')\" /></td>\n\t\t<td>\n\t\t\t<label for=\"reason_other\">I desire this PECL account for another reason.</label>\n\t\t</td>\n\t</tr>\n</table>\n";
    if (isset($errorMsg)) {
        print "<table>\n";
        print " <tr>\n";
        print "  <td>&nbsp;</td>\n";
        print "  <td><b>{$errorMsg}</b></td>\n";
        print " </tr>\n";
        print "</table>\n";
    }
    print "<form action=\"" . htmlspecialchars($_SERVER['PHP_SELF']) . "\" method=\"post\" name=\"request_form\">\n";
    $bb = new BorderBox("Request a PECL account", "90%", "", 2, true);
示例#19
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2003-2005 The PEAR Group                               |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header("The PEAR Group: Handling Votings and Membership (II)");
?>

<h1>PEAR Group - Administrative Documents</h1>

<h2>&raquo; Handling Votings and Membership (II)</h2>

<p>Published: 22nd March 2004</p>

<p><b>Note:</b> This document supersedes the administrative document
titled &quot;<?php 
echo make_link("20030820-vm.php", "Handling Votings and Membership");
?>
&quot; from 20th August 2003. No formal voting process has been
initiated to back up the acceptance of this document, because no member
of the PEAR Group has raised any objections concerning the differences
示例#20
0
   | Copyright (c) 2001-2003 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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:                                                             |
   +----------------------------------------------------------------------+
   $Id$
*/
$SIDEBAR_DATA = '';
response_header("Support");
?>

<h2>Support</h2>

<b>Table of Contents</b>
<ul>
  <li><a href="#lists">Mailing Lists</a></li>
  <li><a href="#subscribe">Subscribing and Unsubscribing</a></li>
  <li><a href="#resources">Resources</a></li>
  <li><a href="#icons">PECL Icons</a></li>
</ul>

<a name="lists"></a><h3>Mailing Lists</h3>

<?php 
示例#21
0
文件: report.php 项目: stof/pearweb
$clean_package = clean($_REQUEST['package']);
if (empty($_REQUEST['package'])) {
    $errors[] = 'Please choose a package before clicking "Go".';
    response_header("Report - No package selected");
    report_error($errors);
    response_footer();
    exit;
}
if (!package_exists($_REQUEST['package'])) {
    $errors[] = 'Package "' . $clean_package . '" does not exist.';
    response_header("Report - Invalid package");
    report_error($errors);
    response_footer();
    exit;
}
response_header('Report - New');
// See if this package uses an external bug system
require_once 'bugs/pear-bugs-utils.php';
$bug_link = PEAR_Bugs_Utils::getExternalSystem($clean_package);
if (!empty($bug_link)) {
    $link = make_link($bug_link);
    report_success($clean_package . ' has an external bug system that can be reached at ' . $link);
    response_footer();
    exit;
}
if (!isset($_POST['in'])) {
    $_POST['in'] = array('package_name' => '', 'bug_type' => '', 'email' => '', 'handle' => '', 'sdesc' => '', 'ldesc' => '', 'repcode' => '', 'expres' => '', 'actres' => '', 'package_version' => '', 'php_version' => '', 'php_os' => '', 'passwd' => '');
    show_bugs_menu($clean_package);
    try {
        $sHelper = new Pearweb_Service_HoneyPot(HONEYPOT_API_KEY);
        $ip = $_SERVER['REMOTE_ADDR'];
示例#22
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2001-2005 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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:                                                             |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header('PEAR 1.0 is released!');
?>
<h1>PEAR 1.0 is released!</h1>

[December 27, 2002]

<div id="news-entry">
</p>
As of PHP 4.3.0, PEAR is an officially supported
part of PHP.  From this release, the PEAR installer with all its
prerequisites is installed by default on Unix-style systems (Windows
will follow in 4.3.2).  It has been a long pregnancy.
</p>

<br /><br />
<dl>
示例#23
0
<?php

response_header("PECL Documentation has Moved");
?>

<h1>PECL Documentation</h1>
<p>
The PECL documentation is located in the 
official <a href="http://php.net/manual/">PHP Manual</a>.
</p>

<?php 
response_footer();
示例#24
0
<?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;
            });
示例#25
0
   +----------------------------------------------------------------------+
   | Copyright (c) 2001-2005 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: 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');
response_header('Quality Assurance Initiative - Packages status');
$states = array('snapshot', 'devel', 'alpha', 'beta', 'stable');
echo "View packages status for the following state\n";
echo "<ul>\n";
foreach ($states as $state) {
    $link = make_link('/qa/packages_status_detail.php?state=' . $state, 'See packages status for state ' . $state, '', 'title="Details for state ' . $state . '"');
    echo '<li>' . $link . '</li>';
}
echo "</ul>\n";
response_footer();
示例#26
0
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
   | Authors:                                                             |
   +----------------------------------------------------------------------+
   $Id$
*/
// Interface to update package information.
@session_start();
$csrf_token_name = 'pear_csrf_token_' . basename(__FILE__, '.php');
auth_require('pear.dev');
require_once 'tags/Manager.php';
require_once 'HTML/QuickForm2.php';
require_once 'HTML/QuickForm2/Renderer.php';
/** @todo Remove once part of QF2 */
require_once 'HTML/QuickForm2/Element/InputUrl.php';
response_header('Edit Package');
?>

<script type="text/javascript">
<!--

function confirmed_goto(url, message) {
    if (confirm(message)) {
        location = url;
    }
}
// -->
</script>

<?php 
echo '<h1>Edit Package</h1>';
示例#27
0
        dc:identifier="http://{$channel_name}/package/{$name}"
        dc:title="Package :: {$name}"
        trackback:ping="{$trackback_uri}" />
</rdf:RDF>
-->
EOD;
}
// }}}
// {{{ page header
$name = htmlspecialchars(strip_tags($name));
$helper = new package_releasehelper($name);
$extraHeaders = $trackback_header . ' <link rel="meta" title="DOAP" type="application/rdf+xml"' . ' href="/package/' . $name . '/doap"/>';
if ($version) {
    response_header($name . ' :: ' . $version, null, $extraHeaders);
} else {
    response_header($name, null, $extraHeaders);
}
html_category_urhere($pkg['categoryid'], true);
$v = $version ? ' ' . $version : '';
echo '<h1>Package Information: ' . $name . $v . "</h1>\n";
print_package_navigation($pacid, $name, $action);
// }}}
// {{{ Package Information
if (empty($action)) {
    // {{{ General information
    // {{{ Supeseded checks
    $dec_messages = array('abandoned' => 'This package is not maintained anymore and has been superseded.', 'superseded' => 'This package has been superseded, but is still maintained for bugs and security fixes.', 'unmaintained' => 'This package is not maintained, if you would like to take over please go to <a href="http://pear.php.net/manual/en/newmaint.takingover.php">this page</a>.');
    $dec_table = array('abandoned' => array('superseded' => 'Y', 'unmaintained' => 'Y'), 'superseded' => array('superseded' => 'Y', 'unmaintained' => 'N'), 'unmaintained' => array('superseded' => 'N', 'unmaintained' => 'Y'));
    $superseded = $supersede ? 'Y' : 'N';
    $apply_rule = null;
    foreach ($dec_table as $rule => $conditions) {
示例#28
0
    $obsoletedby = $patchinfo->getObsoletingPatches($bug_id, $patch_name, $revision);
    $obsoletes = $patchinfo->getObsoletePatches($bug_id, $patch_name, $revision);
    $patches = $patchinfo->listPatches($bug_id);
    $revisions = $patchinfo->listRevisions($bug_id, $patch_name);
    response_header("Bug #{$bug_id} :: Patches");
    include "{$ROOT_DIR}/templates/listpatches.php";
    if (isset($_GET['diff']) && $_GET['diff'] && isset($_GET['old']) && is_numeric($_GET['old'])) {
        $old = $patchinfo->getPatchFullpath($bug_id, $patch_name, $_GET['old']);
        $new = $path;
        if (!realpath($old) || !realpath($new)) {
            response_header('Error :: Cannot retrieve patch');
            display_bug_error('Internal error: Invalid patch revision specified for diff');
            response_footer();
            exit;
        }
        require_once "{$ROOT_DIR}/include/classes/bug_diff_renderer.php";
        assert_options(ASSERT_WARNING, 0);
        $d = new Text_Diff($orig = file($old), $now = file($new));
        $diff = new Bug_Diff_Renderer($d);
        include "{$ROOT_DIR}/templates/patchdiff.php";
        response_footer();
        exit;
    }
    include "{$ROOT_DIR}/templates/patchdisplay.php";
    response_footer();
    exit;
}
$patches = $patchinfo->listPatches($bug_id);
response_header("Bug #{$bug_id} :: Patches");
include "{$ROOT_DIR}/templates/listpatches.php";
response_footer();
示例#29
0
文件: trans.php 项目: stof/pearweb
            include dirname(__FILE__) . '/index.php';
            exit;
        }
        if (isset($_POST['url']) && !empty($_POST['url'])) {
            $pendingComments = $manualNotes->getPageComments($_POST['url'], 'pending');
        } else {
            $pendingComments = $manualNotes->getPageComments('', 'pending', true);
        }
        $url = isset($_POST['url']) ? strip_tags($_POST['url']) : '';
        $error = '';
        require PEARWEB_TEMPLATEDIR . '/notes/note-manage-admin.tpl.php';
        break;
    case 'updatesingle':
        break;
    default:
        response_header('Note Administration', null, null);
        report_error('Missing action');
        response_footer();
        exit;
}
function getPackageNameForId($id)
{
    global $dbh;
    $res = preg_match('/^package\\.[\\w-]+\\.([\\w-]+).*\\.php$/', $id, $matches);
    if ($res === 0) {
        return null;
    }
    $package = str_replace('-', '_', $matches[1]);
    $query = 'SELECT name FROM packages WHERE LCASE(name) = LCASE(?)';
    return $dbh->getOne($query, $package);
}
示例#30
0
文件: index.php 项目: stof/pearweb
   +----------------------------------------------------------------------+
   | Copyright (c) 2003-2005 The PEAR Group                               |
   +----------------------------------------------------------------------+
   | This source file is subject to version 2.02 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available at through the world-wide-web at                           |
   | 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: Martin Jansen <*****@*****.**>                                  |
   +----------------------------------------------------------------------+
   $Id$
*/
response_header('The PEAR Group');
?>

<h1>The PEAR Group</h1>

<p>The PEAR Group is the governing body of PEAR. It currently consists
of the following individuals (in no particular order):</p>

<ul>
  <li><a href="/user/ashnazg" title="Chuck Burgess">Chuck Burgess</a></li>
  <li><a href="/user/davidc" title="David Coallier">David Coallier</a> [President]</li>
  <li><a href="/user/cweiske" title="Christian Weiske">Christian Weiske</a></li>
  <li><a href="/user/saltybeagle" title="Brett Bieber">Brett Bieber</a></li>
  <li><a href="/user/doconnor" title="Daniel O'Connor">Daniel O'Connor</a></li>
  <li><a href="/user/kguest" title="Ken Guest">Ken Guest</a></li>
  <li><a href="/user/shupp" title="Bill Shupp">Bill Shupp</a></li>