IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası
  sohbet odaları

>
+
Etiketlenen Kullanıcılar

Yeni Konu aç Cevapla
 
LinkBack Seçenekler Stil
Alt 16 Kasım 2005, 17:16   #1
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
haber.tcl ariorum..




arkadaslar turkiye ve dunyadan haberleri kanala yazacak haberleri bi siteden alan tcl ariorum elinde olan arkadas varsa yardimci olurlarmi acaba

 
Alıntı ile Cevapla

Alt 17 Kasım 2005, 14:45   #2
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Re




arkadaslar yokmu elinde olan konu eskimis gibi adagilara düsmüs haber tcl olan yokmu elinde ?

 
Alıntı ile Cevapla

Alt 18 Kasım 2005, 01:04   #3
velehmet
Guest
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Yüzdesi:(%)



[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]

 
Alıntı ile Cevapla

Alt 18 Kasım 2005, 01:33   #4
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)



[Üye Olmadan Linkleri Göremezsiniz. Üye Olmak için TIKLAYIN...]


Linkmi yanlış banamı öyle geldi

 
Alıntı ile Cevapla

Alt 18 Kasım 2005, 13:07   #5
Caistlin
Guest
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Yüzdesi:(%)



Elinde haber.tcl olan varsa paylassin konuyu dagitmayin velehmet ve dostname helper.tcl ile ne alakasi var.

 
Alıntı ile Cevapla

Alt 18 Kasım 2005, 18:28   #6
velehmet
Guest
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Yüzdesi:(%)



Raistlin Nickli Üyeden Alıntı
Elinde haber.tcl olan varsa paylassin konuyu dagitmayin velehmet ve dostname helper.tcl ile ne alakasi var.

arkadasım kusura bakma haber kelimesni helper olarak okumusum herkes den özür diliyorum ;painter

 
Alıntı ile Cevapla

Alt 18 Kasım 2005, 18:37   #7
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)



Raistlin Nickli Üyeden Alıntı
Elinde haber.tcl olan varsa paylassin konuyu dagitmayin velehmet ve dostname helper.tcl ile ne alakasi var.


raistlin ben Link yanlış verdin diyorum sen bana konu dağıtıyorsun diyorum arkadaşı uyardım
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.

 
Alıntı ile Cevapla

Alt 24 Kasım 2005, 12:23   #8
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)



dostum elimde bi tane war umarim i$ini Görür :

### Set the channel(s) where the script will function.
set abcchans {
"#kanal"
}

### Set the trigger for the last 5 headlines.
## Default: !showlast
set lasttrigger "!showlast"

### Set the help msg trigger for the last 5 headlines.
## Default: !abchelp
set helptrigger "!abchelp"

### Set the update interval for the news announcing,
### please note that one update is about 25kb,
### so a interval of 3mins is about 12MB a day.
### A interval around 10mins will skip news postings!
## Default: 3
set interval "3"

### Set a file for the script to use for data storage.
## Default: scripts/abcnews.data
set datafile "scripts/abcnews.data"
### Here you can select what part of the world you want the script to announce headlines for.
### Available options are:
### af : Africa
### as : Asia
### er : Europe
### la : Latin America
### me : Middle East
### na : North America
### wo : The World
## Default: wo
set part "wo"

### Dont touch the code below, or it will fux0r
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.

################################################## ###########
################################################## ###########
bind PUB - $lasttrigger abclast
bind PUB - $helptrigger abchelp

