[ Index ] |
|
Code source de Joomla 1.0.13 |
1 <?php 2 /** 3 * @version $Id: legacybots.php 2697 2006-03-07 20:26:09Z stingrey $ 4 * @package Joomla 5 * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. 6 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php 7 * Joomla! is free software. This version may have been modified pursuant 8 * to the GNU General Public License, and as distributed it includes or 9 * is derivative of works licensed under the GNU General Public License or 10 * other free or open source software licenses. 11 * See COPYRIGHT.php for copyright notices and details. 12 */ 13 14 // no direct access 15 defined( '_VALID_MOS' ) or die( 'Restricted access' ); 16 17 $_MAMBOTS->registerFunction( 'onPrepareContent', 'botLegacyBots' ); 18 19 /** 20 * Process any legacy bots in the /mambots directory 21 * 22 * THIS FILE CAN BE **SAFELY REMOVED** IF YOU HAVE NO LEGACY MAMBOTS 23 * @param object A content object 24 * @param int A bit-wise mask of options 25 * @param int The page number 26 */ 27 function botLegacyBots( $published, &$row, &$params, $page=0 ) { 28 global $mosConfig_absolute_path; 29 30 // check whether mambot has been unpublished 31 if ( !$published ) { 32 return true; 33 } 34 35 // process any legacy bots 36 $bots = mosReadDirectory( "$mosConfig_absolute_path/mambots", "\.php$" ); 37 sort( $bots ); 38 foreach ($bots as $bot) { 39 require $mosConfig_absolute_path ."/mambots/$bot"; 40 } 41 } 42 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 14:43:32 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |