View file www/found_684.php

File size: 0.99Kb
<?php
header('Content-Type: text/html; Charset=windows-1251');
$sitespath="/home/kmx/www/sites";

$cnt=1;
if ($sitestream = @opendir($sitespath))
	{
	while (false !== ($site = readdir($sitestream)))
		{
		if ($site!="." && $site!=".." && is_dir($sitespath."/".$site))
			{
			if ($filestream = @opendir($sitespath."/".$site))
				{
				while (false !== ($files = readdir($filestream)))
					{
					if (is_file($sitespath."/".$site."/".$files)&&(substr($files,-4)=='.wml'))
						{
						$f=fopen($sitespath."/".$site."/".$files,'r+');
						$tmp=fread($f,4096);
						if ((
							strpos($tmp,' 684')||strpos($tmp,'684 ')||strpos($tmp,'>684')||strpos($tmp,'684<')||
							strpos($tmp,' 685')||strpos($tmp,'685 ')||strpos($tmp,'>685')||strpos($tmp,'685<')
						   )&&(!strpos($tmp,'id="moderpage"')))
						print ($cnt++).'. <a href="http://kmx.ru/mod684.php?p='.$site."/".$files.'">'.$site.'.kmx.ru/'.$files.'</a><br>';
						fclose($f);
						}
					}
				}
			}
		}
	}
exit;
?>