bandersen
02-01-2003, 05:59 PM
Hi - I am trying to get the Tombot AI hack to work but have trouble with the bot reply. I appreciate any help.
This is the section in tomstalkerbot.php that gives the reply:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);
Edit: using the above I only got the smileys in the reply.
I changed it to the following:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
shell_exec("fetch -o /forums/upload/alice \"$ttb_alicelocation?input=".urlencode($rss)."\"");
$ff = fopen("/forums/upload/alice","r");
$response = fread($ff,10000);
fclose($ff);
This is how the reply comes up (se attachment for picture):
³ .µ .. ³aimlN=í³ sql³ src³
COPYING³,#talk.php?input=are+you+there+now%3F³ ,!talk.php?input=testing+thi s+thing#ÀA¶X2talk.php? input=Testing+after+incl+Mike%27s+changesÇ
(ps:he repeats/ answers the third question with all 3 separate questions/posts)
I use 2.2.9
Php 4.2.3
I am on a shared server, but php.ini does not have safe mode enabled. I have tried to change the $ttb_alicelocation (/forums/upload/alice) to the full path (/user222/username/public_html/forums/upload/alice) with no changes in the reply.
I appreciate any help!
This is the section in tomstalkerbot.php that gives the reply:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
$ff = fopen($ttb_alicelocation . "?input=" . urlencode($rss),"r");
$response = fread($ff,10000);
fclose($ff);
Edit: using the above I only got the smileys in the reply.
I changed it to the following:
$rss = preg_replace("#^(.*)\[/quote\]#ies","",$message);
shell_exec("fetch -o /forums/upload/alice \"$ttb_alicelocation?input=".urlencode($rss)."\"");
$ff = fopen("/forums/upload/alice","r");
$response = fread($ff,10000);
fclose($ff);
This is how the reply comes up (se attachment for picture):
³ .µ .. ³aimlN=í³ sql³ src³
COPYING³,#talk.php?input=are+you+there+now%3F³ ,!talk.php?input=testing+thi s+thing#ÀA¶X2talk.php? input=Testing+after+incl+Mike%27s+changesÇ
(ps:he repeats/ answers the third question with all 3 separate questions/posts)
I use 2.2.9
Php 4.2.3
I am on a shared server, but php.ini does not have safe mode enabled. I have tried to change the $ttb_alicelocation (/forums/upload/alice) to the full path (/user222/username/public_html/forums/upload/alice) with no changes in the reply.
I appreciate any help!