Top

Code Snippets by bone282

  (7)  
Sort by 
A bot i made for a friend who wanted to execute php strings with eval. I added a couple other functions aswell. ------------- Commands: .auth add <nick> .auth del <nick> .auth list .join..
Tags: bot  php  socket 
+ 4 likes
18 comment(s)    Score: 10.0    Platform: PHP    Posted by bone282 on Apr 30, 2009
(PHP 5) I just upgraded my bot from 4.3.3 to 5.2.9-1 yesterday and thought id play around with it. Weather Underground handles IATA/ICAO Airport codes, ZIP codes, aswell as typing city, state/country. For..
+ 1 likes
3 comment(s)    Score: 7.0    Platform: PHP    Posted by bone282 on Apr 08, 2009
This function will trim a string and leave the last word completely intact Result: This function will trim a string and leave the last word... This function will trim a string and leave the last... Global..
Tags: trim  trim string  truncate 
+ 0 likes
1 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 17, 2009
An extremely easy, and sometimes handy (especially with room bots spamming large quantities of links in one go). You might call it with something like this ($matches1['1'] = the url/s.) if (strlen($matches1['1'])..
Tags: php  tinyurl 
+ 0 likes
0 comment(s)    Score: 0.0    Platform: PHP    Posted by bone282 on Mar 10, 2009
This just uses googles own calculator.. heres what the output looks like [12:49][RandomUser] !calc 23*4/56^2/456+8999 [12:49][PHP_Bot] (((23 * 4) / (56^2)) / 456) + 8999 = 8999.00006 full instructions..
Tags: bot  calc  calculator  php 
+ 1 likes
4 comment(s)    Score: 6.0    Platform: PHP    Posted by bone282 on Mar 04, 2009
Just a simple way of generating a random string.
Tags: bot  password  php  random  username 
+ 0 likes
3 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 04, 2009
Scraping the classic fact generators. And a simple but effective use of array_rand. Call 'do_RandomFacts' by either of the following: do_RandomFacts("chuck"); do_RandomFacts("mrt..
+ 0 likes
3 comment(s)    Score: 5.0    Platform: PHP    Posted by bone282 on Mar 01, 2009
Bottom