home *** CD-ROM | disk | FTP | other *** search
- <?php
- ////////////////////////////////////////////////////////////////////////////////
- // <!--Copyright (c) 2006 Pure Networks Inc. All rights reserved.-->
- ////////////////////////////////////////////////////////////////////////////////
- //
- // Build: 3.0.6121.0 (Stable)
- // $Revision: #1 $
- //
- $sNavLocation = "robots";
- require "_session_common.php";
- $errorOccurred = 0;
- $sReturnText = "";
-
- if ($bRssFeedsEnabled)
- {
- $sReturnText = "# Spiders can only spider feeds\r\n";
- $sReturnText .= "# Copyright (c) 2005 Pure Networks Inc. All rights reserved.\r\n";
- $sReturnText .= "User-agent: *\r\n";
- $sReturnText .= "Disallow: /auth\r\n";
- $sReturnText .= "Disallow: /detail\r\n";
- $sReturnText .= "Disallow: /download\r\n";
- $sReturnText .= "Disallow: /error\r\n";
- $sReturnText .= "Disallow: /file\r\n";
- $sReturnText .= "Disallow: /folder\r\n";
- $sReturnText .= "Disallow: /guest\r\n";
- $sReturnText .= "Disallow: /help\r\n";
- $sReturnText .= "Disallow: /Image\r\n";
- $sReturnText .= "Disallow: /image\r\n";
- $sReturnText .= "Disallow: /log\r\n";
- $sReturnText .= "Disallow: /message\r\n";
- $sReturnText .= "Disallow: /notes\r\n";
- $sReturnText .= "Disallow: /place\r\n";
- $sReturnText .= "Disallow: /pref\r\n";
- $sReturnText .= "Disallow: /share\r\n";
- $sReturnText .= "Disallow: /slide\r\n";
- $sReturnText .= "Disallow: /style\r\n";
- $sReturnText .= "Disallow: /thumbnail\r\n";
- }
- else
- {
- ////////////////////////////////////////////////////////////////////////////////
- // Let's send default text
- ////////////////////////////////////////////////////////////////////////////////
- $sReturnText = "# No robot will spider the domain\r\n";
- $sReturnText .= "# Copyright (c) 2005 Pure Networks Inc. All rights reserved.\r\n";
- $sReturnText .= "User-agent: *\r\n";
- $sReturnText .= "Disallow: /\r\n";
- }
-
- ////////////////////////////////////////////////////////////////////////////////
- // Let's send the robots.txt equivalent to the requestor
- ////////////////////////////////////////////////////////////////////////////////
- // header("Content-Disposition: inline; filename=\"robots.txt\"");
- header("Content-Type: text/plain");
- header("Content-Length:" . strlen($sReturnText));
- echo($sReturnText);
- ?>