CREATE TABLE `pikkubot_avs` (
`pikkubot_avs_id` int(11) NOT NULL auto_increment,
`pikkubot_avs_datum` datetime NOT NULL default '0000-00-00 00:00:00',
`pikkubot_avs_lastseen` datetime NOT NULL default '0000-00-00 00:00:00',
`pikkubot_avs_name` text NOT NULL,
`pikkubot_avs_key` text NOT NULL,
`pikkubot_avs_sim` text NOT NULL,
`pikkubot_avs_vector` text NOT NULL,
`pikkubot_avs_hash` varchar(32) NOT NULL default '',
PRIMARY KEY (`pikkubot_avs_id`),
KEY `pikkubot_avs_hash` (`pikkubot_avs_hash`)
) ENGINE=MyISAM;
==== A PHP-script for logging in the database ====
We need a script to log the datas collected from the bot in the database, we call the file **log.php**:
Please replace **Username** with the MySQL Database User (for example root) and **password** with the pass of this user.
\\
==== Insert the URL in the Bot Program ====
Just insert following command in your Bot window:
geturl http://my_server/log.php
Now the bot should log the found Avatars in the database. Pleace verify this with phpMyAdmin.
==== PHP-Skript to view the data ====
Now you need a simple script to show the logged Avatars, we call the file **hunted.php**:
";
$select=mysql_query("
select * FROM pikkubot_avs
ORDER BY pikkubot_avs_lastseen DESC
LIMIT 0,50
");
if (mysql_num_rows($select)>0 ) {
echo "Last 50 seen Avatars :
";
echo "";
echo "";
echo "First-Seen ";
echo "Last-Seen ";
echo "Avatar-Name ";
echo "Avatar-Key ";
echo "Avatar-Sim ";
echo "Avatar-Vector ";
echo " ";
for ($a=0; $a";
echo "$row[pikkubot_avs_datum] ";
echo "$row[pikkubot_avs_lastseen] ";
echo "$row[pikkubot_avs_name] ";
echo "$row[pikkubot_avs_key] ";
echo "$row[pikkubot_avs_sim] ";
echo "$row[pikkubot_avs_vector] ";
echo "";
}
echo "
";
}
else
{
echo "... Sorry, no Avatars seen yet ...
";
}
?>
Done!\\
\\
Of course you can edit the scripts for your own use as you like! \\
See also: [[:howtos:geturl_for_prims|Enhance "geturl" for prims]] \\
\\
~~UP~~
----