Top

Dynamic Signature Updater Triggered by mIRC


PHP Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  0.0 (of 0 scores)
Date Added  May 14, 2009
Last Updated  May 14, 2009
Tags  combo  dynamic  mirc  php  script  sig  signature 

Introduction

Hi, this is my first release here, please comment what you like/dislike about it! :)


Ok, so this is a multi-PHP-mIRC script. Basically, the users in your IRC room will trigger the signature updater (!sig by default). Now, it will open a socket to the PHP code on the web-server. The server will update the text file, and also the textall.txt (the list of the last 100 !sigs added). Now, when the image is loaded, what they said is instantly on there :)
It will also announce their IP address, and log it to a text file (useless to do, but fun).
Also has a nice hit-counter, and an elite view.
Make sure the files are chmod'd to 777. (You do not "need" to do that, but if you get any errors, try doing that.)


Demo of the .php file in action ( irc.freenode.net #SRL (I am idle there, it should work. I am using a fail connection as my BNC died, but it should work))
http://harry.impsoft.info/sig.gif/index.php


Download of the PHP code to un-rar and FTP to your server:
http://www.mediafire.com/download.php?z0temaymyie


Setup the PHP section of the code:
1) Ctrl + F for "SUPERCOOLVAR".
2) Replace that with whatever secret keyword you choose at line #25 @ the mIRC setup.



Setup the mIRC portion of the script:
Line 2: Stop imposers. Put your nickname down there.
Lines 2-14: Feel free to add in any other sorts of blacklists, in my opinion it should work fine as I have it setup. Also, I know I can compress the lines into one big IF statement, I just do not care :)
Line 21: Set your hostname here for "sockopen".
Line 25: Direct it to where on the server the /sig.gif/ folder is located. Also, change the "ChangeThisVar" to a random name, number, or something that someone can not easily guess (so they can not vandalize the sig as easy).
Line 26: Put in your host as you did before.
Line 36: Link them to the place where the sig is viewable. Preferably your forums account where you have the image linked to.


ENJOY.
~ Harry. (Admin, change my username here that if possible please?)



You may NOT repost (i.e. "making a release" at a different forum), claim ownership of, nor sell this script or anything related to this project; this has taken a lot of work from me, and I do not wish for anyone to rip off my work. All this code is open-sourced, but copyrighted, by me. It is my baby (though it may appear simple to you), and I do not wish for you to break these rules. I want to be able to trust you guys, so I can make another public release in the near future.. Thanks.

Grab the Code

