cvs: pearweb /public_html account-request-vote.php

From: Date: Fri, 04 Apr 2008 20:45:39 +0000
Subject: cvs: pearweb /public_html account-request-vote.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7433@lists.php.net to get a copy of this message
dufuz Fri Apr 4 20:45:39 2008 UTC Modified files: /pearweb/public_html account-request-vote.php Log: Remove homepage and moreinfo from election account request page, this will mean it's a bit harder to do the link spam we've been experiencing http://cvs.php.net/viewvc.cgi/pearweb/public_html/account-request-vote.php?r1=1.14&r2=1.15&diff_format=u Index: pearweb/public_html/account-request-vote.php diff -u pearweb/public_html/account-request-vote.php:1.14 pearweb/public_html/account-request-vote.php:1.15 --- pearweb/public_html/account-request-vote.php:1.14 Sun Jan 20 05:23:08 2008 +++ pearweb/public_html/account-request-vote.php Fri Apr 4 20:45:39 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: account-request-vote.php,v 1.14 2008/01/20 05:23:08 dufuz Exp $ + $Id: account-request-vote.php,v 1.15 2008/04/04 20:45:39 dufuz Exp $ */ require_once 'HTML/QuickForm.php'; @@ -67,7 +67,8 @@ $request = new PEAR_Election_Accountrequest(); $salt = $request->addRequest($stripped['handle'], $stripped['email'], - $stripped['firstname'], $stripped['lastname'], $stripped); + $stripped['firstname'], $stripped['lastname'], $stripped['password'], + $stripped['password2']); if (PEAR::isError($salt)) { $errors[] = 'Database error (e.g. email address already registered).'; @@ -171,8 +172,6 @@ 'lastname' => @$hsc['lastname'], 'email' => @$hsc['email'], 'showemail' => @$hsc['showemail'], - 'homepage' => @$hsc['homepage'], - 'moreinfo' => @$hsc['moreinfo'], 'comments_read' => @$hsc['comments_read'], )); @@ -188,12 +187,6 @@ $_SESSION['answer'] = $numeralCaptcha->getAnswer(); $form->addElement('text', 'email', 'Email Address:', array('size' => 20)); $form->addElement('checkbox', 'showemail', 'Show email address?'); - $form->addElement('text', 'homepage', 'Homepage:' - . '<p class="cell_note">(optional)</p>', array('size' => 40)); - $form->addElement('textarea', 'moreinfo', - 'More relevant information about you:' - . '<p class="cell_note">(optional)</p>', - array('cols' => 40, 'rows' => 5)); $form->addElement('checkbox', 'comments_read', 'I have read EVERYTHING on this page:'); $form->addElement('submit', 'submit', 'Submit Request'); $form->display(); @@ -205,6 +198,4 @@ } } -response_footer(); - -?> +response_footer(); \ No newline at end of file

« previous php.pear.core (#7433) next »