| 1 |
<?php |
<?php |
| 2 |
// $Id: services_keyauth.inc,v 1.1.2.8.2.3 2009/09/05 13:57:58 marcingy Exp $ |
// $Id: services_keyauth.inc,v 1.1.2.8.2.4 2009/10/15 02:59:56 marcingy Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 157 |
if (db_result(db_query("SELECT count(*) FROM {services_timestamp_nonce} |
if (db_result(db_query("SELECT count(*) FROM {services_timestamp_nonce} |
| 158 |
WHERE domain = '%s' AND nonce = '%s'", |
WHERE domain = '%s' AND nonce = '%s'", |
| 159 |
$domain, $nonce))) { |
$domain, $nonce))) { |
| 160 |
return services_error(t('Token has been used previously for a request. Re-try with another nonce key.', 401)); |
return services_error(t('Token has been used previously for a request. Re-try with another nonce key.'), 401); |
| 161 |
} |
} |
| 162 |
else{ |
else{ |
| 163 |
db_query("INSERT INTO {services_timestamp_nonce} (domain, timestamp, nonce) |
db_query("INSERT INTO {services_timestamp_nonce} (domain, timestamp, nonce) |