### Update procedure.
proc abcupdate {} {
global part datafile
### Reset some variables.
set oldhash ""
set newhash ""
set raw ""
set hl ""
set url ""
set title ""
set time ""
set partline ""
### Check what part of the world is configured.
if {$part != "wo"} {
set partline "$part/index.html"
} else {
set partline "index.html"
}
### Send HTTP header to ABC and read from the socket.
if {[catch { set socket [socket "abcnews.go.com" 80] } error]} {
putlog "ABCNews ERROR: cant open socket!"
return
}
fconfigure $socket -buffering line -blocking 0
puts -nonewline $socket "GET /system/sondakika/sondakika.php"
puts -nonewline $socket "Connection: Keep-Alive\n"
puts -nonewline $socket "Host:
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
puts -nonewline $socket "Pragma: no-cache\n\n"


while {![eof $socket]} {
set line [gets $socket]
### Check if line aint empty.
if {$line != ""} {
### Check for the pattern of the first headline and format it.
if {[regexp {(black9pt).*(</div></TD>)} $line rline]} {
# url
regexp {(<a href=\").*(\" )} $rline url
regsub "<a href=\"" $url " " url
regsub "\" " $url " " url
set url [string trim $url]
# title
regexp {(class=\"blueSmall\">).*(</a>)} $rline title
regsub "class=\"blueSmall\">" $title " " title
regsub "</a>" $title " " title
set title [string trim $title]
#time
regexp {(&nbsp;&nbsp
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
.*(</div>)} $rline time
regsub "&nbsp;&nbsp;" $time " " time
regsub "</div>" $time " " time
set time [string trim $time]
### Get the old hash from the datafile
set f [open $datafile r]
fconfigure $f -blocking 0
set oldhash [gets $f]
close $f
set newhash [md5 $title$url$time]
### Compair the both hashes, announce news if they differ and create new datafile.
if {$newhash != $oldhash} {
abcmsg "\[\002ABCNews\002\] $title \037(\037\037
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
set f [open $datafile w]
fconfigure $f -blocking 0
puts $f "$newhash"
close $f
### Close/flush the socket and start the new timer.
starttimer
flush $socket
close $socket
return
# end if
}
# end if
}
# end while
}
### Close/flush the socket and start the new timer, altho this should not be needed.
starttimer
flush $socket
close $socket
# end proc
}
### Show last headlines procedure.
proc abclast {nick uhost handle chan arg} {
global abcchans
### Check for the proper channel.
set properchan "0"
set chan [string tolower $chan]
foreach channel $abcchans {
set channel [string tolower $channel]
if {$chan==$channel} {
set properchan "1"
}
}
if {$properchan=="0"} {
return
}
### Reset some variables.
set partname ""
set partline ""

### Check for arguments and format.
if {$arg == "" || $arg!="af" && $arg!="as" && $arg!="er" && $arg!="la" && $arg!="me" && $arg!="na"} {
set partline "index.html"
} else {
set partline "$arg/index.html"
}

### Format the part of the world to request.
if {$arg=="af"} { set partname "Africa" }
if {$arg=="as"} { set partname "Asia" }
if {$arg=="er"} { set partname "Europe" }
if {$arg=="la"} { set partname "Latin America" }
if {$arg=="me"} { set partname "Middle East" }
if {$arg=="na"} { set partname "North America" }
if {$arg== "" } { set partname "The World" }
if {$partname==""} { set partname "The World" }
### Send HTTP header to ABC and read from the socket.
if {[catch { set socket [socket "system/sondakika/sondakika.php" 80] } error]} {
putlog "ABCNews ERROR: cant open socket!"
return
}
fconfigure $socket -buffering line -blocking 0
puts -nonewline $socket "GET system/sondakika/sondakika.php"
puts -nonewline $socket "Connection: Keep-Alive\n"
puts -nonewline $socket "Host:
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
puts -nonewline $socket "Pragma: no-cache\n\n"
set nr 0
puthelp "NOTICE $nick : Last \0025\002 headlines from \002ABCNews\002 for \002$partname\002 ->"
while {![eof $socket]} {
set line [gets $socket]
### Check if line aint empty.
if {$line != ""} {
### Check each line for the pattern of the first headline and format it.
if {[regexp {(black9pt).*(</div></TD>)} $line rline]} {
# url
regexp {(<a href=\").*(\" )} $rline url
regsub "<a href=\"" $url " " url
regsub "\" " $url " " url
set url [string trim $url]
# title
regexp {(class=\"blueSmall\">).*(</a>)} $rline title
regsub "class=\"blueSmall\">" $title " " title
regsub "</a>" $title " " title
set title [string trim $title]
#time
regexp {(&nbsp;&nbsp
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
.*(</div>)} $rline time
regsub "&nbsp;&nbsp;" $time " " time
regsub "</div>" $time " " time
set time [string trim $time]
### Check the length of the time, if its 7 chars fill it up with a 0.
set len [string length $time]
if {$len == "7"} {
set time "0$time"
}
incr nr
puthelp "NOTICE $nick : \002\[\002$nr \002@\002 $time\002\]\002 $title \037(\037\037http://abcnews.go.com$url\037\037)\037"
### If the end is reached Close/flush the socket.
if {$nr == "5"} {
flush $socket
close $socket
return
# close if
}
# close if
}
# close if
}
# close while
}
### Close/flush the socket, altho this should not be needed!
flush $socket
close $socket
return
# close proc
}
### Procedure which will show the user a bit of info.
proc abchelp {nick uhost handle chan arg} {
global abcchans lasttrigger
### Check for the proper channel.
set properchan "0"
set chan [string tolower $chan]
foreach channel $abcchans {
set channel [string tolower $channel]
if {$chan==$channel} {
set properchan "1"
}
}
if {$properchan=="0"} {
return
}
puthelp "PRIVMSG $nick : \002ABCNews\002 v\0021.0\002 by \002ThEdGE\002 (Help) ->"
puthelp "PRIVMSG $nick : Use \002$lasttrigger\002 <letters> to get the bot notice you the headlines."
puthelp "PRIVMSG $nick : Available parts of the world:"
puthelp "PRIVMSG $nick : \002af\002 : Africa"
puthelp "PRIVMSG $nick : \002as\002 : Asia"
puthelp "PRIVMSG $nick : \002er\002 : Europe"
puthelp "PRIVMSG $nick : \002la\002 : Latin America"
puthelp "PRIVMSG $nick : \002me\002 : Middle East"
puthelp "PRIVMSG $nick : \002na\002 : North America"
puthelp "PRIVMSG $nick : \002wo\002 : The World"
puthelp "PRIVMSG $nick : For example \"\002$lasttrigger er\002\" to get the headlines for Europe."
}
### Procedure which handles the timers.
proc starttimer {} {
global interval
### check if timer is already started, maybe rehashing?
set timerstarted "0"
foreach timer [timers] {
if {[regexp {(abcupdate).*(timer)} $timer temp]} {
set timerstarted "1"
}
}
### Start new timer if not already started.
if {$timerstarted == "0"} {
timer $interval abcupdate
}
}
### Procedure which will echo the final text to the channel.
proc abcmsg {text} {
global abcchans
foreach chan $abcchans {
putserv "PRIVMSG $chan : $text"
}
}
### Start the timer when the script is loaded.
starttimer
### Check if datafile exists, create if not found.
if {[catch { open $datafile r } error]} {
set fnew [open $datafile w]
fconfigure $fnew -blocking 0
close $fnew
}
putlog "Loaded: ABCNews script by ThEdGE"

 
Alıntı ile Cevapla

Alt 05 Eylül 2006, 00:00   #9
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Yanıt: haber.tcl ariorum..




RSS-synd adlı bir tcl buldum editledim bende var, isteyen olursa mail adresime yazsın yollayayım, bu işle uğraşanlar bilirler, kanala yazdırırken türkçe karakter sorunu yaşanır hep. nasıl çalıştığını görmek isterseniz irc.dorunet.com #haberler kanalını izleyin.

Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.

 
Alıntı ile Cevapla

Alt 18 Ağustos 2007, 20:15   #10
Çevrimdışı
Kullanıcıların profil bilgileri misafirlere kapatılmıştır.
IF Ticaret Sayısı: (0)
IF Ticaret Yüzdesi:(%)
Yanıt: haber.tcl ariorum..




işte kodları txt dosyasını atın ve tcl olarak kaydedin..

PHP Kod:   Kodu kopyalamak için üzerine çift tıklayın!
# Eggdrop RSS Syndication
# -----------------------
#   Date: 2006-??-??
#   Version: v0.3 beta 1
#   Author(s): Andrew Scott <
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
>
#   Website: http://labs.wizzer-it.com/
#

#
# Start of Settings
#

namespace eval ::rss-synd {
    variable rss

    #   the \'s are in the examples below use this one as a template.
    set rss(sabah)    {
                 "url"    "
Bu forumdaki linkleri ve resimleri görebilmek için en az 25 mesajınız olması gerekir.
style="color: #0000BB"><?
...?> tags
        if {[string match {[!\?]*} $tmp(string)]} {
            continue
        }

        # we should only ever encounter opening tags, if we hit a closing one somethings wrong.
        if {[string match {[/]*} $tmp(string)]} {
            putlog "\002Malformed Feed\002: Tag not open: \"<$tmp(string)>\" ([join $tmp(sindices) " => "])"
            continue
        }

        set match [regexp -inline -- {(.[^ \/\n\r>]*)(?: |\n|\r\n|\r|)(.[^>]*|)} $tmp(string)]
        set tag(name) [lindex $match 1]
        set tag(data) ""

        # get all of the tags attributes
        set tag(attrib) [list]
        if {[string length [lindex $match 2]] > 0} {
            set values [regexp -inline -all -- {(?:\s*|)(.[^=]*)="(.[^"]*)"} [lindex $match 2]]
            foreach {regmatch regtag regval} $values {
                lappend tag(attrib) $regtag $regval
            }
        }

        # find the end tag of non-self-closing tags
        if {![regexp {/(\s*)$} [lindex $match 2]]} {

            set loop 1
            # loop to check we're finding the right closing tag
            while {$loop == 1} {
                set loop 0

                regexp -indices -start $ptr "</[lindex $match 1]>" $data tmp(eindices)

                set tptr $ptr
                set ptr [lindex $tmp(eindices) 1]

                # there is a tag with the same name inside the current one, find the next
                #  closing tag.
                if {[regexp -indices -start $tptr -- "<[lindex $match 1]>" $data tindices]} {
                    if {[lindex $tindices 0] < [lindex $tmp(eindices) 1]} {
                        set loop 1
                    }
                }

            }

            catch {unset tptr tindices subdata}

            # errors sometimes occure here, not sure why, but im guessing its caused by
            #  downloading an incomplete feed. the problem has only occured for me
            #  a couple of time and it was on the same feed. I didnt manage to trace
            #  the problem properly. Its probably a good idea to create crash logging
            #  for the parser so i can debug stuff properly.
            set subdata [string range $data [expr { [lindex $tmp(sindices) 1] + 1 }] [expr { [lindex $tmp(eindices) 0] - 1 }]]

            if {[regexp -nocase -- {^(?:\s*)<!\[CDATA\[} $subdata]} {
                set cdata [regexp -inline -all -nocase -- {<!\[CDATA\[(.[^\]]*)\]\]>} $subdata]

                set subdata ""
                foreach {cdmatch cddata} $cdata {
                    append subdata " $cddata"
                }
            }

            set result [list]
            # recurse the data within the currently open tag
            if {![info exists cdata]} {
                set result [[namespace current]::xmlCreateList $subdata]
            }

            catch {unset cdata}

            # set the list data returned from the recursion we just performed
            if {[llength $result] > 0} {
                set tag(data) $result

            # set the current data we have because were already at the end of a branch
            #  (ie: the recursion didnt return any data)
            } else {
                set tag(data) $subdata
            }

        }

        lappend news [array get tag]

        # reset the values
        set tmp(sindices) [list]
        set tmp(eindices) [list]
    }

    return $news
}

proc ::rss-synd::xmlGetInfo {data tags {element ""}} {
    set i 0

    foreach {tdata} $data {
        array set tarray $tdata

        if {[string match -nocase [lindex $tags 1] $tarray(name)]} {
            if {$i == [lindex $tags 0]} {
                if {[llength $tags] == 2} {
                    if {[string length $element] > 0} {
                        return $tarray($element)
                    } else {
                        return $tdata
                    }
                } else {
                    return [[namespace current]::xmlGetInfo $tarray(data) [lreplace $tags 0 1] $element]
                }
            } else {
                incr i
            }
        }    
    }

    if {[lindex $tags 0] == -1} {
        return $i
    }
}

proc ::rss-synd::xmlJoinTags {args} {
    set list [list]

    foreach tag $args {
        foreach item $tag {
            if {[string length $item] > 0} {
                lappend list $item
            }
        }
    }

    return $list
}

proc ::rss-synd::outputFeed {feedlist data {oldnews ""}} {
    array set feed $feedlist
    set msgs [list]

    array set last[list "id" "" "title" "" "link" ""]

    if {[string compare "" $oldnews] != 0} {
        if {[set oldfeedlist [[namespace current]::infoFeed [list] $oldnews]] == ""} {
            putlog "\002RSS Error\002: Invalid feed format ($feed(database))!"
            return
        }

        array set oldfeed $oldfeedlist

        set tmpp [[namespace current]::xmlJoinTags $oldfeed(tag-feed) $oldfeed(tag-list) 0 $oldfeed(tag-name)]
        set tmpd [[namespace current]::xmlGetInfo $oldnews $tmpp "data"]

        if {[string compare "" $tmpd] == 0} {
            putlog "\002RSS Warning\002: Unable to compare current feed with the database, no relevant data found!"
        } else {
            array set last [[namespace current]::getCompareData $oldfeedlist $tmpd]
        }
    }

    set path [[namespace current]::xmlJoinTags $feed(tag-feed) $feed(tag-list) -1 $feed(tag-name)]
    set count [[namespace current]::xmlGetInfo $data $path]

    for {set i 0} {($i < $count) && ($i < $feed(announce-output))} {incr i} {
        set tmpp [[namespace current]::xmlJoinTags $feed(tag-feed) $feed(tag-list) $i $feed(tag-name)]
        set tmpd [[namespace current]::xmlGetInfo $data $tmpp "data"]

        array set current [[namespace current]::getCompareData $feedlist $tmpd]

        if {[string length $last(id)] > 0} {
            if {[string compare -nocase $current(id) $last(id)] == 0} {
                break
            }
        } else {
            if {[string compare -nocase $current(link) $last(link)] == 0} {
                break
            } elseif {[string compare -nocase $current(title) $last(title)] == 0} {
                break
            }
        }

        set msgs [linsert $msgs 0 [[namespace current]::formatOutput $feedlist $data $i]]
    }

    foreach msg $msgs {
        # chan can be a nick if run from a trigger with the right settings
        foreach chan $feed(channels) {
            if {([catch {botonchan $chan}] == 0) || ([[namespace current]::isChan $chan] == 0)} {
                if {($feed(type) == 1) || ($feed(type) == 3)} {
                    putserv "NOTICE $chan :$msg"
                } else {
                    putserv "PRIVMSG $chan :$msg"
                }
            }
        }
    }
}

proc ::rss-synd::getCompareData {feedlist data} {
    array set feed $feedlist

    if {[string compare -nocase [lindex $feed(tag-feed) 1] "feed"] == 0} {
        set list(title) [[namespace current]::xmlGetInfo $data[list 0 "title"] "data"]
        set list(id) [[namespace current]::xmlGetInfo $data[list 0 "id"] "data"]
        set list(link) ""
        array set tmp [[namespace current]::xmlGetInfo $data[list 0 "link"] "attrib"]
        catch {set list(link) $tmp(href)}
        unset tmp
    } else {
        set list(title) [[namespace current]::xmlGetInfo $data[list 0 "title"] "data"]
        set list(id) [[namespace current]::xmlGetInfo $data[list 0 "guid"] "data"]
        set list(link) [[namespace current]::xmlGetInfo $data[list 0 "link"] "data"]
    }

    return [array get list]
}

proc ::rss-synd::formatOutput {feedlist data current} {
    array set feed $feedlist
    set output $feed(output)

    set eval 0
    if {([info exists feed(evaluate-tcl)]) && ($feed(evaluate-tcl) == 1)} { set eval 1 }

    set matches [regexp -inline -nocase -all -- {@@(.*?)@@} $output]

    foreach {match tmpc} $matches {
        set tmpc [split $tmpc "!"]
        set index 0

        set cookie [list]
        foreach piece $tmpc {
            set tmpp [regexp -nocase -inline -all -- {^(.*?)\((.*?)\)|(.*?)$} $piece]

            if {[lindex $tmpp 3] == ""} {
                lappend cookie [lindex $tmpp 2] [lindex $tmpp 1]
            } else {
                lappend cookie 0 [lindex $tmpp 3]
            }
        }

        # replace tag-item's index with the current article
        if {[string compare -nocase $feed(tag-name) [lindex $cookie 1]] == 0} {
            set cookie [[namespace current]::xmlJoinTags $feed(tag-list) [lreplace $cookie $index $index $current]]
        }

        set cookie [[namespace current]::xmlJoinTags $feed(tag-feed) $cookie]

        if {[set tmp [[namespace current]::encodeCharset $feedlist [[namespace current]::replaceCookies $cookie $data]]] != ""} {
            regsub -nocase -- "$match" $output "[string map { "&" "\\\x26" } [[namespace current]::decodeHtml $eval $tmp]]" output
        }
    }

    if {(![info exists feed(remove-empty)]) || ($feed(remove-empty) == 1)} {
        regsub -nocase -all -- "@@.*?@@" $output "" output
    }

    if {$eval == 1} {
        if {[catch {set output [subst $output]} error] != 0} {
            putlog "\002RSS Eval Error\002: $error"
        }
    }

    return $output
}

proc ::rss-synd::replaceCookies {cookie data} {
    set element "data"

    set tags [list]
    foreach {num section} $cookie {
        if {[string compare "=" [string range $section 0 0]] == 0} {
            set attrib [string range $section 1 end]
            set element "attrib"
            break
        } else {
            lappend tags $num $section
        }
    }

    set return [[namespace current]::xmlGetInfo $data $tags $element]

    if {[string compare -nocase "attrib" $element] == 0} {
        array set tmp $return

        if {[catch {set return $tmp($attrib)}] != 0} {
            return
        }
    }

    return $return
}

proc ::rss-synd::decodeHtml {eval data {loop 0}} {
    array set chars {
             nbsp    \x20 amp    \x26 quot    \x22 lt        \x3C
             gt    \x3E iexcl    \xA1 cent    \xA2 pound    \xA3
             curren    \xA4 yen    \xA5 brvbar    \xA6 brkbar    \xA6
             sect    \xA7 uml    \xA8 die    \xA8 copy    \xA9
             ordf    \xAA laquo    \xAB not    \xAC shy    \xAD
             reg    \xAE hibar    \xAF macr    \xAF deg    \xB0
             plusmn    \xB1 sup2    \xB2 sup3    \xB3 acute    \xB4
             micro    \xB5 para    \xB6 middot    \xB7 cedil    \xB8
             sup1    \xB9 ordm    \xBA raquo    \xBB frac14    \xBC
             frac12    \xBD frac34    \xBE iquest    \xBF Agrave    \xC0
             Aacute    \xC1 Acirc    \xC2 Atilde    \xC3 Auml    \xC4
             Aring    \xC5 AElig    \xC6 Ccedil    \xC7 Egrave    \xC8
             Eacute    \xC9 Ecirc    \xCA Euml    \xCB Igrave    \xCC
             Iacute    \xCD Icirc    \xCE Iuml    \xCF ETH    \xD0
             Dstrok    \xD0 Ntilde    \xD1 Ograve    \xD2 Oacute    \xD3
             Ocirc    \xD4 Otilde    \xD5 Ouml    \xD6 times    \xD7
             Oslash    \xD8 Ugrave    \xD9 Uacute    \xDA Ucirc    \xDB
             Uuml    \xDC Yacute    \xDD THORN    \xDE szlig    \xDF
             agrave    \xE0 aacute    \xE1 acirc    \xE2 atilde    \xE3
             auml    \xE4 aring    \xE5 aelig    \xE6 ccedil    \xE7
             egrave    \xE8 eacute    \xE9 ecirc    \xEA euml    \xEB
             igrave    \xEC iacute    \xED icirc    \xEE iuml    \xEF
             eth    \xF0 ntilde    \xF1 ograve    \xF2 oacute    \xF3
             ocirc    \xF4 otilde    \xF5 ouml    \xF6 divide    \xF7
             oslash    \xF8 ugrave    \xF9 uacute    \xFA ucirc    \xFB
             uuml    \xFC yacute    \xFD thorn    \xFE yuml    \xFF
             ensp    \x20 emsp    \x20 thinsp    \x20 zwnj    \x20
             zwj    \x20 lrm    \x20 rlm    \x20 euro    \x80
             sbquo    \x82 bdquo    \x84 hellip    \x85 dagger    \x86
             Dagger    \x87 circ    \x88 permil    \x89 Scaron    \x8A
             lsaquo    \x8B OElig    \x8C oelig    \x8D lsquo    \x91
             rsquo    \x92 ldquo    \x93 rdquo    \x94 ndash    \x96
             mdash    \x97 tilde    \x98 scaron    \x9A rsaquo    \x9B
             Yuml    \x9F apos    \x27
            }


    regsub -all -- {<(.[^>]*)>} $data " " data

    if {$eval != 1} {
        regsub -all -- {([\"\$\[\]\{\}\(\)\\])} $data {\\\1} data
    } else {
        regsub -all -- {([\"\$\[\]\{\}\(\)\\])} $data {\\\\\\\1} data
    }

    regsub -all -- {&#([0-9][0-9]?[0-9]?);?} $data {[format %c [scan \1 %d]]} data
    regsub -all -- {&([0-9a-zA-Z#]*);} $data {[if {[catch {set tmp $chars(\1)} char] == 0} { set tmp }]} data
    regsub -all -nocase -- {&([0-9a-zA-Z#]*);} $data {[if {[catch {set tmp [string tolower $chars(\1)]} char] == 0} { set tmp }]} data
    #--------------------------
#--------------------------
    regsub -nocase -all -- "\\s{2,}" $data " " data

    set data [subst $data]
    if {$loop == 0} {
        incr loop

        set data [[namespace current]::decodeHtml 0 $data $loop]
    }
regsub -all "ö"     $data "ö" data
regsub -all "ğ"     $data "ğ" data
regsub -all "ÄŸ"         $data "ğ" data
regsub -all "ı"       $data "ı" data
regsub -all "ı"       $data "ı" data
regsub -all "ü"       $data "ü" data
regsub -all "ö"       $data "ö" data
regsub -all "ç"       $data "ç" data
regsub -all "Ç"       $data "Ç" data
regsub -all "ÅŸ"       $data "ş" data
regsub -all "İ"       $data "İ" data
regsub -all "İ"       $data "İ" data
regsub -all "Ş"       $data "Ş" data
regsub -all "Åž"       $data "Ş" data
regsub -all "ş"       $data "ş" data
regsub -all "Ö"       $data "Ö" data
regsub -all "Ü"       $data "Ü" data
regsub -all "’"       $data "'" data
    return $data
}

proc ::rss-synd::encodeCharset {feedlist string} {
    array set feed $feedlist

    if {[info exists feed(charset)]} {
        set string [encoding convertto [string tolower $feed(charset)] $string]
    }

    return $string
}

proc ::rss-synd::channelCheck {chanlist chan} {
    foreach match [split $chanlist] {
        if {[string compare -nocase $match $chan] == 0} {
            return 1
        }
    }

    return 0
}

proc ::rss-synd::isChan {chan} {
    if {([string index $chan 0] == "#") || ([string index $chan 0] == "&")} {
        return 1
    }

    return 0
}

::rss-synd::init


 
Alıntı ile Cevapla

Cevapla

Etiketler
ariorum, habertcl


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı
Trackbacks are Kapalı
Pingbacks are Açık
Refbacks are Açık


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Php Haber Scripti - Haber Blog Yazılımı - Adsense & Seo Uyumlu - Emoji Sistemi FikirProje Script Satışı 0 16 Aralık 2019 23:52
Doktordan acı haber! Mesai arkadaşları 4 saat boyunca haber alamayınca... SimHa Haber Arşivi 0 28 Nisan 2019 09:55
Bir Kod Ariorum Yardim EdebiLcecekmisinz POSOFxBELA mIRC Scripting Sorunları 4 25 Ekim 2009 20:33