cvs: pearweb /public_html/election edit.php new.php
| From: | Greg Beaver | Date: | Sun, 03 Dec 2006 00:06:37 +0000 |
| Subject: | cvs: pearweb /public_html/election edit.php new.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5234@lists.php.net to get a copy of this message | ||
cellog Sun Dec 3 00:06:37 2006 UTC
Modified files:
/pearweb/public_html/election edit.php new.php
Log:
fix validation of election date
http://cvs.php.net/viewvc.cgi/pearweb/public_html/election/edit.php?r1=1.1&r2=1.2&diff_format=u
Index: pearweb/public_html/election/edit.php
diff -u pearweb/public_html/election/edit.php:1.1 pearweb/public_html/election/edit.php:1.2
--- pearweb/public_html/election/edit.php:1.1 Tue Nov 21 05:40:27 2006
+++ pearweb/public_html/election/edit.php Sun Dec 3 00:06:36 2006
@@ -16,7 +16,7 @@
* @author Gregory Beaver <cellog@php.net>
* @copyright Copyright (c) 2006 The PHP Group
* @license http://www.php.net/license/3_01.txt
PHP License
- * @version $Id: edit.php,v 1.1 2006/11/21 05:40:27 cellog Exp $
+ * @version $Id: edit.php,v 1.2 2006/12/03 00:06:36 cellog Exp $
*/
auth_require('pear.election');
@@ -65,8 +65,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];
@@ -84,8 +84,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];
@@ -112,8 +112,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];
http://cvs.php.net/viewvc.cgi/pearweb/public_html/election/new.php?r1=1.1&r2=1.2&diff_format=u
Index: pearweb/public_html/election/new.php
diff -u pearweb/public_html/election/new.php:1.1 pearweb/public_html/election/new.php:1.2
--- pearweb/public_html/election/new.php:1.1 Tue Nov 21 05:40:27 2006
+++ pearweb/public_html/election/new.php Sun Dec 3 00:06:36 2006
@@ -26,8 +26,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];
@@ -50,8 +50,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];
@@ -94,8 +94,8 @@
$info['detail'] = $_POST['detail'];
$info['choices'] = (int) $_POST['choices'];
$info['year'] = (int) $_POST['year'];
- $info['month'] = (int) $_POST['month'];
- $info['day'] = (int) $_POST['day'];
+ $info['month'] = $_POST['month'];
+ $info['day'] = $_POST['day'];
$info['length'] = (int) $_POST['length'];
$info['minimum'] = (int) $_POST['minimum'];
$info['maximum'] = (int) $_POST['maximum'];