home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / robots.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  2.5 KB  |  57 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2006 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #1 $
  8. //
  9. $sNavLocation = "robots";
  10. require "_session_common.php";
  11. $errorOccurred  = 0;
  12. $sReturnText    = "";
  13.  
  14. if ($bRssFeedsEnabled)
  15. {
  16.     $sReturnText    =   "# Spiders can only spider feeds\r\n";
  17.     $sReturnText    .=  "# Copyright (c) 2005 Pure Networks Inc.  All rights reserved.\r\n";
  18.     $sReturnText    .=  "User-agent: *\r\n";
  19.     $sReturnText    .=  "Disallow: /auth\r\n";
  20.     $sReturnText    .=  "Disallow: /detail\r\n";
  21.     $sReturnText    .=  "Disallow: /download\r\n";
  22.     $sReturnText    .=  "Disallow: /error\r\n";
  23.     $sReturnText    .=  "Disallow: /file\r\n";
  24.     $sReturnText    .=  "Disallow: /folder\r\n";
  25.     $sReturnText    .=  "Disallow: /guest\r\n";
  26.     $sReturnText    .=  "Disallow: /help\r\n";
  27.     $sReturnText    .=  "Disallow: /Image\r\n";
  28.     $sReturnText    .=  "Disallow: /image\r\n";
  29.     $sReturnText    .=  "Disallow: /log\r\n";
  30.     $sReturnText    .=  "Disallow: /message\r\n";
  31.     $sReturnText    .=  "Disallow: /notes\r\n";
  32.     $sReturnText    .=  "Disallow: /place\r\n";
  33.     $sReturnText    .=  "Disallow: /pref\r\n";
  34.     $sReturnText    .=  "Disallow: /share\r\n";
  35.     $sReturnText    .=  "Disallow: /slide\r\n";
  36.     $sReturnText    .=  "Disallow: /style\r\n";
  37.     $sReturnText    .=  "Disallow: /thumbnail\r\n";
  38. }
  39. else
  40. {
  41.     ////////////////////////////////////////////////////////////////////////////////
  42.     // Let's send default text                                                      
  43.     ////////////////////////////////////////////////////////////////////////////////
  44.     $sReturnText    =   "# No robot will spider the domain\r\n";
  45.     $sReturnText    .=  "# Copyright (c) 2005 Pure Networks Inc.  All rights reserved.\r\n";
  46.     $sReturnText    .=  "User-agent: *\r\n";
  47.     $sReturnText    .=  "Disallow: /\r\n";
  48. }
  49.  
  50. ////////////////////////////////////////////////////////////////////////////////
  51. // Let's send the robots.txt equivalent to the requestor                        
  52. ////////////////////////////////////////////////////////////////////////////////
  53. // header("Content-Disposition: inline; filename=\"robots.txt\"");
  54. header("Content-Type: text/plain");
  55. header("Content-Length:" . strlen($sReturnText));
  56. echo($sReturnText);
  57. ?>