Search
 
 

Display results as :
 


Rechercher Advanced Search

Web Applications
install Joomla Wordpress Phpbb Drupal FluxBB PunBB osCommerce simple-machines MYBB moodle vBulletin Dolphin-v.7.1.1 PHPNUKE XOOPS
Services
install BorkNet Services X3 Services Anope Atheme Services Srvx IRC Srervices
IRCD
install Snircd IRCU INSPIRCD UNREAL Nefarious Bircd Bahamut Asuka Charybdis
TCL SCRIPT
TCL SCRIPT FOR EGGDROP Allprotection4.7 Antiproxy
Bots
Bots install FishBot bobot++ Eggdrop janus Omega Security Services Botnix Bopm SupyBot PyLink Hopm
Latest topics
» מדריך הגנות אופרים בגירסאות IRCD
Mon May 14, 2018 5:50 am by Chief

» install irssi v1.2-1.2-dev in freebsd
Thu Mar 22, 2018 5:43 am by Chief

» install ZNC in Ubuntu 14.04
Sun Mar 04, 2018 5:50 am by Chief

» מדריך שינוי גירסאות ב FREEBSD
Fri Mar 02, 2018 8:35 am by Chief

» מדריך התקנה ZNC על WINDOWS 7
Wed Feb 21, 2018 3:30 am by Chief

» Guide install Znc in FreeBsd
Sun Feb 18, 2018 7:58 am by Chief

» Guide install InspIRCd v3.0.0a5 in FreeBsd
Thu Jan 18, 2018 9:52 pm by Chief

» mIRCx IRC Network Config
Sun Dec 10, 2017 2:22 am by Chief

» מדריך התקנה Pylink על unrealircd4 && inspircd
Sat Nov 18, 2017 6:35 am by Chief

May 2018
MonTueWedThuFriSatSun
 123456
78910111213
14151617181920
21222324252627
28293031   

Calendar Calendar

Affiliates
free forum

Affiliates
free forum


blacklist-dialog

Go down

blacklist-dialog

Post  Admin on Thu Dec 08, 2011 2:52 pm

Code:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;  Blacklist, v1
;;  By Arthas
;;  For www.Scripting.co.il
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
dialog Blacklist {
  title "Blacklist list"
  size -1 -1 104 188
  option dbu notheme
  box "Blacklist users list", 1, 3 3 96 94
  list 2, 8 12 86 80, size
  button "Add user", 6, 52 152 47 10
  button "Delete user", 7, 52 163 47 10
  button "Clear users", 8, 52 174 47 10
  box "Reasons", 9, 3 100 96 46
  list 10, 8 109 86 32, size
  button "Add Reason", 3, 3 152 47 10
  button "Delete Reason", 4, 3 163 47 10
  button "Clear Reasons", 5, 3 174 47 10
}
dialog Blacklistadd {
  title "Add Blacklist user"
  size -1 -1 102 34
  option dbu notheme
  edit "", 1, 3 3 96 11, autohs
  button "Add", 2, 52 17 46 13, ok
  button "Close", 3, 3 17 46 13, ok
}
dialog Blacklist2add {
  title "Add Blacklist"
  size -1 -1 101 45
  option dbu notheme
  edit "", 1, 28 3 70 11, autohs
  button "Add", 2, 52 29 46 13, ok
  button "Close", 3, 3 29 46 13, ok
  text "User:", 4, 4 4 18 8
  edit "", 5, 28 15 70 11, autohs
  text "Blacklist:", 6, 4 16 21 8
}
 
on *:dialog:*:*:*:{
  if ($dname == Blacklist) {
    if ($devent == sclick) {
      if ($did == 5 && $did($dname,2).seltext) { remini Blacklist.ini Blacklist $did($dname,2).seltext | did -r $dname 10 }
      if ($did == 4 && $did($dname,2).seltext && $did($dname,10).seltext) {
        var %u = $did($dname,10).seltext
        did -d $dname 10 $did($dname,10).sel
        if ($numtok($readini(Blacklist.ini,Blacklist,$did($dname,2).seltext),92) == 1) { remini Blacklist.ini Blacklist $did($dname,2).seltext }
        else { writeini Blacklist.ini Blacklist $did($dname,2).seltext $remtok($readini(Blacklist.ini,Blacklist,$did($dname,2).seltext),%u,1,92) }
      }
      if ($did == 3) && ($did($dname,2).seltext) { dialog -m Blacklist2add Blacklist2add | did -a Blacklist2add 1 $did($dname,2).seltext }
      if ($did == 2) { did -r $dname 10 | var %x = 1 | while (%x <= $numtok($readini(Blacklist.ini,Blacklist,$did($dname,2).seltext),92)) { did -a $dname 10 $gettok($readini(Blacklist.ini,Blacklist,$did($dname,2).seltext),%x,92) | inc %x }
      }
      If ($did == 6) { dialog -m Blacklistadd Blacklistadd }
      If ($did == 7) && ($did($dname,2).seltext) {
        var %g = $did(2).seltext
        if ($?!=\"Are you sure?") {
          if ($numtok($readini(Blacklist.ini,Blacklist,Blacklist),32) == 1) { remini Blacklist.ini Blacklist Blacklist }
          else { writeini Blacklist.ini Blacklist Blacklist $remtok($readini(Blacklist.ini,Blacklist,Blacklist),%g,1,32) }
          did -d $dname 2 $did($dname,2).sel | did -r $dname 10
        }
      }
      If ($did == 8) { .remove Blacklist.ini | did -r $dname 2 | did -r $dname 10 }
    }
    if ($devent == init) { var %x = 1 | while (%x <= $numtok($readini(Blacklist.ini,Blacklist,Blacklist),32)) { did -a $dname 2 $gettok($readini(Blacklist.ini,Blacklist,Blacklist),%x,32) | inc %x } }
  }
  if ($dname == Blacklistadd) && ($devent == sclick) && ($did == 2 && $did(1)) {
    if ($iif($gettok($gettok($did(1),1,46),2,64) !== $null,$gettok($gettok($did(1),1,46),2,64),$did(1)) !isin $readini(Blacklist.ini,Blacklist,Blacklist) || $did(1) !isin $readini(Blacklist.ini,Blacklist,Blacklist)) { did -a Blacklist 2 $did(1) | writeini Blacklist.ini Blacklist Blacklist $addtok($readini(Blacklist.ini,Blacklist,Blacklist),$iif($gettok($gettok($did(1),1,46),2,64) !== $null,$gettok($gettok($did(1),1,46),2,64),$did(1)),32)
      dialog -x $dname $dname
    }
  }
  if ($dname == Blacklist2add) && ($devent == sclick) && ($did == 2) && ($did(1)) && ($did(5)) { writeini Blacklist.ini Blacklist $did(1) $addtok($readini(Blacklist.ini,Blacklist,$did(1)),$did(5),92) | did -a Blacklist 10 $did(5) | dialog -x $dname $dname }
}
on *:join:#:{
  if ($gettok($gettok($wildsite,1,46),2,64) isin $readini(Blacklist.ini,Blacklist,Blacklist)) || ($nick isin isin $readini(Blacklist.ini,Blacklist,Blacklist)) {
    if ($me isop #) {
      var %nick = $iif($gettok($gettok($wildsite,1,46),2,64) isin $readini(Blacklist.ini,Blacklist,Blacklist),$gettok($gettok($wildsite,1,46),2,64),$nick)),92)
      var %sw = $iif($numtok($readini(Blacklist.ini,Blacklist,%nick),92) == 0,0,$r(1,$numtok($readini(Blacklist.ini,Blacklist,%nick),92)))
      ban -k # $nick 2 1Blacklisted $+ $iif($gettok($readini(Blacklist.ini,Blacklist,%nick),%sw,92),$chr(44) $gettok($readini(Blacklist.ini,Blacklist,%nick),%sw,92)) $iif(%sw !== 0,( $+ %sw $+ / $+ $numtok($readini(Blacklist.ini,Blacklist,%nick),92) $+ )) (banned user)
    }
  }
}
menu * {
  Blacklist list: dialog -m Blacklist Blacklist
}
menu nicklist {
  Blacklist
  .Add Blacklist user: if ($gettok($gettok($address($1,2),1,46),2,64) !isin $readini(Blacklist.ini,Blacklist,Blacklist)) { if ($dialog(Blacklist)) did -a Blacklist 2 $gettok($gettok($address($1,2),1,46),2,64) | writeini Blacklist.ini Blacklist Blacklist $addtok($readini(Blacklist.ini,Blacklist,Blacklist),$gettok($gettok($address($1,2),1,46),2,64),32) } | else { echo -a $address($1,2) is already on the Blacklist list }
}
נוצר על ידי Arthas
avatar
Admin
Admin

מספר הודעות : 267
Join date : 2009-09-12
Age : 37
מיקום : mIRCX IRC Network

View user profile http://mircx.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum