gnu-social/plugins/Msn/extlib/phpmsnclass/sample.php
2010-06-12 17:30:11 +01:00

41 lines
1.1 KiB
PHP

#!/usr/bin/php -Cq
<?php
error_reporting(E_ALL);
include_once('msn.class.php');
// force to use MSNP9, without debug information
// $msn = new MSN('MSNP9');
// force to use MSNP9, with debug information
// $msn = new MSN('MSNP9', true);
// force to use MSNP15, without debug information
// $msn = new MSN('MSNP15');
// force to use MSNP15, with debug information
// $msn = new MSN('MSNP15', true);
// auto detect MSN protocol, without debug information
// $msn = new MSN;
// auto detect MSN protocol, with debug information
$msn = new MSN(array('user' => 'statusnetbot@inflatablegoldfish.com', 'password' => 'statusnetplugin', 'alias' => 'statusnetbot', 'psm' => '', 'debug' => true));
if ($msn->Run()) {
echo "Error for connect to MSN network\n";
echo "$msn->error\n";
exit;
}
//$msn->sendMessage('Now: '.strftime('%D %T')."\nTesting\nSecond Line\n\n\n\nand Empty Line",
// array(
// 'darkip@inflatablegoldfish.com'
// )
// );
echo "Done!\n";
exit;
?>