资源简介
建立博客,除了可以利用现有的服务器外(例如: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
相关资源
- 天使广告发布系统PHP+Mysql
- 设计师导航网完整分享
- 一卡通管理系统文档+源代码PHP和MYS
- 价值500元的PHP医院在线预约管理系统
- 微信上墙PHP源码
- Apache2.2.17+PHP5.3.5_WIN绿色免安装版
- php论坛项目
- PHP购物网站217942
- PHP+MYSQL 会员管理系统+图片上穿
- 网上购物网站;PHP;MySQL
- php7.0.12 redis.dll php_phalcon.dll
- THINKPHP5__可用
- phpstudy2010 整合压缩包
- php论坛,最新版
- PHP学生报名系统
- phpMyAdmin-4.0.2-all-languages
- thinkphp简易抢红包.rar
- 行政后勤小程序v1(含小程序端+PHP后
- PHP环境配置集成软件
- svn php版本客户端管理 可以新建项目
- PHP小型smarty项目
- php + mysql 个人博客系统
- php简单博客系统
- 微信公众平台使用JSSDK网页调起扫码并
- 基于PHP的网上商城开发设计与实现源
- 用php+mysql做的bbs
- php大作业 学生成绩管理系统
- 基于thinkphp3.2.3微信红包
- php+ajax高校社团管理系统.rar
- php视频播放隐藏地址+防盗链简单.ra
评论
共有 条评论