From: Maxious Date: Tue, 16 Jul 2013 06:19:03 +0000 Subject: exclude document viewer X-Git-Url: https://maxious.lambdacomplex.org/git/?p=disclosr.git&a=commitdiff&h=33152ec49ae33d83419fcebedbe0a413678dff55 --- exclude document viewer Former-commit-id: 3f93fcc7e6c4209f6f2b628c2e031cccff7fd3b9 --- --- a/documents/robots.txt +++ b/documents/robots.txt @@ -3,4 +3,5 @@ User-agent: * Disallow: /admin/ +Disallow: /viewDocument.php Sitemap: http://disclosurelo.gs/sitemap.xml.php --- a/documents/sitemap.xml.php +++ b/documents/sitemap.xml.php @@ -7,7 +7,7 @@ echo '' . "\n"; echo " " . local_url() . "index.php1.0\n"; foreach (scandir("./") as $file) { - if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") + if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php"&& $file != "viewDocument.php") echo " " . local_url() . "$file0.6\n"; } $agenciesdb = $server->get_db('disclosr-agencies'); --- a/robots.txt +++ b/robots.txt @@ -3,4 +3,5 @@ User-agent: * Disallow: /admin/ +Disallow: /viewDocument.php Sitemap: http://orgs.disclosurelo.gs/sitemap.xml.php --- a/sitemap.xml.php +++ b/sitemap.xml.php @@ -7,7 +7,7 @@ echo '' . "\n"; echo " " . local_url() . "index.php1.0\n"; foreach (scandir("./") as $file) { - if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") + if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php"&& $file != "viewDocument.php") echo " " . local_url() . "$file0.3\n"; }