cvs: phpweb / cvs-php.php
| From: | Hannes Magnusson | Date: | Mon, 18 Jun 2007 20:35:21 +0000 |
| Subject: | cvs: phpweb / cvs-php.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-35736@lists.php.net to get a copy of this message | ||
bjori Mon Jun 18 20:35:21 2007 UTC
Modified files:
/phpweb cvs-php.php
Log:
Add another sanitychecking question
http://cvs.php.net/viewvc.cgi/phpweb/cvs-php.php?r1=1.40&r2=1.41&diff_format=u
Index: phpweb/cvs-php.php
diff -u phpweb/cvs-php.php:1.40 phpweb/cvs-php.php:1.41
--- phpweb/cvs-php.php:1.40 Fri Mar 9 02:18:25 2007
+++ phpweb/cvs-php.php Mon Jun 18 20:35:21 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: cvs-php.php,v 1.40 2007/03/09 02:18:25 philip Exp $
+// $Id: cvs-php.php,v 1.41 2007/06/18 20:35:21 bjori Exp $
$_SERVER['BASE_PAGE'] = 'cvs-php.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
@@ -61,6 +61,9 @@
if (empty($_POST['email']) || !is_emailable_address($cleaned['email'])) {
$error .= "You must supply a proper email address. ";
}
+ if (empty($_POST['yesno']) || $_POST['yesno'] != 'yes') {
+ $error .= "You did not fill the form out correctly";
+ }
// Post the request if there is no error
if (!$error) {
@@ -71,7 +74,8 @@
"name" => $cleaned['fullname'],
"email" => $cleaned['email'],
"passwd" => $cleaned['password'],
- "note" => $cleaned['realpurpose']
+ "note" => $cleaned['realpurpose'],
+ "yesno" => $cleaned['yesno'],
)
);
// Error while posting
@@ -341,6 +345,10 @@
class="max" value="<?php if (isset($_POST['password'])) echo
clean($_POST['password']);?>" /></td>
</tr>
<tr>
+ <th class="subr">Did you fill this form out correctly (yes/no)?</th>
+ <td><input type="text" size="10" name="yesno"
class="max" value="no" /></td>
+</tr>
+<tr>
<th colspan="2"><input type="submit" value="Send Request"
/></th>
</tr>
</table>