Changeset 3029
- Timestamp:
- 05/08/11 23:47:19 (12 years ago)
- Location:
- plugins/accessibleCaptcha
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/accessibleCaptcha/_define.php
r1899 r3029 6 6 /* Description*/ "This is an accessible captcha", 7 7 /* Author */ "Julien Wajsberg", 8 /* Version */ '1. 0',8 /* Version */ '1.1', 9 9 /* Permissions */ 'usage,contentadmin', 10 10 /* Priority */ 200 -
plugins/accessibleCaptcha/class.accessible.captcha.php
r1899 r3029 141 141 142 142 // et on en profite pour enlever les anciens 143 $current_datetime = date('Y-m-d H:i:s'); 144 $query .= " or timestamp + interval '" . self::$hash_ttl_min . " min' < '" . $con->escape($current_datetime) . "'"; 143 $expired_timestamp = gmmktime(gmdate('H'), gmdate('i') - self::$hash_ttl_min); 144 $expired_datetime = gmdate('Y-m-d H:i:s', $expired_timestamp); 145 $query .= " or timestamp < '" . $con->escape($expired_datetime) . "'"; 145 146 $con->execute($query); 146 147 } … … 181 182 $cur->captcha_id = $id; 182 183 $cur->id = $new_id; 183 $cur->timestamp = date('Y-m-d H:i:s');184 $cur->timestamp = gmdate('Y-m-d H:i:s'); 184 185 $cur->hash = $hash; 185 186
Note: See TracChangeset
for help on using the changeset viewer.