[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 htmlarea.php

Zen Cart 源代码 htmlarea.php




下载文件

文件名: htmlarea.php
文件类型: PHP文件
文件大小: 2.13 KiB
MD5: 04852153e53b866aa26b3a14c3bddc97

htmlarea.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package htmleditors
  4.  * @copyright Copyright 2003-2006 Zen Cart Development Team
  5.  * @copyright Portions Copyright 2003 osCommerce
  6.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  7.  * @version $Id: htmlarea.php 4245 2006-08-24 14:07:50Z drbyte $
  8.  */
  9. if (!defined('IS_ADMIN_FLAG')) {
  10.   die('Illegal Access');
  11. }
  12.  
  13. define('BR',"\n");
  14.  
  15. // INSERTS <SCRIPT> TAGS IN <HEAD> FOR HTMLAREA TO BE CALLED
  16. if ($_SESSION['html_editor_preference_status']=="HTMLAREA") {
  17.  
  18. //define URL and LANG parameters
  19.   echo '<script type="text/javascript">' .BR;
  20.   echo '   _editor_url = "'.DIR_WS_CATALOG . 'editors/htmlarea/";' .BR;
  21.   echo '    _editor_lang = "'.strtolower($_SESSION['languages_code']).'";' .BR;
  22.   echo '</script>' .BR;
  23.  
  24. //<!-- load the main HTMLArea files -->
  25.   echo '<script type="text/javascript" src="' . DIR_WS_CATALOG . 'editors/htmlarea/htmlarea.js"></script>' .BR;
  26. //  echo '<script type="text/javascript" src="' . DIR_WS_CATALOG . 'editors/htmlarea/lang/'.strtolower(DEFAULT_LANGUAGE).'.js"></script>' .BR;
  27. //  echo '<script type="text/javascript" src="' . DIR_WS_CATALOG . 'editors/htmlarea/dialog.js"></script>' .BR;
  28. //  echo '<script type="text/javascript" src="' . DIR_WS_CATALOG . 'editors/htmlarea/popupdiv.js"></script>' .BR;
  29. //  echo '<script type="text/javascript" src="' . DIR_WS_CATALOG . 'editors/htmlarea/popupwin.js"></script>' .BR;
  30.  
  31. //<!-- load the plugins -->
  32.   echo '<script type="text/javascript">' .BR;
  33.       // WARNING: using this interface to load plugin
  34.       // will _NOT_ work if plugins do not have the language
  35.       // loaded by HTMLArea.
  36.  
  37.       // In other words, this function generates SCRIPT tags
  38.       // that load the plugin and the language file, based on the
  39.       // global variable HTMLArea.I18N.lang (defined in the lang file,
  40.       // in our case "lang/en.js" loaded above).
  41.  
  42.       // If this lang file is not found the plugin will fail to
  43.       // load correctly and nothing will work.
  44.  
  45.   echo '      HTMLArea.loadPlugin("TableOperations");' .BR;
  46.   echo '      HTMLArea.loadPlugin("SpellChecker");' .BR;
  47.   //  echo ' }' .BR;
  48.   echo '</script>' .BR;
  49. }
  50. ?>