资源简介
没有采用面向对象技术的,非常适合初学者参考的PHP博客系统。

代码片段和文件信息
“““
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4310 2007-08-10 20:30 5dblog\admin\admin.css
文件 4149 2007-08-19 15:16 5dblog\admin\article_add.php
文件 953 2007-08-19 15:16 5dblog\admin\article_com.php
文件 1691 2007-08-19 15:16 5dblog\admin\article_del.php
文件 5013 2007-08-19 15:17 5dblog\admin\article_edit.php
文件 5394 2007-08-19 15:17 5dblog\admin\article_index.php
文件 4762 2007-06-25 20:19 5dblog\admin\article_page.php
文件 2045 2007-08-19 15:17 5dblog\admin\category_add.php
文件 989 2007-08-19 15:17 5dblog\admin\category_del.php
文件 2162 2007-08-19 15:17 5dblog\admin\category_edit.php
文件 2413 2007-08-19 15:32 5dblog\admin\category_index.php
文件 1082 2007-06-25 19:33 5dblog\admin\comment_del.php
文件 4092 2007-08-19 15:17 5dblog\admin\comment_index.php
文件 3539 2007-06-25 20:22 5dblog\admin\comment_page.php
文件 186 2007-08-19 15:19 5dblog\admin\footer.php
文件 1678 2007-08-19 15:19 5dblog\admin\header.php
文件 2211 2006-10-31 18:16 5dblog\admin\images\adminLogo.gif
文件 599 2007-08-11 21:53 5dblog\admin\images\cancel.gif
文件 558 2007-08-11 18:40 5dblog\admin\images\cancel2.gif
文件 929 2007-01-22 20:48 5dblog\admin\images\cancel22.gif
文件 386 2006-11-22 20:22 5dblog\admin\images\cate.gif
文件 987 2007-06-23 11:10 5dblog\admin\images\cate2.gif
文件 230 2006-11-22 20:22 5dblog\admin\images\del.gif
文件 394 2006-11-22 20:22 5dblog\admin\images\Drafts.gif
文件 339 2006-11-22 20:22 5dblog\admin\images\edit.gif
文件 288 2006-03-14 09:40 5dblog\admin\images\icon_arrow.gif
文件 146 2006-04-11 21:17 5dblog\admin\images\icon_delete.gif
文件 135 2006-03-21 12:35 5dblog\admin\images\icon_edit.gif
文件 77 2006-03-14 09:40 5dblog\admin\images\icon_folder.gif
文件 95 2006-03-14 09:40 5dblog\admin\images\icon_folder3.gif
............此处省略457个文件信息
- 上一篇:PHP 旅游网站
- 下一篇:php-ffmpeg php5.4 win
相关资源
- 校园疫情防控进出登记管理系统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在线相册(附数据库脚本)
- PHP在线人数统计
- php+Ajax无刷新分页列表
- PHP失物招领
- php 随机生成颜色
- php-redis中文帮助手册.chm
评论
共有 条评论