Source for file gntpAdapterSecurity.php
Documentation is available at gntpAdapterSecurity.php
* that send notifications to Growl using the new GNTP/1.0 protocol
* with encrypted messages
* @author Laurent Laville <pear@laurent-laville.org>
* @author Bertrand Mansion <bmansion@mamasam.com>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version SVN: Release: 2.7.0
* @link http://growl.laurent-laville.org/
* @since File available since Release 2.0.0RC1
require_once 'Net/Growl/Autoload.php';
// Notification Type definitions
define('GROWL_NOTIFY_STATUS', 'STATUS');
// define a PHP application that sends notifications to Growl
$appName = 'PEAR/Net_Growl ' . basename(__FILE__ , '.php');
'protocol' => 'gntp', 'timeout' => 10 ,
'AppIcon' => dirname(__FILE__ ) . DIRECTORY_SEPARATOR . 'Help.ico',
'encryptionAlgorithm' => 'AES',
'passwordHashAlgorithm' => 'SHA256',
'debug' => dirname(__FILE__ ) . DIRECTORY_SEPARATOR .
$title = 'Congratulation';
$description = 'You have successfully installed PEAR/Net_Growl.';
$growl->publish ($name, $title, $description);
$title = 'Welcome in PHP/GNTP world';
$description = "New GNTP protocol support 3 encryption algorithms ! \n"
. "DES, 3DES, AES with 4 hash algorithm \n"
. "MD5, SHA1, SHA256, SHA512.";
$growl->publish ($name, $title, $description, $options);
echo 'Caught Growl exception: ' . $e->getMessage () . PHP_EOL;
Documentation generated on Tue, 29 Jan 2013 18:30:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|