<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/7945" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2004-07-21T01:01:36-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/7945</id>

		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-07-21T01:01:36-04:00</updated>

		<published>2004-07-21T01:01:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38903#p38903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38903#p38903"/>
		<title type="html"><![CDATA[looking for a html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38903#p38903"><![CDATA[
yep. its working  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Wed Jul 21, 2004 1:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-07-19T09:57:35-04:00</updated>

		<published>2004-07-19T09:57:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38813#p38813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38813#p38813"/>
		<title type="html"><![CDATA[looking for a html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38813#p38813"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n !generate noreg:generateproc noreg:generate {nick uhost hand chan text} {  if {![file exists "web.txt"]} {    putserv "PRIVMSG $chan :Sorry, the file seems not to exist."     return  }  set r [open "result.html" w]  puts $r "\  &lt;html&gt;  &lt;head&gt;  &lt;meta http-equiv=\"Content-Language\" content=\"en-us\"&gt;  &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"&gt;  &lt;title&gt;NoReg&lt;/title&gt;  &lt;/head&gt;  &lt;body&gt;  &lt;p&gt;&lt;b&gt;&lt;font face=\"Verdana\"&gt;NoReg&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;  &lt;table border=\"0\" width=\"50%\" id=\"table1\"&gt;&lt;tr&gt;  &lt;td bgcolor=\"#e6e6e6\" width=\"3%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;&lt;b&gt;No.&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;  &lt;td bgcolor=\"#e6e6e6\" width=\"15%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;&lt;b&gt;Channel&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;  &lt;td bgcolor=\"#e6e6e6\" width=\"60%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;&lt;b&gt;Date added&lt;b&gt;&lt;/font&gt;&lt;/td&gt;  &lt;td bgcolor=\"#e6e6e6\" width=\"22%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;&lt;b&gt;Added by&lt;/b&gt;&lt;/font&gt;&lt;/td&gt;  &lt;/font&gt;&lt;/tr&gt;  &lt;tr&gt;"  set i 0   set f [open "web.txt" r]   while {[gets $f line]&gt;-1} {     incr i     regsub -all -- {\002|,} $line "" line    set channel [lindex $line 1]    set date [lrange $line 4 8]    set by [lindex $line 10]    puts $r "\    &lt;tr&gt;    &lt;td bgcolor=\"#f9f9f9\" width=\"3%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;$i.&lt;/font&gt;&lt;/td&gt;    &lt;td bgcolor=\"#f9f9f9\" width=\"15%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;$channel&lt;/font&gt;&lt;/td&gt;    &lt;td bgcolor=\"#f9f9f9\" width=\"60%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;$date&lt;/font&gt;&lt;/td&gt;    &lt;td bgcolor=\"#f9f9f9\" width=\"22%\"&gt;&lt;font face=\"Verdana\" size=\"2\"&gt;$by&lt;/font&gt;&lt;/td&gt;    &lt;/tr&gt;    "  }  puts $r "\  &lt;/tr&gt;  &lt;/table&gt;  &lt;/body&gt;  &lt;/html&gt;"  close $f  close $r  if {$i} {    putserv "PRIVMSG $chan :Page generated."     } {    putserv "PRIVMSG $chan :Sorry, the file seems to be empty."     set r [open "result.html" w]    puts $r "\    &lt;html&gt;    &lt;head&gt;    &lt;meta http-equiv=\"Content-Language\" content=\"en-us\"&gt;    &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\"&gt;    &lt;title&gt;NoReg&lt;/title&gt;    &lt;/head&gt;    &lt;body&gt;    &lt;p&gt;&lt;b&gt;&lt;font face=\"Verdana\"&gt;Sorry, the file seems to be empty.&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;    "    close $r  }}</code></pre></div>also, replace inside your script from  to \002 if you want it with bold. Anyway, the page generated dosen't have bold on it. I've done it cos I'm borred and as an example so use it as one. Change it to suit your needs. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jul 19, 2004 9:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-07-19T08:34:02-04:00</updated>

		<published>2004-07-19T08:34:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38804#p38804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38804#p38804"/>
		<title type="html"><![CDATA[looking for a html script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38804#p38804"><![CDATA[
hy<br><br>i need a script who can read from a file (my case noreg.txt) and make a web page <br>here is the script who write in noreg.txt<blockquote class="uncited"><div>set qchan "#somechan" <br>set qfile noreg.txt <br>set cmdpfix<br>if { ![info exists toolbox_loaded] } { <br>   source scripts/alltools.tcl <br>} <br><br>bind pub n ${cmdpfix}noreg add_noreg <br>bind pub n ${cmdpfix}noreglist list_noreg<br><br>#######################################<br>############ PROCS ####################<br>#######################################<br><br><br>proc add_noreg {nick uhost hand chan arg} { <br>   if {[string tolower $chan] != [string tolower $::qchan]} { <br>      putserv "NOTICE $nick :You're not in the good channel, try it in $::qchan" <br>      return 0 <br>   } <br>   if { $arg == "" } { <br>      putserv "NOTICE $nick :$nick Usage: !noreg #channel" <br>      return 0 <br>   } <br>   set file [open $::qfile a] <br>   puts $file "Channel: $arg - Added: [ctime [unixtime]] by: $hand, noreg expires in 14 days !!!" <br>   close $file <br>   putserv "NOTICE $nick :$nick Added noreg chan: $arg" <br>   return 1 <br>}<br><br><br>proc list_noreg {nick host handle channel var} {<br>global qfile botnick qchan<br>set fd [open $qfile r]<br>set abuselist { }<br>while {![eof $fd]} {<br> set tmp [gets $fd]<br> if {[eof $fd]} {break}<br>  set abuselist [lappend abuselist [string trim $tmp]]<br> }<br> close $fd<br> if {[llength $abuselist] == 0} {<br>     putserv "notice $nick :No channel in database."<br>      return 0<br> }<br> putserv "notice $nick :List Of NoReg Channels\n"<br> foreach tmp $abuselist {<br>   putserv "notice $nick :- $tmp"<br> }<br>putserv "notice $nick : End of NoReg Channels\n"<br> return 0<br>}</div></blockquote>my noreg.txt looks like this<blockquote class="uncited"><div>Channel: #chan1 - Added: Tue Jul 20 10:04:28 2004 by: lsn, noreg expires in 14 days !!!<br>Channel: #chan2 - Added: Tue Jul 20 10:31:02 2004 by: lsn, noreg expires in 14 days !!!<br>Channel: #chan3 - Added: Tue Jul 20 10:49:33 2004 by: lsn, noreg expires in 14 days !!!<br>Channel: #chan4 - Added: Tue Jul 20 11:41:42 2004 by: lsn, noreg expires in 14 days !!!<br>etc .....</div></blockquote>can you help me whit this ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Mon Jul 19, 2004 8:34 am</p><hr />
]]></content>
	</entry>
	</feed>
