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

	<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>2008-03-09T03:08:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[incith]]></name></author>
		<updated>2008-03-09T03:08:53-04:00</updated>

		<published>2008-03-09T03:08:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81553#p81553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81553#p81553"/>
		<title type="html"><![CDATA[Adding &quot;,&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81553#p81553"><![CDATA[
Um, you could just mimic your for loop:<div class="codebox"><p>Code: </p><pre><code>for ($range = 1; $range &lt; 251; $range++) {  array/blah/foo/etc = "88.55.22.${range}"}</code></pre></div>Or maybe something like this, using range and foreach:<div class="codebox"><p>Code: </p><pre><code>foreach (range(1,250) as $number) {  echo "80.77.159." . $number . "\n";}</code></pre></div><em class="text-italics">Edit: Looking at that further I don't see why you don't just regexp against the IP address you are matching against.<br><br>if {[regexp {88\.55\.22\.[1-250]} $ip]} { } so on and so forth.  No need to check if it's in an enormous array.  I guess in perl/php that'd be something like.. if ($ip =~ /88\.55\.22\.[1-250]/) or so.  FYI if it's relevant, 255 is the endpoint, not 250.</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6130">incith</a> — Sun Mar 09, 2008 3:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2008-02-07T04:30:17-04:00</updated>

		<published>2008-02-07T04:30:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=80715#p80715</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=80715#p80715"/>
		<title type="html"><![CDATA[Adding &quot;,&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=80715#p80715"><![CDATA[
This might be out of the subject as here we deal with TCL issue but then I could not find help anywhere.<br><div class="codebox"><p>Code: </p><pre><code>&lt;?$ip = $_SERVER['REMOTE_ADDR'];$adresi = array ("80.77.159.1","80.77.159.2","80.77.159.3","80.77.159.4","62.162.50.254","62.162.50.255");$n = 0;for($x=0;$x&lt;count($adresi);$x++){if ( $ip == $adresi[$x]){ $n = 1 ;}}if ($n == 1) { echo "";}else { header('Location:http://www.url.com');}?&gt;</code></pre></div><strong class="text-strong">PLEASE SEE ORIGINAL FILE </strong><br><br>As you see there are certain ip classes added in that file, What I need to do is add 2 or more classes such as: "88.85.112.1 til 250" and 88.85.113.1 til 250. Adding manually will be hell alot of time, do you think is there any other solution forit?.. do you think a TCL could do that for me?.. which will add ips alongwith <strong class="text-strong">"</strong>88.85.112.1<strong class="text-strong">","</strong>88.85.112.2<strong class="text-strong">"</strong> and so on.. I am attaching the original file here as well.<br><br><a href="http://cricket.etherfast.ro/test/re.txt" class="postlink">File</a><br><br>Your kind suggestions will be highly appreciated<br><br>Thanks<br>iamdeath<br><span style="color:red">Forgive me for going out of topic.</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Thu Feb 07, 2008 4:30 am</p><hr />
]]></content>
	</entry>
	</feed>
