[ Index ]
 

Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/admin/includes/ -> htmlarea.php (source)

   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  ?>


Généré le : Mon Nov 26 16:45:43 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics