Subject: Program O
Hi,
I asked a question recently about integrating the IMified service with Alice, and I used Program E with the imified.php file you told me to use. Can I do the same thing with Program O? Program O is an extension of Program E with admin support. I was wondering where do I place the imified script so that it works with Program O.
Thanks,
Gautam
Support Staff 2 Posted by Adam Kalsey on 29 Jan, 2010 12:33 AM
I'm not familiar with Program O, but it should be possible to adapt
the code I wrote to work with it.
3 Posted by Gautam on 05 Feb, 2010 07:57 AM
Hi,
I tried modifying the code a bit, but I've hit a bit of a roadblock. The code you had provided me for Program E, which I tried modifying looks like this now:
<?php
include "response_handler.php";
$user = md5($POST['user'] .'@'. $POST['network']); $botresponse=checkresponse($_POST['msg'], $user, $response_Array['bot']); echo $botresponse->response;
?>
The file that seems to be similar to Program E's "response.php" is "response_handler.php" in Program O. The main method, that seems to be equivalent to Program E's "replybotname" is "checkresponse". It takes as it's arguments, an array $response_Array that seems to contain all the information, from the user to the bot.
I'm guessing the $_POST and $user are both related to IMified, and should be included somehow in the final file. I've attached response_handler.php and chat.php (another php file in Program O) as reference.
Thanks,
Gautam