script for logging main chat on an external web server
 

script for logging main chat on an external web server

Started by hkvd, 18 May, 2010, 00:44:11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hkvd

dc++ runs on my university hostel's LAN. When students are away during their vacations or when they leave college they still want to participate in the main chat of the hostel's dc++ hub since its pretty happening and is a great way to stay in touch. Previously this was accomplished using hamachi, but out college upgraded its LAN management software and hamachi is blocked now.

Is it possible to write a PtokaX script which sends a ping containing the main chat message to an external web server whenever a new messages is added to the main chat of the hub. The external web server could be running a PHP script which would log all the main chat messages in a database. For e.g if the PHP script is hosted at http://example.com/dcchat.php then the PtokaX script would call/load this url - http://example.com/dcchat.php?nick=warrior&message=testing.  This way everyone outside the hostel LAN can get a glimpse of the main chat going on inside the hostel by accessing the external web server.

Also the PtokaX script could poll an external web server to check for new messages. If any new messages are found, then they could be posted on the main chat by the script. This way a web-based interface could be provided for participating in a dc++ main chat inside a local LAN which isn't directly accessible over internet.

Is such a PtokaX script possible or does any such script exist? Kindly help..

hkvd

Thanks for the prompt reply Mutor...

I got your 'PxWeb 1.0c LUA 5.11 [Strict] [API 2]' from here - http://forum.ptokax.org/index.php?topic=7378.0. After loading the script on my PtokaX dc hub I get the following error
QuoteSyntax C:\downloads\ptokax dc hub\scripts\pxweb.lua:52: attempt to index global 'SetMan' (a nil value)

I'm using PtokaX DC Hub 0.3.6.0. Should I upgrade my software version or is there some other problem?




SMF spam blocked by CleanTalk