This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT `user_login`, count(*) as total FROM users GROUP BY `user_login` HAVING total > 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param apiKey - ключ для GCM, получить можно в https://code.google.com/apis/console/ | |
* @param registrationIdsArray - массив токенов устройств | |
* @param messageData - массив данных уведомления, например: array('message' => "Hey!") | |
*/ | |
function sendGCMNotification( $apiKey, $registrationIdsArray, $messageData ) | |
{ | |
$headers = array("Content-Type:" . "application/json", "Authorization:" . "key=" . $apiKey); | |
$data = array( |
NewerOlder