cvs: peclweb /public_html account-request.php

From: Date: Tue, 25 Mar 2008 23:10:33 +0000
Subject: cvs: peclweb /public_html account-request.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10080@lists.php.net to get a copy of this message
philip Tue Mar 25 23:10:33 2008 UTC Modified files: /peclweb/public_html account-request.php Log: Made the CVS account request to master execute before emails are generated. This allows masters spam checks to do their job. Also utilized display_error(). http://cvs.php.net/viewvc.cgi/peclweb/public_html/account-request.php?r1=1.32&r2=1.33&diff_format=u Index: peclweb/public_html/account-request.php diff -u peclweb/public_html/account-request.php:1.32 peclweb/public_html/account-request.php:1.33 --- peclweb/public_html/account-request.php:1.32 Wed May 16 23:23:26 2007 +++ peclweb/public_html/account-request.php Tue Mar 25 23:10:33 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: account-request.php,v 1.32 2007/05/16 23:23:26 philip Exp $ + $Id: account-request.php,v 1.33 2008/03/25 23:10:33 philip Exp $ */ require_once "HTML/Form.php"; @@ -138,6 +138,25 @@ break; } + /* Now do the CVS stuff */ + if ($needcvs) { + $error = posttohost( + 'http://master.php.net/entry/cvs-account.php', + array( + "username" => $handle, + "name" => $name, + "email" => $email, + "passwd" => $password, + "note" => $purpose + ) + ); + + if ($error) { + display_error("Problem submitting the CVS account request: $error"); + break; + } + } + $msg = "Requested from: {$_SERVER['REMOTE_ADDR']}\n". "Username: {$handle}\n". "Real Name: {$name}\n". @@ -174,25 +193,6 @@ "mailing list."; } - /* Now do the CVS stuff */ - if ($needcvs) { - $error = posttohost( - 'http://master.php.net/entry/cvs-account.php', - array( - "username" => $handle, - "name" => $name, - "email" => $email, - "passwd" => $password, - "note" => $purpose - ) - ); - - if ($error) { - print "<h2>Problem submitting CVS account request</h2>\n"; - print "<p class=\"error\">$error</p>\n"; - } - } - print "<br />Click the top-left PECL logo to go back to the front page.\n"; } while (0);

« previous php.pecl.cvs (#10080) next »