<?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/3098" />

	<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>2002-11-25T14:07:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-25T14:07:29-04:00</updated>

		<published>2002-11-25T14:07:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13589#p13589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13589#p13589"/>
		<title type="html"><![CDATA[/Lusers Output.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13589#p13589"><![CDATA[
This is best suited for a PHP discussion forum.<br><br>However, here are a few poiters.<br><br>Lookup the usage (witht the handy examples and pointers to related functions) of:<br><a href="http://www.php.net/fopen" class="postlink">fopen</a><br><a href="http://www.php.net/fgets" class="postlink">fgets</a><br><a href="http://www.php.net/fpassthru" class="postlink">fpassthru</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 25, 2002 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-25T12:59:05-04:00</updated>

		<published>2002-11-25T12:59:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13588#p13588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13588#p13588"/>
		<title type="html"><![CDATA[/Lusers Output.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13588#p13588"><![CDATA[
Ok, here is the script:<div class="codebox"><p>Code: </p><pre><code>set lusers_setting(page) "/home/public_www/msc/lusers.txt"set lusers_setting(timer_update) "5"set lusers_setting(nettype) "4"##################### Code begins here #####################foreach rb {250 251 252 253 254 255 265 266} { bind raw - $rb lusers_write_lusers }if {[lsearch -glob [utimers] "* lusers_update *"] == -1} { utimer $lusers_setting(timer_update) lusers_update }foreach a [array names lusers_lusers_data] { unset lusers_lusers_data($a) }switch -regexp -- $lusers_setting(nettype) {"^1\$" { set lusers_setting(lastnum) "250" }"^(2|\[5-7\])\$" { set lusers_setting(lastnum) "266" }"^(3|4)\$" { set lusers_setting(lastnum) "255" }}proc lusers_rcodes {text} {regsub -all -- "\002|\037|\026|\017|\003(\[0-9\]\[0-9\]?(,\[0-9\]\[0-9\]?)?)?" $text "" textreturn $text}proc lusers_write_lusers {from keyword text} {set ::lusers_localserver $fromif {[regexp 252|254 $keyword]} { regsub -all -- ":" $text "" text }set ::lusers_lusers_data($keyword) [string trimleft [join [lrange [split $text] 1 end]] :]if {[string compare $keyword $::lusers_setting(lastnum)] == 0} { lusers_do_final }}proc lusers_do_final {} {set stats [open $::lusers_setting(page) w]foreach i [array names ::lusers_lusers_data] { puts $stats "   [lusers_rcodes $::lusers_lusers_data($i)]   " }close $statsforeach a [array names lusers_lusers_data] { unset lusers_lusers_data($a) }}proc lusers_update {} {putserv "LUSERS"if {[lsearch -glob [utimers] "* lusers_update *"] == -1} { utimer $::lusers_setting(timer_update) lusers_update }}</code></pre></div>It writes: <a href="http://www.shellportal.de/~msc/lusers.txt" class="postlink">http://www.shellportal.de/~msc/lusers.txt</a> this to a txt file, but I want to put the file on a website, and work with php to get the current online users etc, so I can print them on a website by using; $lusers_online (for example).<p>Statistics: Posted by Guest — Mon Nov 25, 2002 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-25T12:39:28-04:00</updated>

		<published>2002-11-25T12:39:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13585#p13585</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13585#p13585"/>
		<title type="html"><![CDATA[/Lusers Output.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13585#p13585"><![CDATA[
It would be better if you posted your script.<br><br>You state you use PHP, simalar to the one above. That PHP will set a variable, using static content, and not from any file.<br><br>If you give a more detailed example/dicription of what you wish, we may understand a little more.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Nov 25, 2002 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-25T12:13:14-04:00</updated>

		<published>2002-11-25T12:13:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13583#p13583</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13583#p13583"/>
		<title type="html"><![CDATA[/Lusers Output.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13583#p13583"><![CDATA[
hello,<br>I have a script that prints the output of a /lusers to a txt file, but i can't get it to print...fo example to a .php file as;<div class="codebox"><p>Code: </p><pre><code>&lt;? $lusers='&lt;here the same output as the .txt&gt;'\;" ?&gt;</code></pre></div>Does anyone know how I can fix this, or a script somewhere else wich I can use that does that, even?<p>Statistics: Posted by Guest — Mon Nov 25, 2002 12:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
