|
@@ -32,9 +32,9 @@ discard block |
|
|
block discarded – undo |
|
32
|
32
|
{ |
|
33
|
33
|
// Encrypt the current time |
|
34
|
34
|
$honey_time_encrypted = $this->getEncryptedTime(); |
|
35
|
|
- return '<div id="' . $honey_name . '_wrap" style="display:none;">' . "\r\n" . |
|
36
|
|
- '<input name="' . $honey_name . '" type="text" value="" id="' . $honey_name . '"/>' . "\r\n" . |
|
37
|
|
- '<input name="' . $honey_time . '" type="text" value="' . $honey_time_encrypted . '"/>' . "\r\n" . |
|
|
35
|
+ return '<div id="'.$honey_name.'_wrap" style="display:none;">'."\r\n". |
|
|
36
|
+ '<input name="'.$honey_name.'" type="text" value="" id="'.$honey_name.'"/>'."\r\n". |
|
|
37
|
+ '<input name="'.$honey_time.'" type="text" value="'.$honey_time_encrypted.'"/>'."\r\n". |
|
38
|
38
|
'</div>'; |
|
39
|
39
|
} |
|
40
|
40
|
/** |
|
@@ -66,7 +66,7 @@ discard block |
|
|
block discarded – undo |
|
66
|
66
|
// Get the decrypted time |
|
67
|
67
|
$value = $this->decryptTime($value); |
|
68
|
68
|
// The current time should be greater than the time the form was built + minimum |
|
69
|
|
- return ( is_numeric($value) && time() > ($value + $minDelta) ); |
|
|
69
|
+ return (is_numeric($value) && time() > ($value + $minDelta)); |
|
70
|
70
|
} |
|
71
|
71
|
/** |
|
72
|
72
|
* Get encrypted time |
Please login to merge, or discard this patch.