资源简介
建立博客,除了可以利用现有的服务器外(例如:WordPress,LifeType等),本次从无到有制作一个具有风格的博客

代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2007 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 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
)
Html += “ “
return Html
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-12-31 17:03 boke\
文件 5362 2009-12-24 15:51 boke\admin.php
文件 4910 2009-12-24 15:47 boke\admin_cat.php
文件 6261 2009-12-24 16:47 boke\admin_edit.php
文件 1638 2008-10-01 17:38 boke\blog.sql
文件 6930 2009-12-24 15:48 boke\category.php
目录 0 2010-12-31 17:03 boke\Connections\
文件 346 2010-12-31 17:08 boke\Connections\blog_conn.php
文件 2540 2008-10-03 09:56 boke\del.php
目录 0 2010-12-31 17:03 boke\fckeditor\
目录 0 2010-12-31 17:03 boke\fckeditor\editor\
目录 0 2010-12-31 17:03 boke\fckeditor\editor\css\
目录 0 2010-12-31 17:03 boke\fckeditor\editor\css\behaviors\
文件 236 2007-06-14 14:08 boke\fckeditor\editor\css\behaviors\disablehandles.htc
文件 822 2007-06-14 14:08 boke\fckeditor\editor\css\behaviors\showtableborders.htc
文件 2040 2007-03-01 23:55 boke\fckeditor\editor\css\fck_editorarea.css
文件 2550 2007-06-13 20:56 boke\fckeditor\editor\css\fck_internal.css
文件 1514 2007-03-01 23:55 boke\fckeditor\editor\css\fck_showtableborders_gecko.css
目录 0 2010-12-31 17:03 boke\fckeditor\editor\css\images\
文件 184 2007-06-14 14:08 boke\fckeditor\editor\css\images\fck_anchor.gif
文件 599 2007-06-14 14:08 boke\fckeditor\editor\css\images\fck_flashlogo.gif
文件 105 2007-06-14 14:08 boke\fckeditor\editor\css\images\fck_hiddenfield.gif
文件 54 2007-06-14 14:08 boke\fckeditor\editor\css\images\fck_pagebreak.gif
目录 0 2010-12-31 17:03 boke\fckeditor\editor\dialog\
目录 0 2010-12-31 17:03 boke\fckeditor\editor\dialog\common\
文件 439 2007-06-14 14:08 boke\fckeditor\editor\dialog\common\fcknumericfield.htc
文件 1662 2007-03-01 23:55 boke\fckeditor\editor\dialog\common\fck_dialog_common.css
文件 4106 2007-03-01 23:55 boke\fckeditor\editor\dialog\common\fck_dialog_common.js
目录 0 2010-12-31 17:03 boke\fckeditor\editor\dialog\common\images\
文件 74 2007-06-14 14:08 boke\fckeditor\editor\dialog\common\images\locked.gif
文件 104 2007-06-14 14:08 boke\fckeditor\editor\dialog\common\images\reset.gif
............此处省略576个文件信息
- 上一篇:设计师导航网完整分享
- 下一篇:天使广告发布系统PHP+Mysql
相关资源
- 2020年7月26日最新版iapp卡密设备注册机
- DZ论坛威兔手机模板全功能版_4.x附详
- CakePHP Cookbook Documentation
- PHP7内核剖析.epub
- php 缩略图加水印
- 校园疫情防控进出登记管理系统THIN
- 手写签名,PHP +js+html5
- 学籍管理系统(php源码+mysql数据库)
- 新闻管理系统(原生php源码)
- php图书管理系统源码(附数据库)
- php文章管理系统源码(附数据库)
- PHP图书馆管理系统(源码 数据库脚本
- PHP考试答题系统
- 基于PHP的学生管理系统(优雅版)
- PHP物品管理系统
- php新闻管理系统源码
- resetful框架
- PHP免杀大马-过D盾过安全狗WAF免杀ph
- 友邻B2B系统(PHPB2B) 5.0.2 UTF-8
- 新型冠状病毒肺炎疫情实时图PHP源码
- WordPress柚子皮主题 新闻媒体资讯博客
- PHP调用企业微信API接口底层类库
- 基于PHP的统一检索系统的设计与实现
- PHP版本的网络打印机提交打印代码
- conefor操作(Manual_Conefor_26)
- php Goto解密
- PHP大转盘抽奖
- php模拟文件上传(socket_upload.php)
- php连接mysql实现界面crud(附数据库文
- php在线相册(附数据库脚本)
评论
共有 条评论