on *:TEXT:!sig *:#: {
  if (Harry isin $nick) { .notice $nick Please change your nickname using /nick to something that doesn't have 'Harry' in it. | return }
  if (.com isin $2-) { .notice $nick No websites please. | return }
  if (.org isin $2-) { .notice $nick No websites please. | return }
  if (.net isin $2-) { .notice $nick No websites please. | return }
  if (.info isin $2-) { .notice $nick No websites please. | return }
  if (.c isin $2-) { .notice $nick No websites please. | return }
  if (www isin $2-) { .notice $nick No websites please. | return }
  if (http isin $2-) { .notice $nick No websites please. | return }
  if (on.nimp isin $2-) { .notice $nick No shocksites, please. | msg $chan Don't click that link!! ^ | return }
  if (nigg isin $2-) { .notice $nick Go away, racist pig. | return }
  if (KKK isin $2-) { .notice $nick GTFO. | return }
  if (Nazi isin $2-) { .notice $nick GTFO. | return }
  if ($chan != #chan) { .notice $nick !sig will only work in #chan. Sorry. | return }
  if ($chr(37) isin $2-) { .notice $nick That symbol is disabled, sorry. | return }
  if (& isin $2-) { .notice $nick Please use "and" instead of "&" | return }
 
  {
    set %sigperson $nick : $chr(32)
    set %desuplz $2-
    sockopen sigplz SITE-WHERE-SIG-IS-HOSTED.com 80 
  }
}
on *:sockopen:sigplz: {
  sockwrite -n $sockname GET /sig.gif/index.php?ChangeThisVar= $+ $replace(%sigperson,$chr(32),+) $+ $replace(%desuplz,$chr(32),+) $+ &archive= $+ $replace(%sigperson,$chr(32),+) $+ $replace(%desuplz,$chr(32),+) HTTP/2.0
  sockwrite -n $sockname Host: SITE-WHERE-SIG-IS-HOSTED.com
  sockwrite -n $sockname Connection: close
  sockwrite -n $sockname $crlf
  if ($sockerr) { echo -ag $sock($sockname).wsmsg | return }
}
on *:sockread:sigplz: {
  sockread $winrar
  if ($sockerr) { echo -ag $sock($sockname).wsmsg | return }
}
on *:sockclose:sigplz: {
  .notice %sigperson Via Harry's Signature Updater: Your saying has been added to my signature. :) http://LINK-THEM-TO-WHERE-YOUR-SIG-IS-HOSTED-OR-FORUM-ACCOUNT.com /// Download the script for free at http://www.hawkee.com/snippet/6139/
  unset %sigperson %t
  unset $winrar %t
  if ($sockerr) { echo -ag $sock($sockname).wsmsg | return }
}

Comments

  (5)  RSS
andromeda
Comments: 26
 
PHP Snippet:  Dynamic Signature Updater Triggered by mIRC
Posted on May 14, 2009 2:06 am
if (Harry isin $nick......) <--- actually what do you mean by this? /me half understand half not lol..
WorldDMT
Comments: 171
 
PHP Snippet:  Dynamic Signature Updater Triggered by mIRC
Posted on May 14, 2009 4:53 am
hi

sorry i'm not verry well in english.

for scan sites, server irc and emails use a regex

Code:
$regex($2-,/(?:[-_\.]\w+)?@\w+([-_\.]?\w+)?\.\w+\b|(www\.|http:\/\/|irc\.)\w+([-_\.]?\w+)?\.\w{2,4})/i


why all that "if" and "return"?! use "if/elseif/else" & delet the "return"
what is the alias "winrar" & what is the variable "%t" ???

put $sockerr before the commandes

u didn't unset %desuplz

in "sockclose" notice %sigperson = notice nick : set %sigperson $nick $+ +:+ and dont replace any space with "+" & for the last notice type notice "$gettok(%sigperson,1,43)"

so that your code with the alias "winrar" that i don't now without the variable "%t" :p

Code:
on *:TEXT:!sig *:#:{
  if (Harry isin $nick) .notice $nick Please change your nickname using /nick to something that doesn't have 'Harry' in it.
  elseif ($regex($2-,/(?:[-_\.]\w+)?@\w+([-_\.]?\w+)?\.\w+\b|(www\.|http:\/\/|irc\.)\w+([-_\.]?\w+)?\.\w{2,4})/i) .notice $nick No websites, servers and e-mails please.
  elseif on.nimp isin $2- { .notice $nick No shocksites, please. | msg $chan Don't click that link!! ^ }
  elseif (nigg isin $2-) .notice $nick Go away, racist pig.
  elseif (KKK isin $2-) .notice $nick GTFO.
  elseif (Nazi isin $2-) .notice $nick GTFO.
  elseif ($chan != #chan) .notice $nick !sig will only work in #chan. Sorry.
  elseif ($chr(37) isin $2-) .notice $nick That symbol is disabled, sorry.
  elseif (& isin $2-) .notice $nick Please use "and" instead of "&"
  else {
    set %sigperson $nick $+ +:+
    set %desuplz $replace($2-,$chr(32),+) $+ +
    sockopen sigplz SITE-WHERE-SIG-IS-HOSTED.com 80
  }
}
on *:sockopen:sigplz:{
  if ($sockerr) echo -ag $sock($sockname).wsmsg
  else {
    sockwrite -n $sockname GET /sig.gif/index.php?ChangeThisVar= $+ %sigperson $+ %desuplz &archive= $+ %sigperson $+ %desuplz HTTP/2.0
    sockwrite -n $sockname Host: SITE-WHERE-SIG-IS-HOSTED.com
    sockwrite -n $sockname Connection: close
    sockwrite -n $sockname $crlf
  }
}
on *:sockread:sigplz:{
  if ($sockerr) echo -ag $sock($sockname).wsmsg
  else sockread $winrar
}
on *:sockclose:sigplz:{
  if ($sockerr) echo -ag $sock($sockname).wsmsg
  else {
    .notice $gettok(%sigperson,1,43) Via Harry's Signature Updater: Your saying has been added to my signature. :) http://LINK-THEM-TO-WHERE-YOUR-SIG-IS-HOSTED-OR-FORUM-ACCOUNT.com
    unset %sigperson %desuplz $winrar
  }
}
hy71194
Comments: 16
 
PHP Snippet:  Dynamic Signature Updater Triggered by mIRC
Posted on May 14, 2009 12:13 pm
@andromeda: That is my IRC nickname. Idiots were /nick'ing to stuff like "Harry_Real" and !sig'ing stuff like "LOL I SUCK COCKS".

@WorldDMT: Jaja, I know I can do that, but I like it better my way, thanks anyways.
andromeda
Comments: 26
 
PHP Snippet:  Dynamic Signature Updater Triggered by mIRC
Posted on May 15, 2009 12:40 am
ermmm...
hy71194
Comments: 16
 
PHP Snippet:  Dynamic Signature Updater Triggered by mIRC
Posted on May 17, 2009 4:49 pm
@andromeda ...... what?


Anyone else using it? (:
It is easy to convert to update and display the most recent comments into the sig too, if that is what rocks your boat.

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom