Differences

This shows you the differences between the selected revision and the current version of the page.

wiki:aiml2000-interface 2011/05/31 11:15 wiki:aiml2000-interface 2011/05/31 11:31 current
Line 15: Line 15:
<code> <code>
<?php <?php
 +
 +// Logfile
 +//
$fd=fopen("/tmp/aiml2000.log", a); $fd=fopen("/tmp/aiml2000.log", a);
fwrite($fd, base64_decode($_GET[data])); fwrite($fd, base64_decode($_GET[data]));
fclose($fd); fclose($fd);
 +// Get the field from the data-var
 +//
$exp=explode("\t", base64_decode($_GET[data])); $exp=explode("\t", base64_decode($_GET[data]));
Line 27: Line 32:
// $exp[4] -> Message // $exp[4] -> Message
 +// Result
 +//
if ($exp[0]=="CHAT") if ($exp[0]=="CHAT")
{ {
echo "Thanks for chatting with me ".$exp[3]; echo "Thanks for chatting with me ".$exp[3];
 + die;
} }
Line 35: Line 43:
{ {
echo "Thanks for sending an IM to me ".$exp[3]; echo "Thanks for sending an IM to me ".$exp[3];
 + die;
} }
Line 40: Line 49:
{ {
echo "Thanks for your request to this group, ".$exp[3]; echo "Thanks for your request to this group, ".$exp[3];
 + die;
} }
 +echo "\n";
?> ?>
</code> </code>
wiki/aiml2000-interface.1306833359.txt.gz · Last modified: 2011/05/31 11:15 by eves
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0