[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 源代码 ckeditor.php

Zen Cart 源代码 ckeditor.php




下载文件

文件名: ckeditor.php
文件类型: PHP文件
文件大小: 1.4 KiB
MD5: 4dbac3fd7d5898a4397cace8b53c876a

ckeditor.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package admin
  4.  * @copyright Copyright 2010 Kuroi Web Design
  5.  * @copyright Portions Copyright 2009 Zen Cart Development Team
  6.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  7.  * @version $Id: ckeditor.php 277 2010-05-22 14:09:32Z kuroi $
  8.  */
  9. if (!defined('IS_ADMIN_FLAG')) {
  10.   die('Illegal Access');
  11. }
  12.  
  13. $var = zen_get_languages();
  14. $jsLanguageLookupArray = "var lang = new Array;\n";
  15. foreach ($var as $key)
  16. {
  17.   $jsLanguageLookupArray .= "  lang[" . $key['id'] . "] = '" . $key['code'] . "';\n";
  18. }
  19. ?>
  20. <script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
  21. <script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>
  22. <script type="text/javascript" src="../<?php echo DIR_WS_EDITORS ?>ckeditor/ckeditor.js"></script>
  23. <script type="text/javascript"><!--
  24. $(document).ready(function() {
  25.   <?php echo $jsLanguageLookupArray ?>
  26.   $('textarea').each(function() {
  27.     if ($(this).attr('name') != 'message' && $(this).attr('class') != 'noEditor')
  28.     {
  29.       index = $(this).attr('name').match(/\d+/);
  30.       if (index == null) index = <?php echo $_SESSION['languages_id'] ?>;
  31.       CKEDITOR.replace($(this).attr('name'),
  32.         {
  33.           coreStyles_underline : { element : 'u' },
  34.           width : 760,
  35.           language: lang[index]
  36.         });
  37.     }
  38.   });
  39. });
  40. //--></script>