Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;LogServer by Ford_Lawnmower irc.geekshed.net #Script-Help
- menu channel,status,menubar {
- LogServer: dialog $iif($dialog(LogServer),-v,-m LogServer) LogServer
- }
- #LogServerServer On
- On *:Socklisten:LogServer: sockaccept $+(Chanlogs.,$network,$chan,$ticks,$r(1,1000))
- On *:Sockread:Chanlogs.*: {
- var %Chanlogs | sockread %Chanlogs
- if ($regex(%Chanlogs,/GET\s\/(.*)\sHTTP\//)) {
- var %filename $+(LogServer/,$recode($regml(1)))
- hinc LogServer AccessCount
- if ($file(%filename).size) {
- var %filelen $v1, %maxsend 1024
- sockwrite -n $sockname HTTP/1.1 200 OK
- sockwrite -n $sockname Content-Type: text/html
- sockwrite -n $sockname Content-Length: $file(%filename).size
- sockwrite -n $sockname
- sockmark $sockname %filename 0 %maxsend $iif($ceil($calc(%filelen / %maxsend)),$v1,1)
- }
- else {
- sockwrite -n $sockname HTTP/1.0 400 Bad Request
- sockwrite -n $sockname Connection: close
- sockclose $sockname
- }
- }
- }
- On *:Sockwrite:Chanlogs.*: {
- tokenize 32 $sock($sockname).mark
- if ($4) {
- bread $1-3 &binvar
- sockwrite -n $sockname &binvar
- sockmark $sockname $1 $calc($2 + $3) $3 $calc($4 - 1)
- bunset &binvar
- }
- else {
- sockwrite -n $sockname
- sockwrite -n $sockname Connection: close
- sockclose $sockname
- }
- }
- #LogServerServer End
- #LogServerLogging on
- On *:Text:*:#: WriteLogs $event $chan $nick $1-
- On *:Action:*:#: WriteLogs $event $chan * $nick $1-
- On *:Join:#: WriteLogs $event $chan * $nick Joins $chan
- On *:Part:#: WriteLogs $event $chan * $nick Parts $chan $+($chr(40),$1-,$chr(41))
- On *:Kick:#: WriteLogs $event $chan * $nick Kicked $knick Out of $chan $+($chr(40),$1-,$chr(41))
- On *:RawMode:#: WriteLogs $event $chan * $nick Sets Mode(s) $1-
- On *:Nick: WriteAllLogs $event <chan> $newnick * $nick Changes Nick to $newnick
- On *:Quit: WriteAllLogs $event <chan> $nick * $nick Quits $network $+($chr(40),$1-,$chr(41))
- On *:Topic:#: WriteLogs $event $chan * $nick Changes Topic to: $1-
- On *:Input:#: {
- if ($left($1,1) != / && !$ctrlenter) { WriteLogs me $chan $nick $1- }
- }
- On *:Start: {
- if (!$hget(LogServer)) hmake LogServer 5
- if ($file(LogServer.hsh).size) hload LogServer LogServer.hsh
- if ($hget(LogServer,Server)) LogServerStart $hget(LogServer,Port)
- }
- On *:Unload: hfree LogServer
- #LogServerLogging End
- On *:Dialog:LogServer:init:*: LogServerInit $dname
- On *:Dialog:LogServer:close:*: {
- if ($hget(LogServer)) hsave $v1 $+($v1,.hsh)
- }
- On *:Dialog:LogServer:Sclick:*: {
- if ($did == 1) {
- didtok -ra $dname 2 32 $chans($did(1))
- did -c $dname 2 1
- LogServerWriteDialog
- }
- elseif ($did == 2) LogServerWriteDialog
- elseif ($did < 25) {
- LogServerWriteHash
- if (($findtok(23 24,$did,32)) && ($did(23).state)) LogServerStart $did(21)
- elseif ($did == 22) $iif($did(22).state,.enable,.disable) #LogServerLogging
- }
- elseif ($did == 50) url -a $+($did(20),:,$did(21),/,$did(1),/,$urlencode($did(2)),/,$urlencode($did(2)),.html)
- }
- dialog LogServer {
- title "Log Server"
- size -1 -1 234 253
- option dbu
- combo 1, 8 22 100 10, drop
- combo 2, 125 22 100 10, drop
- combo 3, 8 50 69 10, drop
- combo 4, 82 50 69 10, drop
- combo 5, 157 50 69 10, drop
- combo 6, 8 69 69 10, drop
- combo 7, 82 69 69 10, drop
- combo 8, 157 69 69 10, drop
- combo 9, 8 88 69 10, drop
- combo 10, 82 88 69 10, drop
- combo 11, 157 88 69 10, drop
- combo 12, 8 107 69 10, drop
- combo 13, 82 107 69 10, drop
- edit "", 14, 31 132 196 10, autohs
- combo 15, 31 144 62 11, drop
- combo 16, 120 144 41 11, drop
- combo 17, 185 144 41 11, drop
- radio "On", 18, 18 171 26 10, group push
- radio "Off", 19, 18 186 26 10, push
- edit "", 20, 132 171 83 10, autohs
- edit "", 21, 132 186 83 10, autohs
- check "Logging On", 22, 33 213 50 10
- check "Server On", 23, 126 213 50 10
- button "Save", 24, 146 239 37 12
- button "Quit", 25, 194 239 37 12, Cancel
- text "Network:", 26, 8 13 27 8
- text "Channel:", 27, 125 13 25 8
- text "Join:", 28, 8 42 25 8
- text "Part:", 29, 82 42 25 8
- text "Quit:", 30, 157 42 25 8
- text "Kick:", 31, 8 61 25 8
- text "RawMode:", 32, 82 61 29 8
- text "Nick:", 33, 157 61 25 8
- text "Text:", 34, 8 80 25 8
- text "Action:", 35, 82 80 25 8
- text "Input:", 36, 157 80 25 8
- text "Topic:", 37, 8 99 25 8
- text "Host Name:", 38, 85 171 31 8
- text "Server Port:", 39, 85 186 31 8
- text "Text:", 40, 4 132 25 8, right
- text "Color:", 41, 4 144 25 8, right
- text "Size:", 42, 94 144 25 8, right
- text "Style:", 43, 162 144 22 8, right
- text "", 44, 2 242 141 8
- box "Colors", 45, 3 33 228 91
- box "Logging", 46, 3 160 56 40
- box "Server Information", 47, 69 160 162 40
- box "Master Switch", 48, 3 202 229 25
- box "Headers", 49, 3 124 228 34
- link "", 50, 3 229 228 8
- text "Background:", 51, 82 99 33 8
- }
- alias -l LogServerStart {
- .enable #LogServerServer
- if ($1 != $sock(LogServer).port) {
- if ($sock(LogServer)) sockclose LogServer
- if ($portfree($1)) {
- socklisten LogServer $1
- .enable #LogServerServer
- }
- else {
- if ($dialog(LogServer)) {
- did -u LogServer 23
- hadd LogServer server 0
- .disable #LogServerServer
- }
- var %noop $input(Port $1 is already in use! Server status is Off!,o,LogServer)
- }
- }
- }
- alias -l urlencode return $regsubex($1-,/([^a-z0-9])/ig,% $+ $base($asc(\t),10,16,2))
- alias -l recode return $regsubex($1-,/%([0-9a-f]{2})/gi,$chr($base(\t,16,10)))
- alias -l tag return <a $+(class=",$1,">)
- alias -l WriteLogs {
- if ($gettok($hget(LogServer,$+($network,$2)),2,32)) {
- var %timestamp $+($tag(c1),[,</a>,$tag(c2),$time(hh),</a>,$tag(c1),:,</a>,$tag(c2),$time(nnTT),</a>,$tag(c1),]</a>)
- var %nickstamp $+($tag(c1),$chr(40),</a>,$tag(c2),$symbol($2,$3),$3,</a>,$tag(c1),$chr(41),</a>)
- var %events join part text me action kick nick rawmode quit topic
- var %CurrentLog $+(LogServer\,$network,\,$2,\,$2,.html)
- if (!$isdir($+(LogServer\,$network))) {
- if (!$isdir(LogServer)) { mkdir LogServer }
- mkdir $+(LogServer\,$network)
- mkdir $+(Logserver\,$network,\,$2)
- }
- elseif ($findtok(%events,$1,32)) {
- var %match $gettok(%events,$v1,32)
- if (!$isdir($+(LogServer\,$network,\,$2))) mkdir $+(Logserver\,$network,\,$2)
- if (!$exists($+(LogServer\,$network,\,$2,\,$2,.html))) {
- LogServerWriteStyle $Hash2Color($+($2,$chr(32),$hget(LogServer,$+($network,$2))))
- .timer -o 1 2 write -l30 %CurrentLog Logging started $fulldate <br>
- }
- if ($gettok($hget(LogServer,$+($network,$2)),1,32) != $day) {
- if ($v1 && $file(%CurrentLog).size) { .copy -o %CurrentLog $+(LogServer\,$network,\,$2,\,$asctime($calc($ctime - 86400),mm-dd-yyyy),.html) }
- write -c %CurrentLog
- LogServerWriteStyle $Hash2Color($+($2,$chr(32),$hget(LogServer,$+($network,$2))))
- .timer -o 1 2 write -l30 %CurrentLog Logging started $fulldate <br>
- .timer -o 1 3 write $+(-il,$calc($lines(%CurrentLog) - 1)) %CurrentLog $+(%timestamp,$chr(32),%nickstamp,$chr(32),$tag(%match),$parseurl($HTMLFormat($strip($noeval($4-)))),</a><br>)
- hadd Logserver $+($network,$2)) $puttok($hget(LogServer,$+($network,$2)),$day,1,32)
- var %indexfile $+(LogServer\,$network,\,$2,\index.html)
- if ($exists(%indexfile)) {
- var %adding $+(LogServer\,$network,\,$2,\,$asctime($calc($ctime - 86400),mm-dd-yyyy),.html), %add $nopath(%adding)
- write -il4 $qt(%indexfile) $+(<tr><td><a href=",$urlencode(%add),">,$gettok(%add,1,46),</a></td><td>Size: $bytes($file(%adding).size,3).suf, $&
- </td><td>Created: $asctime($file(%adding).ctime) </td><td>Last Modified: $asctime($file(%adding).mtime),$&
- </td></tr>)
- }
- if (!$exists(%indexfile)) {
- Reinitializeindexs
- WriteChannelIndexHeaders $+(LogServer\,$network,\,$2)
- }
- }
- else {
- if ($1 == topic) {
- write -l29 %CurrentLog Topic is: $strip($mIRC2HTML($parseurl($chan($2).topic))) <br>
- .timer -o 1 2 write $+(-il,$calc($lines(%CurrentLog) - 1)) %CurrentLog $+(%timestamp,$chr(32),%nickstamp,$chr(32),$tag(%match),$parseurl($HTMLFormat($strip($noeval($4-)))),</a><br>)
- }
- else {
- write $+(-il,$calc($lines(%CurrentLog) - 1)) %CurrentLog $+(%timestamp,$chr(32),%nickstamp,$chr(32),$tag(%match),$parseurl($HTMLFormat($strip($noeval($4-)))),</a><br>)
- }
- }
- }
- }
- }
- alias -l WriteAllLogs {
- var %chans $comchan($3,0),%count 1
- while (%count <= %chans) {
- WriteLogs $1 $comchan($3,%count) $4-
- inc %count
- }
- }
- alias -l symbol return $iif($remove($nick($1,$2).pnick,$2),$left($v1,1))
- alias -l parseurl {
- return $regsubex($1-,/((http:\/\/|www\.)[^\s^\x5d^\x29]*)/gi,$+(<a target="_blank" href=",\1,">,\1,</a>))
- }
- alias -l chans { scon $netid($1) return $!regsubex($str(.,$chan(0)),/./g,$+($chr(32),$chan(\n))) }
- alias -l NetScID {
- var %net $1, %netid $regsubex($str(.,$scon(0)),/./g,$iif($scon(\n).network == %net,\n,$null))
- scon %netid return $!cid
- }
- alias -l nets { return $regsubex($str(.,$scon(0)),/./g,$+($chr(32),$scon(\n).network)) }
- alias -l netid {
- var %netcount $scon(0)
- while %netcount {
- if ($scon(%netcount).network == $1) { return %netcount }
- dec %netcount
- }
- }
- alias -l LogServerInit {
- var %colors black silver gray white maroon red purple fuchsia green lime olive yellow navy blue teal aqua
- didtok -a $1 1 32 $nets
- did -c $1 1 1
- didtok -a $1 2 32 $chans($did(1))
- did -c $1 2 1
- didtok -a $1 3-13,15 32 %colors
- didtok -a $1 16 32 $regsubex($str(.,50),/./g,$+($chr(32),\n))
- didtok -a $1 17 32 b i u b/i b/u i/u b/i/u
- LogServerWriteDialog
- }
- alias -l LogServerWriteDialog {
- if ($hget(LogServer,$+($did(1),$did(2)))) {
- tokenize 32 $v1
- did -c $dname $iif($2,18,19)
- did -u $dname $iif($2,19,18)
- var %start 3
- while (%start <= 16) {
- if (%start < 14) { did -c $dname %start $($+($,%start),3) }
- else { did -c $dname $calc(%start + 1) $($+($,%start),3) }
- inc %start
- }
- did -ra $dname 14 $19-
- did -ra $dname 20 $hget(LogServer,Host)
- did -ra $dname 21 $hget(LogServer,Port)
- did $iif($hget(LogServer,logging),-c,-u) $dname 22
- did $iif($hget(LogServer,server),-c,-u) $dname 23
- did -ra $dname 50 Logserver for $did(2) on $did(1)
- }
- else LogServerDefaults $dname
- }
- alias -l LogServerDefaults {
- var %key 0 0 9 9 2 6 6 14 7 11 15 13 4 0 14 30 1,%start 3
- while (%start <= 17) {
- did -c $1 %start $gettok(%key,%start,32)
- inc %start
- }
- did -ra $1 14 Log File for $did($1,2) on $did($1,1)
- did -ra $1 20 $iif($hget(LogServer,Host),$v1,http://127.0.0.1)
- did -ra $1 21 $iif($hget(LogServer,Port),$v1,1337)
- did -c $1 19
- did -u $1 18
- did -ra $dname 50 Logserver for $did(2) on $did(1)
- }
- alias -l LogServerWriteHash {
- var %EventInfo $regsubex($str(.,11),/./g,$+($chr(32),$did($calc(\n + 2)).sel))
- var %HeaderInfo $regsubex($str(.,3),/./g,$+($chr(32),$did($calc(\n + 14)).sel))
- var %day $iif($gettok($hget(LogServer,$+($did(1),$did(2))),1,32),$v1,0)
- hadd -m LogServer $+($did(1),$did(2)) %day $did(18).state %EventInfo %HeaderInfo $did(20) $did(21) $did(14)
- hadd LogServer Server $did(22).state
- hadd LogServer Logging $did(23).state
- hadd LogServer Host $did(20)
- hadd LogServer Port $did(21)
- LogServerWriteStyle $regsubex($str(.,13),/./g,$+($chr(32),$did(\n))) $regsubex($str(.,3),/./g,$+($chr(32),$did($calc(\n + 14)))) $did(14)
- }
- alias -l LogServerWriteStyle {
- var %WriteKey 0 0 0 join part quit kick rawmode nick text action me topic, %LogFile $+(LogServer\,$1,\,$2,\,$2,.html)
- if (!$isdir($+(LogServer\,$1,\,$2))) {
- if (!$isdir(LogServer)) mkdir LogServer
- if (!$isdir($+(LogServer\,$1))) mkdir $+(LogServer\,$1)
- if (!$isdir($+(LogServer\,$1,\,$2))) mkdir $+(LogServer\,$1,\,$2)
- }
- write -l1 %LogFile <html>
- write -l2 %LogFile <head>
- write -l3 %LogFile <style type="text/css">
- var %start 4
- while (%start <= 12) {
- write $+(-l,%start) %LogFile $+(a.,$gettok(%WriteKey,%start,32)) $chr(123) color: $($+($,$calc(%start - 1),;),3) background: $+($13,;) $chr(125)
- inc %start
- }
- write -l13 %LogFile
- write -l14 %LogFile
- write -l15 %LogFile h1 $chr(123) color: $+($14,;) background: $+($13,;) font-size: $+($15,pt;) $TextFormat($16) $chr(125)
- write -l16 %LogFile a.c1 $chr(123) color: lime; background: $+($13,;) font-weight: bold; $chr(125)
- write -l17 %LogFile a.c2 $chr(123) color: red; background: $+($13,;) $chr(125)
- write -l18 %LogFile body $chr(123) color: $+($iif($13 == white,black,white),;) background-color: $+($13,;) background-image: none; $chr(125)
- var %start 19
- while (%start <= 24) {
- write $+(-l,%start) %LogFile
- inc %start
- }
- write -l25 %LogFile </style>
- write -l26 %LogFile </head>
- write -l27 %LogFile <body>
- write -l28 %LogFile <h1> $17- </h1><br>
- scid $NetScID($1)
- write -l29 %LogFile Topic is: $strip($mIRC2HTML($parseurl($chan($2).topic))) <br>
- if ($lines(%LogFile) == 29) {
- write -l30 %LogFile
- write -l31 %LogFile </body>
- write -l32 %LogFile </html>
- }
- }
- alias -l Hash2Color {
- var %ColorKey black silver gray white maroon red purple fuchsia green lime olive yellow navy blue teal aqua
- var %len $gettok($1-,0,32), %StyleKey b i u b/i b/u i/u b/i/u, %count 3, %result
- while (%count <= %len) {
- if (%count > 3 && %count < 16) { %result = $+(%result,$chr(32),$gettok(%ColorKey,$gettok($1-,%count,32),32)) }
- elseif (%count == 17) { %result = $+(%result,$chr(32),$gettok(%StyleKey,$gettok($1-,%count,32),32)) }
- elseif (%count > 19 || %count == 16) { %result = $+(%result,$chr(32),$gettok($1-,%count,32)) }
- inc %count
- }
- return $network $gettok($1-,1,32) %result
- }
- alias LWrite {
- ;;
- tokenize 1 $1-
- var %file $1, %start $2, %count 3
- while (%count <= $0) {
- echo -a write $+(-l,%start) %file $($+($,%count),2)
- inc %start
- inc %count
- }
- }
- alias -l mIRC2HTML return $regsubex($1-,/([0-9]{1,2})(?:\x2C[0-9]{1,2})?/g,$+($iif(\n != 1,</font>),<font color= $mIRC2Color($int(\1)),>))) $+ $iif($regml(0),</font>)
- alias -l mIRC2Color {
- var %key white black blue green red maroon purple olive yellow lime teal aqua namy fuchsia gray silver
- return $qt($gettok(%key,$calc($1 + 1),32))
- }
- alias -l TextFormat return $replacex($1,/,$chr(32),b,font-weight: bold; ,i,font-style: italic;,u,text-decoration: underline;)
- alias -l HTMLFormat return $regsubex($1-,/([<>\[\]\{\}\(\)]{1})/g,$+(&#x,$base($asc(\t),10,16),;))
- alias LSUpdate {
- var %dirs1 $finddir(Logserver,*,0,1)
- while (%dirs1) {
- echo -gat Processing $finddir(Logserver,*,%dirs1,1)
- .timer 1 $calc(%dirs1 * 20) UpdateTransfer $qt($finddir(Logserver,*,%dirs1,1))
- dec %dirs1
- }
- }
- alias -l UpdateTransfer {
- var %dirs2 $findfile($1-,*,0,1), %dir $1-
- echo -gat Processing %dir
- while (%dirs2) {
- var %file $findfile($1-,*,%dirs2,1)
- if ($regex(%file,/(.*)(#.*)(\d\d-\d\d-[\d]{4}.html)/)) {
- var %newdir $+($regml(1),$regml(2))
- if (!$isdir(%newdir)) mkdir %newdir
- .copy $qt(%file) $qt($+(%newdir,\,$regml(3)))
- .remove $qt(%file)
- }
- else echo -gat copy %file $qt($+($gettok(%file,1--2,46),\,$nopath(%file)))
- dec %dirs2
- }
- echo -gat Directory %dir complete!
- }
- alias initializeindex {
- var %dir $finddir(Logserver,*,0,1), %chan, %dir2, %current, %rem, %remchan
- write -c $+(Logserver,/,index.html) <html><center> $str(<img src="/favicon.ico"/>,10) </center>
- write $+(Logserver,/,index.html) <p><h2><center><b> mIRC LogServer Network Index </b></center></h2></p>
- while (%dir) {
- %current = $nopath($finddir(Logserver,*,%dir,1))
- %dir2 = $finddir($finddir(Logserver,*,%dir,1),*,0,1)
- while (%dir2) {
- %chan = $nopath($finddir($finddir(Logserver,*,%dir,1),*,%dir2,1))
- tokenize 32 $hget(LogServer,$+(%current,%chan))
- if (%rem != %current) {
- write -c $+(Logserver,/,%current,/,index.html) <html><center> $str(<img $+(src=",/favicon.ico,"/>),10) </center>
- write $+(Logserver,/,%current,/,index.html) <p><h2><center><b> mIRC LogServer Channel Index for %current </b></center></h2></p>
- write $+(Logserver,/,index.html) $+(<a href=",%current,/,index.html,"><h2><p style="text-align:center">,%current,</a></h2>)
- %rem = %current
- }
- write $+(Logserver,/,%current,/,index.html) $+(<a href=",$urlencode(%chan),/,index.html,"><h2><p style="text-align:center">,%chan,</a></h2>)
- .timer 1 $calc(%dir2 * 20) LogServerWriteIndex $finddir($finddir(Logserver,*,%dir,1),*,%dir2,1)
- dec %dir2
- }
- write $+(Logserver,/,%current,/,index.html) </html>
- dec %dir
- }
- write $+(Logserver,/,index.html) </html>
- }
- alias -l LogServerWriteIndex {
- var %counter 1, %count $findfile($1-,*.html,0,1), %record, %current, %file $+($nofile($findfile($1-,*.html,%count,1)),index.html)
- write -c $qt(%file) <html><center> $str(<img $+(src=",/favicon.ico,"/>),10) </center>
- write $qt(%file) <p><h2><center><b> mIRC LogServer Log Index for $nopath($1-) on $gettok($1-,-2,92) </b></center></h2></p><br><table border="1">
- echo -gat writing index for $nopath($1-) on $gettok($1-,-2,92) to %file
- while (%counter <= %count) {
- %current = $findfile($1-,*.html,%counter,1)
- %record = $nopath(%current)
- write $qt(%file) $+(<tr><td><a href=",$urlencode(%record),">,$gettok(%record,1--2,46),</a></td><td>Size: $bytes($file(%current).size,3).suf, $&
- </td><td>Created: $asctime($file(%current).ctime) </td><td>Last Modified: $asctime($file(%current).mtime),$&
- </td></tr>)
- inc %counter
- }
- write $qt(%file) </table></html>
- }
- alias -l WriteChannelIndexHeaders {
- var %counter 1, %count $findfile($1-,*.html,0,1), %record, %current, %file $+($nofile($findfile($1-,*.html,%count,1)),index.html)
- write -c $qt(%file) <html><center> $str(<img $+(src=",/favicon.ico,"/>),10) </center>
- write $qt(%file) <p><h2><center><b> mIRC LogServer Log Index for $nopath($1-) on $gettok($1-,-2,92) </b></center></h2></p><br><table border="1">
- while (%counter <= %count) {
- %current = $findfile($1-,*.html,%counter,1)
- %record = $nopath(%current)
- write $qt(%file) $+(<tr><td><a href=",$urlencode(%record),">,$gettok(%record,1--2,46),</a></td><td>Size: $bytes($file(%current).size,3).suf, $&
- </td><td>Created: $asctime($file(%current).ctime) </td><td>Last Modified: $asctime($file(%current).mtime),$&
- </td></tr>)
- inc %counter
- }
- write $qt(%file) </table></html>
- }
- alias -l noeval {
- return $replace($regsubex($1-,/([\$\|\%\[\]\}\{][^\s]*)/g,$+($chr(2),\t,$chr(2))),$chr(124),$chr(166))
- }
- alias -l Reinitializeindexs {
- var %dir $finddir(Logserver,*,0,1), %chan, %dir2, %current, %rem, %remchan
- write -c $+(Logserver,/,index.html) <html><center> $str(<img src="/favicon.ico"/>,10) </center>
- write $+(Logserver,/,index.html) <p><h2><center><b> mIRC LogServer Network Index </b></center></h2></p>
- while (%dir) {
- %current = $nopath($finddir(Logserver,*,%dir,1))
- %dir2 = $finddir($finddir(Logserver,*,%dir,1),*,0,1)
- while (%dir2) {
- %chan = $nopath($finddir($finddir(Logserver,*,%dir,1),*,%dir2,1))
- tokenize 32 $hget(LogServer,$+(%current,%chan))
- if (%rem != %current) {
- write -c $+(Logserver,/,%current,/,index.html) <html><center> $str(<img $+(src=",/favicon.ico,"/>),10) </center>
- write $+(Logserver,/,%current,/,index.html) <p><h2><center><b> mIRC LogServer Channel Index for %current </b></center></h2></p>
- write $+(Logserver,/,index.html) $+(<a href=",%current,/,index.html,"><h2><p style="text-align:center">,%current,</a></h2>)
- %rem = %current
- }
- write $+(Logserver,/,%current,/,index.html) $+(<a href=",$urlencode(%chan),/,index.html,"><h2><p style="text-align:center">,%chan,</a></h2>)
- dec %dir2
- }
- write $+(Logserver,/,%current,/,index.html) </html>
- dec %dir
- }
- write $+(Logserver,/,index.html) </html>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement