<?php
include("aimclassw.php");
$b = new Aim("SCREEN NAME","PASSWORD",4);
$b->registerHandler("IM_IN2","ImINHand");
$b->signon();
$b->update_profile("",true);
while(1)
{
$b->recieve();
$b->myLastReceived="";
}
function ImINHand($message)
{
global $b;
$info=msg_parse(msg_type($message));
$info['message'] =strip_tags($info['message']);
$b->send_im($info['from'],strrev($info['message']));
sEcho("Got an incoming IM!");
}
?>
|