[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/administrator/modules/ -> mod_mosmsg.php (source)

   1  <?php
   2  /**
   3  * @version $Id: mod_mosmsg.php 4876 2006-08-31 18:29:19Z predator $
   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  $mosmsg = strval( ( stripslashes( strip_tags( mosGetParam( $_REQUEST, 'mosmsg', '' ) ) ) ) );
  18  
  19  // Browser Check
  20  $browserCheck = 0;
  21  if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && isset( $_SERVER['HTTP_REFERER'] ) && strpos($_SERVER['HTTP_REFERER'], $mosConfig_live_site) !== false ) {
  22      $browserCheck = 1;
  23  }
  24  
  25  if ($mosmsg && $browserCheck ) {    
  26      // limit mosmsg to 200 characters
  27      if ( strlen( $mosmsg ) > 200 ) {
  28          $mosmsg = substr( $mosmsg, 0, 200 );
  29      }    
  30      ?>
  31      <div class="message">
  32          <?php echo $mosmsg; ?>
  33      </div>
  34      <?php
  35  }
  36  ?>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics