Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl-cms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9847cda
)
fix robot field when haven't submitted yet
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 19 Jun 2014 20:24:52 +0000
(16:24 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 19 Jun 2014 20:24:52 +0000
(16:24 -0400)
contact.php
patch
|
blob
|
history
diff --git
a/contact.php
b/contact.php
index
769b2c5
..
86fccb9
100644
(file)
--- a/
contact.php
+++ b/
contact.php
@@
-29,14
+29,14
@@
function contact_main() {
}
function contact_main_form($id = false) {
}
function contact_main_form($id = false) {
+ $robot_correct = "" . $GLOBALS['contact_robot_answer'];
+ $robot_minus_one = "" . ($GLOBALS['contact_robot_answer'] - 1);
+ $robot_plus_one = "" . ($GLOBALS['contact_robot_answer'] + 1);
+ tem_set('robot_minus_one', $robot_minus_one);
+ tem_set('robot_plus_one', $robot_plus_one);
+
if(isset($_POST['name'])) {
$data = contact_get_fields();
if(isset($_POST['name'])) {
$data = contact_get_fields();
-
- $robot_correct = "" . $GLOBALS['contact_robot_answer'];
- $robot_minus_one = "" . ($GLOBALS['contact_robot_answer'] - 1);
- $robot_plus_one = "" . ($GLOBALS['contact_robot_answer'] + 1);
- tem_set('robot_minus_one', $robot_minus_one);
- tem_set('robot_plus_one', $robot_plus_one);
$host = this_host();
if(!$data['name'] && !$data['email'] && !$data['comments']) {
$host = this_host();
if(!$data['name'] && !$data['email'] && !$data['comments']) {