Jump to content
php.lv forumi

IP zona


rudzis

Recommended Posts

Guest noisex

ja kadam ir velme un laiks uzraxtit botu, kursh chekos valsts piederibu, izmantojot Mirc un MySQL tabulu ip2country, ko laipni piedavaja bubu, tad varat izmantot shito moduli prieksh Mirca http://sourceforge.net/project/showfiles.p...ackage_id=21107

 

dazzi piemeri no HELPA :)

 

alias _seen_exist {

var %query = SELECT event FROM seen WHERE nick=' $+ $1 $+ '

.echo -q $dll(mysql.dll,Query,koc %query)

return $gettok($dll(mysql.dll,Rows,koc),5,32)

}

 

alias _seen_update {

var %query = UPDATE seen SET address=' $+ $2 $+ ', event=' $+ $3 $+ ', ctime=' $+ $4 $+ ', network=' $+ $5 $+ ', reason=' $+ $6- $+ ' WHERE nick=' $+ $1 $+ '

.echo -q $dll(mysql.dll,Query,koc %query)

}

 

alias _seen_insert {

var %query = INSERT INTO seen (nick, address, event, ctime, network, reason) VALUES (' $+ $1 $+ ', ' $+ $2 $+ ', ' $+ $3 $+ ', ' $+ $4 $+ ', ' $+ $5 $+ ', ' $+ $6- $+ ')

.echo -q $dll(mysql.dll,Query,koc %query)

}

 

GO 4 IT..man diemzzel nav laika tadam izprieceem, jo reali daudz jadara citas lietas shonedelj, mosh kaut kad velak.

Link to comment
Share on other sites

×
×
  • Create New...