Exemple #1
0
function auth_reject($realm = null, $message = null)
{
    if ($realm === null) {
        $realm = PEAR_AUTH_REALM;
    }
    if ($message === null) {
        $message = "Please enter your username and password:"******"document.login.PEAR_USER.focus();";
    if ($message) {
        report_error($message);
    }
    print "<form name=\"login\" action=\"/login.php\" method=\"post\">\n";
    print '<table class="form-holder" cellspacing="1">' . "\n";
    print " <tr>\n";
    print '  <th class="form-label_left">';
    print 'Use<span class="accesskey">r</span>name:</th>' . "\n";
    print '  <td class="form-input">';
    print '<input size="20" name="PEAR_USER" accesskey="r" /></td>' . "\n";
    print " </tr>\n";
    print " <tr>\n";
    print '  <th class="form-label_left">Password:</th>' . "\n";
    print '  <td class="form-input">';
    print '<input size="20" name="PEAR_PW" type="password" /></td>' . "\n";
    print " </tr>\n";
    print " <tr>\n";
    print '  <th class="form-label_left">&nbsp;</th>' . "\n";
    print '  <td class="form-input" style="white-space: nowrap">';
    print '<input type="checkbox" name="PEAR_PERSIST" value="on" id="pear_persist_chckbx" ' . (!empty($_COOKIE['REMEMBER_ME']) || !empty($_POST['PEAR_PERSIST']) ? 'checked="checked " ' : '') . '/> ';
    print '<label for="pear_persist_chckbx">Remember username and password.</label></td>' . "\n";
    print " </tr>\n";
    print " <tr>\n";
    print '  <th class="form-label_left">&nbsp;</td>' . "\n";
    print '  <td class="form-input"><input type="submit" value="Log in!" /></td>' . "\n";
    print " </tr>\n";
    print "</table>\n";
    print '<input type="hidden" name="PEAR_OLDURL" value="';
    if (isset($_GET['redirect'])) {
        print htmlspecialchars(urldecode($_GET['redirect']));
    } elseif (isset($_POST['PEAR_OLDURL'])) {
        print htmlspecialchars($_POST['PEAR_OLDURL']);
    } elseif (isset($_SERVER['REQUEST_URI'])) {
        print htmlspecialchars($_SERVER['REQUEST_URI']);
    } else {
        print 'login.php';
    }
    print "\" />\n";
    print "</form>\n";
    print hdelim();
    print "<p><strong>Note:</strong> If you just want to browse the website, ";
    print "you will not need to log in. For all tasks that require ";
    print "authentication, you will be redirected to this form ";
    print "automatically. You can sign up for an account ";
    print "<a href=\"/account-request.php\">over here</a>.</p>";
    response_footer();
    exit;
}
Exemple #2
0
if (!empty($_GET['phpinfo'])) {
    phpinfo();
    exit;
}
$acreq = isset($_GET['acreq']) ? strip_tags(htmlspecialchars($_GET['acreq'], ENT_QUOTES)) : null;
$SIDEBAR_DATA = '
This is the PEAR administration page.<br />
<noscript><p>
<!-- be annoying! -->
<b><blink>You must enable Javascript to use this page!</blink></b>
</p></noscript>
';
response_header("PEAR Administration");
menu_link("Package maintainers", "package-maintainers.php");
menu_link("Manage categories", "category-manager.php");
echo hdelim();
// {{{ adding and deleting notes
if (!empty($_REQUEST['cmd'])) {
    if ($_REQUEST['cmd'] == "Add note" && !empty($_REQUEST['note']) && !empty($_REQUEST['key']) && !empty($_REQUEST['id'])) {
        note::add($_REQUEST['key'], $_REQUEST['id'], $_REQUEST['note']);
        unset($_REQUEST['cmd']);
    } elseif ($_REQUEST['cmd'] == "Delete note" && !empty($_REQUEST['id'])) {
        /**
         * Delete note
         */
        note::remove($_REQUEST['id']);
    } elseif ($_REQUEST['cmd'] == "Open Account" && !empty($_REQUEST['uid'])) {
        /**
         * Open account
         */
        // another hack to remove the temporary "purpose" field
Exemple #3
0
<p><span class="newsDate">[18-May-2005]</span>
 PHP-GTK 2 is getting closer and closer to a first release every day. At the
 <a href="http://www.phpconference.com/">International PHP Conference</a>, Andrei
 gave a <a href="http://www.gravitonic.com/talks/">talk</a> about the current 
 status of PHP-GTK 2 and the direction it is heading. Since then, excellent 
 progress has been made with trees and editable cells. Parameter reflection has 
 also been added thanks to Christian. The lastest efforts have led to the first
 set of practical applications written with PHP-GTK 2. Christian's 
 <a href="http://cweiske.de/phpgtk2_devinspector.htm">reflection browser</a> makes 
 it easy to take a look at the inner workings of PHP-GTK 2 classes and can be
 used as simple documentation. 
</p>

<!--
<?php 
hdelim();
?>

<h1>A Message from Andrei</h1>

<p><span class="newsDate">[22-Apr-2005]</span> I finished porting the first
    demo from PyGTK, the stock item browser. It's in 
    <a href="http://cvs.php.net/co.php/php-gtk/demos/stock-browser.php">demos/stock-browser.php</a>
    and in the process I've implemented a fair amount of new
    GtkTreeView/GtkListStore functions. PHP-GTK 2 is coming along!
   </p>
   <p>Maybe a very early alpha release is due...
   </p>
   <p>-Andrei
   </p>
   <p>Any tester or developers interested in helping (Especially to port old