Psychostats2Eggdrop
(Różnice między wersjami)
Linia 6: | Linia 6: | ||
=Ideas= | =Ideas= | ||
+ | * eggdrop tcl asks for www page with given parameter | ||
+ | * php checks if parameter is correct (to avoid exploits), then runs SQL query, and produces output based on given template file | ||
+ | * eggdrop recieves data and passess them to the irc channel, or privmsg to player | ||
+ | |||
+ | ==Pros== | ||
+ | * not everyone can connect to remote mysql host | ||
+ | * integrating sql witin tcl will make file too large and hard to edit output | ||
+ | * php connects to mysql better :) | ||
+ | * template makes it easier to edit output format - you do not have to use a plain text, you can change it to RSS feed aswell, or later integrate it to WWW in some intranet website | ||
+ | * you can easily restrict access to the script | ||
+ | ==Cons== | ||
+ | * requres aditional file in php | ||
+ | * require extra tcl script for retreivng data from www, but most users that use RSS readers, Weather scripts or Google search tools allready have it | ||
+ | |||
+ | [[Grafika:Psychostats2eggdrop.jpg]] |
Wersja z 10:32, 22 paź 2006
Spis treści |
Description
Accessing PsychoStats statistics from the Eggdrop TCL script , so the players can check their statistics on IRC.
Ideas
- eggdrop tcl asks for www page with given parameter
- php checks if parameter is correct (to avoid exploits), then runs SQL query, and produces output based on given template file
- eggdrop recieves data and passess them to the irc channel, or privmsg to player
Pros
- not everyone can connect to remote mysql host
- integrating sql witin tcl will make file too large and hard to edit output
- php connects to mysql better :)
- template makes it easier to edit output format - you do not have to use a plain text, you can change it to RSS feed aswell, or later integrate it to WWW in some intranet website
- you can easily restrict access to the script
Cons
- requres aditional file in php
- require extra tcl script for retreivng data from www, but most users that use RSS readers, Weather scripts or Google search tools allready have it