[ Index ]
 

Code source de FCKeditor 2.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/editor/filemanager/browser/default/connectors/php/ -> util.php (source)

   1  <?php 
   2  /*
   3   * FCKeditor - The text editor for Internet - http://www.fckeditor.net
   4   * Copyright (C) 2003-2007 Frederico Caldeira Knabben
   5   * 
   6   * == BEGIN LICENSE ==
   7   * 
   8   * Licensed under the terms of any of the following licenses at your
   9   * choice:
  10   * 
  11   *  - GNU General Public License Version 2 or later (the "GPL")
  12   *    http://www.gnu.org/licenses/gpl.html
  13   * 
  14   *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
  15   *    http://www.gnu.org/licenses/lgpl.html
  16   * 
  17   *  - Mozilla Public License Version 1.1 or later (the "MPL")
  18   *    http://www.mozilla.org/MPL/MPL-1.1.html
  19   * 
  20   * == END LICENSE ==
  21   * 
  22   * File Name: util.php
  23   *     Utility functions for the File Manager Connector for PHP.
  24   * 
  25   * File Authors:
  26   *         Frederico Caldeira Knabben (www.fckeditor.net)
  27   */
  28  
  29  function RemoveFromStart( $sourceString, $charToRemove )
  30  {
  31      $sPattern = '|^' . $charToRemove . '+|' ;
  32      return preg_replace( $sPattern, '', $sourceString ) ;
  33  }
  34  
  35  function RemoveFromEnd( $sourceString, $charToRemove )
  36  {
  37      $sPattern = '|' . $charToRemove . '+$|' ;
  38      return preg_replace( $sPattern, '', $sourceString ) ;
  39  }
  40  
  41  function ConvertToXmlAttribute( $value )
  42  {
  43      return utf8_encode( htmlspecialchars( $value ) ) ;
  44  }
  45  ?>


Généré le : Sun Feb 25 15:28:05 2007 par Balluche grâce à PHPXref 0.7