alias yonpanel { 
  if ($dialog(yonpanel)) { dialog -c yonpanel } 
  dialog -m yonpanel yonpanel 
} 

dialog yonpanel {
  title "..: SohbetSen Cafe - Koruma Yöneticisi :.."
  option dbu
  size 67 99 314 148
  icon  90, 16 -1 130 32 , $mircdirSohbetSen\ico\grafik\kanalkorumalari.jpg
  icon  91, 170 -1 130 32 , $mircdirSohbetSen\ico\grafik\kullaniciislemleri.jpg
  icon  92, 153 0 9 175 , $mircdirSohbetSen\ico\grafik\SohbetSen.jpg
  box " Kanal Korumaları [ Genel ] ", 101, 10 30 142 120
  box " Kullanıcı Korumaları  ", 102, 163 30 142 40
  box " Kullanıcı İslemleri  ", 103, 163 67 142 29
  box " SohbetSen Cafe [ Koruma Bilgi ] ", 104, 163 92 142 25
  box " SohbetSen Cafe [ Sürüm Notu ] ", 105, 163 114 142 36
  text "Bir SohbetSen Internet Hizmetleri ürünü" 106, 185 120 185 10 , disable
  text "http://www.SohbetSen.org" 107, 200 127 85 10 , disable
  check "Reklam Koruma" 1, 17 37 60 10,flat
  check "Bad Nick Koruma" 2, 87 37 60 10,flat
  check "Küfür Koruma" 3, 17 47 60 10,flat
  check "Bad Ident Koruma" 4, 87 47 60 10,flat
  check "Tekrar Koruma" 5, 17 57 60 10,flat
  check "OtoMesaj Koruma" 6, 87 57 60 10,flat
  check "Flood Koruma" 7, 17 67 60 10,flat
  check "Url Reklam Koruma" 8, 87 67 60 10,flat
  check "Özele Reklam" 9, 17 77 60 10,flat
  check "Özele Küfür" 10, 87 77 60 10,flat
  check "Join/Part Flood" 11, 17 87 60 10,flat
  check "Invite Koruma" 12, 87 87 60 10,flat
  check "Telefon No Koruma", 13, 17 97 60 10,flat
  check "Banlananları Kickle!", 14, 87 97 60 10, flat
  check "Mass Kick Koruma", 15, 17 107 60 10, flat
  check "Mass Op Koruma", 16, 87 107 60 10, flat
  check "Mass Ban Koruma", 17, 17 117 60 10, flat
  check "Mass Deop Koruma", 18, 87 117 60 10, flat
  check "Renkli Yazı Koruma" 19, 17 127 60 10,flat
  check "Çizgili Yazı Koruma" 20, 17 137 60 10,flat
  check "Büyük Harf Koruma" 21, 87 127 60 10,flat
  check "Uzun Yazı Koruma", 22, 87 137 60 10, flat
  check "Reklam Koruma" 23, 170 37 65 10, flat
  check "Deop Koruma" 24, 240 37 60 10, flat
  check "Küfür Koruma" 25, 170 47 60 10, flat
  check "Ban Koruma" 26, 240 47 60 10, flat
  check "Ctcp Flood Koruma" 27, 170 57 60 10, flat
  check "Notice Flood Koruma" 28, 240 57 60 10, flat
  check "Clone Uyarı" 29, 170 83 40 10, flat
  check "Ozel Uyarıcı" 30, 215 83 40 10, flat
  check "Ozelleri Kapat" 31, 170 73 60 10, flat
  check "Nick Uyarıcı" 32, 260 83 40 10, flat
  check "Sesli Uyarı Sistemi" 33, 240 73 60 10, flat
  check  "Koruma Yöneticisi, korumaları her açılışta sıfırla!" 34, 170 102 130 10, flat
  button "Tamam / Kapat" 108, 236 136 65 10, ok,flat
}

