if(strlen($client->client_id) == 0|| strlen($client->client_secret) == 0)
die('Please go to Google APIs console page '.'http://code.google.com/apis/console in the API access tab, '.'create a new client ID, and in the line '.$application_line.' set the client_id to Client ID and client_secret with Client Secret. '.'The callback URL must be '.$client->redirect_uri.' but make sure '.'the domain is valid and can be resolved by a public DNS.');