Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Track IRC users using PHP... Details »»
Track IRC users using PHP...
Version: 1.00, by ToXiC ToXiC is offline
Developer Last Online: Nov 2004 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 03-25-2003 Last Update: Never Installs: 3
 
No support by the author.

Well, this really isn't a VB hack, but this is the only place I can find to post it...

To use this hack, you must have root access to a linux box.

I can not say that it will work on every IRC server, as I have IRCu/srvx. If you have a different setup, and get this to work, please post here so others know.

Setting it up is very simple, just follow what is below:

**Use at your own risk**

Here we go..

login to ssh...
Code:
$ su -

$ wget http://www.staticserver.com/irc/IRCuStat-2.0f.tgz

$ tar -zxf IRCuStat-2.0f.tgz
$ rm -f IRCuStat-2.0f.tgz

$ cd IRCuStat-2.0f
$ ./irc_install

Once you are done setting it up...

$ cd ..
$ rm -rf IRCuStat-2.0f
Anything with a '$' infront is a command.

Thats it!

Just follow the bit of info it gives after install, and your all set!

ircbot -i installs the MySQL table
ircbot -j toggles the cronjob

If you want to set the cron to run differently than the default (5 minutes), then just do
Code:
$ ircbot -j 10
That would set it for 10 minutes.

Hope this helps some people out.

I will support this, please post what you wish to be added...


I will not go into detail about making a template for it. If you don't know how to pull the information from the database, then please do not use this script. The table is named `irc`.

Have fun.

EDIT
----------------

There is now a VB hack to go along with this. Scroll down a bit to see it.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-26-2003, 10:13 AM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*cough* http://forum.rackshack.net/showthrea...threadid=20222 *cough*
Give credit to the auther next time you copy a post.

Also since this isn't a vbulletin hack this DOES NOT belong here.
Maybe if you added a template eval for including ircstats.php (im pretty sure it can be done even if your on another shell, you just need to use the full server path. Make sure safemode php is off) and slaped it on its own vb page. they would let this script stay.

And you dont need root access to for this script. You only need to create a shell that can make its own cron jobs.
Reply With Quote
  #3  
Old 03-26-2003, 12:01 PM
ToXiC ToXiC is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*caugh* thats me *caugh*

You might want to look at the name of the poster. Thanks.

I said you need root access because it needs to be placed in /usr/local. Unless you want other users to have access to run the bot whenever they want to.

Anyway, I posted it here because I remember seeing a CGI based bot that was also posted here. Where were you then to bash on the author of that? Or am I your new scapegoat?

But hey, thanks for sharing your thoughts. Should I delete it now, or wait a day?
Reply With Quote
  #4  
Old 03-26-2003, 12:16 PM
ToXiC ToXiC is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

safe mode off? please.

Thats like giving someone the keys to your car, and walking away.

But this is comming from a person who has accused me of copying my own post, and stealing my own work.
Reply With Quote
  #5  
Old 03-26-2003, 02:00 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry. I was in a rush and didn't see the name :P

Why exacly does this need to be in /usr/local/

And the CGI bot got deleted :P

You can also on a RS turn safemode off for a single site.
Reply With Quote
  #6  
Old 03-26-2003, 06:48 PM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

safemode? Should it be on or off? What are the risks? Isn't it only for people that execute stuff via ssh, etc?
Reply With Quote
  #7  
Old 03-26-2003, 08:29 PM
ToXiC ToXiC is offline
 
Join Date: May 2002
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, you can turn safemode off for a site, and it should only be done that way.

The main safemode should always remain on. If it were off, and you have hosted some sites, then this could happen.

Say you have foo.com and bar.com hosted. foo's siteid is 1 and bar's siteid is 2. If safemode was off for the whole server, and foo.com had vb installed, or anyother script, bar.com could issue this in a script "include("/home/virtual/site1/fst/var/www/html/forums/admin/config.php");" which is actually including foo.com's vb config file. They would actually be able to include files from anywhere on the server.

So yea, you can turn it off for only one site, and thats how i do it.


As I stated, if you have more users in ssh, besides root, and this bot were poorly placed, they could easily issue "./ircbot (-s -d -j -v -c -i -r)". So I guess it doesn't have to be in /usr/local, but it is the safest place for it to go.
Reply With Quote
  #8  
Old 03-26-2003, 09:28 PM
VeoMorphine VeoMorphine is offline
 
Join Date: Nov 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a good hack.

You can make a template eval for this and put it in the forumn home pretty easly i think.
Reply With Quote
  #9  
Old 03-26-2003, 09:36 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ToXiC,

Nice hack.

You are currently showing up as unlicensed. To be able to download hacks and/or receive support here at vBulletin.org, we ask you to please click here (vB-germany users click here) and enter your email address, to show us that you are licensed.

You will need to use your customer number and password (which will be in the email you got when you paid for your license) to access that page. Please note that your email is case sensitive.

Thank you.
Reply With Quote
  #10  
Old 03-27-2003, 02:57 AM
DWZ's Avatar
DWZ DWZ is offline
 
Join Date: Dec 2001
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to attach that file ToXiC, I hope you don't mind... just in case your server is down, or ten months down the line you decide to delete it off your server and someone wants it etc...

(i know i hate it when download links are broken...)


Note: remove .rar from the filename, it's really a .tar, vBulletin won't let me uploads tars...

BTW ToXiC, good work
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07900 seconds
  • Memory Usage 2,295KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete