collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Who's Online RSS Feed  (Read 9462 times)

0 Members and 1 Guest are viewing this topic.

Offline Barbapappan

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Who's Online RSS Feed
« Reply #15 on: November 08, 2008, 12:08:19 am »
wow quick reply =) ok ill keep at it then and hopefully i can post a working version in a while =)

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Who's Online RSS Feed
« Reply #16 on: November 08, 2008, 12:25:30 am »
I did get about 90% done with a version for 0.4 that used HTTP instead of doing ftp, scp, etc.

http://zibby.isa-geek.net/BeBot_0.4/AOWebOnline/AOWebOnline_0.0.1.zip

AOWebOnline_BeBot04.php goes in custom/modules.

ASZSQLite2.php
config.php
display_online.php
index.php
online.sq2
update_online.php

Go on your web server.

Invent an encryption key (https://www.grc.com/passwords.htm should do) and paste it into config.php. Add the same encryption key to your bot via settings, and set the URL to update_online.php (Example: http://zibby.isa-geek.net/AOWebOnline/update_online.php)

Viewing display_online.php should kick out a basic HTML list of who is online. Never got around to making XML output. ;)

In addition to the normal BeBot requirements, you need the PHP mcrypt and mhash modules to run the bot module.

To run the webpage, you need mcrypt, mhash, and SQLite PHP modules.

When there is a change to online status, the bot modules cron job will do a HTTP query to update_online.php. The query looks like http://www.server.com/aowebonline/update_online.php?string=<encrypted_string>&hmac=<HMAC>&iv=<initilization_vector>. The data is encrypted and authenticated using your encryption key in a way that (according to my understanding of encryption, hashing, IVs, HMACs, etc.) secure as long as the encryption key is never disclosed to a 3rd party. :)

Mostly this was an exercise in symmetric key encryption. The online list was just something a bit more interesting than "Hello World!"  ;D
« Last Edit: November 08, 2008, 12:29:06 am by Glarawyn »

Offline Barbapappan

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Who's Online RSS Feed
« Reply #17 on: November 08, 2008, 12:31:36 am »
oh nice! that saved me a lot of work =) ill work on that one instead then :P

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 588
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal