资源简介
php典型模块与项目实战源代码,全集,包含全部的源代码目录和源代码文件,和框架引擎介绍文档以及源码
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 Frederico Caldeira Knabben
== BEGIN LICENSE ==
Licensed under the terms of any of the following licenses at your
choice:
- GNU General Public License Version 2 or later (the “GPL“)
http://www.gnu.org/licenses/gpl.html
- GNU Lesser General Public License Version 2.1 or later (the “LGPL“)
http://www.gnu.org/licenses/lgpl.html
- Mozilla Public License Version 1.1 or later (the “MPL“)
http://www.mozilla.org/MPL/MPL-1.1.html
== END LICENSE ==
This is the integration file for Python.
“““
import cgi
import os
import re
import string
def escape(text replace=string.replace):
“““Converts the special characters ‘<‘ ‘>‘ and ‘&‘.
RFC 1866 specifies that these characters be represented
in HTML as < > and & respectively. In Python
1.5 we use the new string.replace() function for speed.
“““
text = replace(text ‘&‘ ‘&‘) # must be done 1st
text = replace(text ‘<‘ ‘<‘)
text = replace(text ‘>‘ ‘>‘)
text = replace(text ‘“‘ ‘"‘)
text = replace(text “‘“ ‘‘‘)
return text
# The FCKeditor class
class FCKeditor(object):
def __init__(self instanceName):
self.InstanceName = instanceName
self.basePath = ‘/fckeditor/‘
self.Width = ‘100%‘
self.Height = ‘200‘
self.ToolbarSet = ‘Default‘
self.Value = ‘‘;
self.Config = {}
def Create(self):
return self.CreateHtml()
def CreateHtml(self):
HtmlValue = escape(self.Value)
Html = ““
if (self.IsCompatible()):
File = “fckeditor.html“
link = “%seditor/%s?InstanceName=%s“ % (
self.basePath
File
self.InstanceName
)
if (self.ToolbarSet is not None):
link += “&Toolbar=%s“ % self.ToolbarSet
# Render the linked hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.InstanceName
HtmlValue
)
# Render the configurations hidden field
Html += “yle=\“display:none\“ />“ % (
self.InstanceName
self.GetConfigFieldString()
)
# Render the editor iframe
Html += “rame id=\“%s\__frame\“ src=\“%s\“ width=\“%s\“ height=\“%s\“ frameborder=\“0\“ scrolling=\“no\“> rame>“ % (
self.InstanceName
link
self.Width
self.Height
)
else:
if (self.Width.find(“%%“) < 0):
WidthCSS = “%spx“ % self.Width
else:
WidthCSS = self.Width
if (self.Height.find(“%%“) < 0):
HeightCSS = “%spx“ % self.Height
else:
HeightCSS = self.Height
Html += ““ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue
)
return Html
def IsCom
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-13 21:39 socure\
目录 0 2018-09-13 21:39 socure\01\
目录 0 2018-09-13 21:39 socure\01\Data\
目录 0 2018-09-13 21:39 socure\01\Data\db_reglog\
文件 65 2008-06-25 22:01 socure\01\Data\db_reglog\db.opt
文件 2320 2011-05-27 16:51 socure\01\Data\db_reglog\tb_member.MYD
文件 2048 2011-05-27 16:51 socure\01\Data\db_reglog\tb_member.MYI
文件 8936 2008-08-05 13:17 socure\01\Data\db_reglog\tb_member.frm
文件 795 2008-09-06 08:55 socure\01\activation.php
文件 243 2008-08-14 09:07 socure\01\chkname.php
目录 0 2018-09-13 21:39 socure\01\conn\
文件 3131 2011-02-25 13:17 socure\01\conn\conn.php
目录 0 2018-09-13 21:39 socure\01\css\
文件 5907 2010-01-26 17:53 socure\01\css\st
文件 1051 2010-01-26 16:43 socure\01\found.php
文件 2084 2011-05-27 15:30 socure\01\found_chk.php
目录 0 2018-09-13 21:39 socure\01\images\
文件 61193 2008-08-14 09:26 socure\01\images\bg.gif
文件 803 2008-08-14 11:22 socure\01\images\bottom.gif
文件 301 2008-08-14 10:37 socure\01\images\fdbg.gif
文件 1943 2008-08-12 16:40 socure\01\images\fdbtn.gif
文件 1880 2008-08-14 10:18 socure\01\images\finish.gif
文件 1954 2008-08-14 08:40 socure\01\images\infobtn.gif
文件 1632 2008-08-12 16:38 socure\01\images\lgbtn.gif
文件 1754 2008-08-14 08:45 socure\01\images\lgbtn2.gif
文件 1519 2008-08-06 16:39 socure\01\images\loading.gif
文件 72491 2008-08-14 11:47 socure\01\images\rgbg.gif
文件 1873 2008-08-12 16:39 socure\01\images\rgbtn.gif
文件 1733 2008-08-14 08:27 socure\01\images\rgbtn2.gif
文件 397 2008-08-16 08:31 socure\01\index.php
目录 0 2018-09-13 21:39 socure\01\js\
............此处省略6526个文件信息
相关资源
- 好用的php微信企业号
- 最专业的PHP集成环境秒杀phpStudy、xa
- THINKPHP商城,含支付宝、微信支付
- thinkPHP支付宝支付功能完整源码
- phpMyFAQ v3.0.1 多国语言版
- php MyFAQ问答系统 多国语言版 v3.0.4
- phpMyFAQ 问答系统
- phpMyFAQ v3.0.0 多国语言版
- phpMyFAQ 开源问答系统 v3.0.0 RC2
- PHP网页小游戏
- php小说采集demo
- PHP寄生虫繁殖劫持程序V3.0
- 韩顺平 PHP从入门到精通百度云资源(
- windows安装intl扩展
- phpSpreadsheet.zip
- Xblog、PHPwind、Oblog三款主流商用博客软
- PHP微信扫码关注公众号并授权登录.
- ZipFile.php(PHP压缩类打包)
- php聊天室源码群聊私聊多聊天室
- PHP支持手势的手机端图片裁剪上传
- 使用PHP+Sphinx建立高效的站内搜索引擎
- vip影视源码自动无需采集THINKPHP版
- ThinkPHP5.1 excel表的导入导出操作 (P
- PhpSpreadsheet Excel组件,PHPExcel升级版
- 追梦翔飞数字报刊管理系统PHPV7.3
- 拼团商城开源系统-基于thinkphp5-如花拼
- 微信支付Native扫码方式PHP
- 微信分享jssdk朋友圈带缩略图-utf8php通
- php简历模板
- php大马一句话数据库集合
评论
共有 条评论