Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/web/library/
Upload File :
Current File : /home/caballoscriollos/www/web/library/class.enviopushandroid.php

<?php 

class EnvioPushAndroid
{
	const ApiKeyAccess = 'AAAAxtHkb3U:APA91bEPp5FBNpFEkap9Q9yRo3wy2G2sIdLwGQhw0Hdy8-r8E-xNPPa0POTuGXOU08F5tY_FDr3ItwCwZOr8tyYzp7NqiAWgvUhU2528mMMnMU7qv4w_W1zoOJtzetp6CujfkyrsNujR';
	const Debug = true;
	
	public function __construct()
	{
	}
	
	public function EnviarAlerta($IdEnvio, $Asunto, $Mensaje, $registrationIds)
	{
		$msg = array
            (
            'message'		=> $Mensaje,
            'title'			=> $Asunto,
            'subtitle'		=> $Mensaje,
            'tickerText'	=> $Mensaje,
            'vibrate'		=> 1,
            'sound'			=> 1,
            'largeIcon'		=> 'large_icon',
            'smallIcon'		=> 'small_icon',
			'IdEnvio' => $IdEnvio
        );

        $fields = array
            (
            'registration_ids' => $registrationIds,
            'data' => $msg
        );

        $headers = array
            (
            'Authorization: key=' . EnvioPushAndroid::ApiKeyAccess,
            'Content-Type: application/json'
        );

        //echo "Contacting Android device...";

        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'https://fcm.googleapis.com/fcm/send');
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
        $result = curl_exec($ch);
        curl_close($ch);

		return $result;
	}		
}

?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat