Source for file legacybots.php

Documentation is available at legacybots.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @author Mambo Foundation Inc see README.php
  5. @copyright Mambo Foundation Inc.
  6. *  See COPYRIGHT.php for copyright notices and details.
  7. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see
  8. *  LICENSE.php
  9. *  Mambo is free software; you can redistribute it and/or
  10. *  modify it under the terms of the GNU General Public License
  11. *  as published by the Free Software Foundation; version 2 of the
  12. *  License.
  13. */ 
  14.  
  15. /** ensure this file is being included by a parent file */
  16. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  17.  
  18. $_MAMBOTS->registerFunction'onPrepareContent''botLegacyBots' );
  19.  
  20. /**
  21. * Process any legacy bots in the /mambots directory
  22. *
  23. * THIS FILE CAN BE **SAFELY REMOVED** IF YOU HAVE NO LEGACY MAMBOTS
  24. @param object content object
  25. @param int A bit-wise mask of options
  26. @param int The page number
  27. */
  28. function botLegacyBots$published&$row&$params$page={
  29.     global $mosConfig_absolute_path;
  30.  
  31.     // process any legacy bots
  32.     $bots mosReadDirectory"$mosConfig_absolute_path/mambots""\.php$" );
  33.     sort$bots );
  34.     foreach ($bots as $bot{
  35.         require "mambots/$bot";
  36.     }
  37. }
  38. ?>

Documentation generated on Mon, 05 May 2008 16:20:50 +0400 by phpDocumentor 1.4.0