on 1:dialog:yonpanel:*:*:{ 
  if ($devent == init) { 
    { Splay $mircdirSohbetSen\sounds\Menu.wav }
    mdx.
    mdx SetDialog $dname style dlgmodal
    mdx SetFont $dname  1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 text 200
    mdx SetFont $dname  1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 12 500 verdana
    mdx SetFont $dname  101,102,103,104,105,106,107,108 text 200
    mdx SetFont $dname  101,102,103,104,105,106,107,108 12 700 verdana
    if ($group(#reklampro) == on) { did -c yonpanel 1 }
    if ($group(#badnick) == on) { did -c yonpanel 2 }
    if ($group(#kkufur) == on) { did -c yonpanel 3 }
    if ($group(#badident) == on) { did -c yonpanel 4 }
    if ($group(#tekrar) == on) { did -c yonpanel 5 }
    if ($group(#amsgpro) == on) { did -c yonpanel 6 }
    if ($group(#kflood) == on) { did -c yonpanel 7 }
    if ($group(#URLPRO) == on) { did -c yonpanel 8 }
    if ($group(#ozelreklam) == on) { did -c yonpanel 9 }
    if ($group(#qswear) == on) { did -c yonpanel 10 }
    if ($group(#jflood) == on) { did -c yonpanel 11 }
    if ($group(#invitim) == on) { did -c yonpanel 12 }
    if ($group(#telno) == on) { did -c yonpanel 13 }
    if ($group(#makick) == on) { did -c yonpanel 14 }
    if ($group(#maop) == on) { did -c yonpanel 15 }
    if ($group(#maban) == on) { did -c yonpanel 16 }
    if ($group(#madeop) == on) { did -c yonpanel 17 }
    if ($group(#bank) == on) { did -c yonpanel 18 }
    if ($group(#renk) == on) { did -c yonpanel 19 }
    if ($group(#underline) == on) { did -c yonpanel 20 }
    if ($group(#caps) == on) { did -c yonpanel 21 }
    if ($group(#msgpro) == on) { did -c yonpanel 22 }
    if ($group(#ozel) == on) { did -c yonpanel 23 }
    if ($group(#deops) == on) { did -c yonpanel 24 }
    if ($group(#ozkufur) == on) { did -c yonpanel 25 }
    if ($group(#bkoruma) == on) { did -c yonpanel 26 }
    if ($group(#ctcpf) == on) { did -c yonpanel 27 }
    if ($group(#noticeflo) == on) { did -c yonpanel 28 }
    if ($group(#cafeuyar) == on) { did -c yonpanel 29 }
    if ($group(#cloneuyar) == on) { did -c yonpanel 30 }
    if ($group(#ozelkapat) == on) { did -c yonpanel 31 }
    if ($group(#nickuyar) == on) { did -c yonpanel 32 }
    if ($group(#sesefect) == on) { did -c yonpanel 33 }
    if ( %start == 1 ) { did -c yonpanel 34 }

  }
  if ($devent == sclick) { 
    if ($did(1).state == 1) { .enable #reklampro } | else { .disable #reklampro }
    if ($did(2).state == 1) { .enable #badnick } | else { .disable #badnick }
    if ($did(3).state == 1) { .enable #kkufur } | else { .disable #kkufur }
    if ($did(4).state == 1) { .enable #badident } | else { .disable #badident }
    if ($did(5).state == 1) { .enable #tekrar } | else { .disable #tekrar }
    if ($did(6).state == 1) { .enable #amsgpro } | else { .disable #amsgpro }
    if ($did(7).state == 1) { .enable #kflood } | else { .disable #kflood }
    if ($did(8).state == 1) { .enable #URLPRO } | else { .disable #URLPRO }
    if ($did(9).state == 1) { .enable #ozelreklam } | else { .disable #ozelreklam }
    if ($did(10).state == 1) { .enable #qswear } | else { .disable #qswear }
    if ($did(11).state == 1) { .enable #jflood } | else { .disable #jflood }
    if ($did(12).state == 1) { .enable #invitim } | else { .disable #invitim }
    if ($did(13).state == 1) { .enable #telno } | else { .disable #telno } 
    if ($did(14).state == 1) { .enable #makick } | else { .disable #makick }
    if ($did(15).state == 1) { .enable #maop } | else { .disable #maop }
    if ($did(16).state == 1) { .enable #maban } | else { .disable #maban }
    if ($did(17).state == 1) { .enable #madeop } | else { .disable #madeop }
    if ($did(18).state == 1) { .enable #bank } | else { .disable #bank } 
    if ($did(19).state == 1) { .enable #renk } | else { .disable #renk }
    if ($did(20).state == 1) { .enable #underline } | else { .disable #underline }
    if ($did(21).state == 1) { .enable #caps } | else { .disable #caps }
    if ($did(22).state == 1) { .enable #msgpro } | else { .disable #msgpro }
    if ($did(23).state == 1) { .enable #ozel } | else { .disable #ozel }
    if ($did(24).state == 1) { .enable #deops } | else { .disable #deops }
    if ($did(25).state == 1) { .enable #ozkufur } | else { .disable #ozkufur }
    if ($did(26).state == 1) { .enable #bkoruma } | else { .disable #bkoruma }
    if ($did(27).state == 1) { .enable #ctcpf } | else { .disable #ctcpf }
    if ($did(28).state == 1) { .enable #noticeflo } | else { .disable #noticeflo } 
    if ($did(29).state == 1) { .enable  #cafeuyar  } | else { .disable  #cafeuyar }
    if ($did(30).state == 1) { .enable #cloneuyar } | else { .disable #cloneuyar }
    if ($did(31).state == 1) { .enable #ozelkapat } | else { .disable #ozelkapat }
    if ($did(32).state == 1) { .enable #nickuyar } | else { .disable #nickuyar }
    if ($did(33).state == 1) { .enable #sesefect } | else { .disable #sesefect }
    if ($did(34).state == 1) { .set %start 1  } | else { .unset %start }
  }
  if ($devent == dclick) { 
  }
}

on 1:start:{
  if %start == 1 {
    .disable #reklampro | .disable #badnick | .disable #kkufur | .disable #badident | .disable #tekrar | .disable #amsgpro | .disable #kflood | .disable #URLPRO | .disable #ozelreklam | .disable #qswear | .disable #jflood | .disable #invitim | .disable #telno |  .disable #makick | .disable #maop | .disable #maban | .disable #madeop | .disable #bank | .disable #renk | .disable #underline | .disable #caps | .disable #msgpro | .disable #ozel | .disable #deops | .disable #ozkufur | .disable #bkoruma | .disable #ctcpf  | .disable #noticeflo | .disable #sesefect  | .disable #cloneuyar

  }
  else {
    halt
  }
}
