prepare("UPDATE bot_list SET session_id = null WHERE hashmini = ? LIMIT 1") or die(mysql_error()); $out2->execute(array($_GET['close'])); } // get the current bot list from database $out2 = $dbh->prepare("SELECT * FROM bot_list") or die(mysql_error()); $out2->execute(); $bots = $out2->fetchAll(); // default screen is waiting screen $display = "waiting"; // join a specific bot from the list if (isset($_GET['bot'])) { $out2 = $dbh->prepare("UPDATE bot_list SET session_id = 1 WHERE hashmini = ? LIMIT 1") or die(mysql_error()); $out2->execute(array($_GET['bot'])); if ($out2->rowCount()==1) $display = "live"; } ?>

              close

Bots list:

Last seen: (strtotime($thetime) - 60)) echo "ONLINE join"; else echo "AWAY"; } ?>