You are here

function _drd_server_validate_timestamp in Drupal Remote Dashboard Server 6.2

Same name and namespace in other branches
  1. 7.2 drd_server.module \_drd_server_validate_timestamp()

Parameters

string $timestamp:

Return value

bool

1 call to _drd_server_validate_timestamp()
_drd_server_validate_request in ./drd_server.module

File

./drd_server.module, line 943

Code

function _drd_server_validate_timestamp($timestamp) {
  for ($i = 0; $i < strlen($timestamp); $i++) {
    if (strpos('0123456789', $timestamp[$i]) === FALSE) {
      return FALSE;
    }
  }

  // TODO: Shall we check how old the timestamp is? Might be tricky, thinking about timezones
  return TRUE;
}