资源简介
基于Yii 框架开发的博客 ,YiiBlog 是一个基于 Yii 框架开发的博客程序。
Yii是一个高性能的PHP5的web应用程...
![](http://www.nz998.com/pic/70839.jpg)
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2010 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 2012-04-19 00:27 YiiBlog-master\
文件 102 2012-04-19 00:27 YiiBlog-master\.gitignore
文件 160 2012-04-19 00:27 YiiBlog-master\.gitmodules
文件 0 2012-04-19 00:27 YiiBlog-master\README
目录 0 2012-04-19 00:27 YiiBlog-master\css\
文件 243 2012-04-19 00:27 YiiBlog-master\css\bg.gif
文件 2806 2012-04-19 00:27 YiiBlog-master\css\form.css
文件 1933 2012-04-19 00:27 YiiBlog-master\css\ie.css
文件 2594 2012-04-19 00:27 YiiBlog-master\css\main.css
文件 1284 2012-04-19 00:27 YiiBlog-master\css\print.css
文件 10855 2012-04-19 00:27 YiiBlog-master\css\screen.css
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\
文件 1262 2012-04-19 00:27 YiiBlog-master\fckeditor\_documentation.html
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\
文件 1735 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\fckplugin.js
文件 595 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\find.gif
文件 4561 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\find.html
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\lang\
文件 1145 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\lang\en.js
文件 1161 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\lang\fr.js
文件 1166 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\lang\it.js
文件 326 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\replace.gif
文件 4157 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\findreplace\replace.html
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\samples\
文件 2392 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\_plugins\samples\fckplugin.js
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\adobeair\
文件 1365 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\adobeair\application.xm
目录 0 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\adobeair\icons\
文件 1242 2012-04-19 00:27 YiiBlog-master\fckeditor\_samples\adobeair\icons\128.png
............此处省略4501个文件信息
相关资源
- 校园疫情防控进出登记管理系统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源码
- 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
- php远程控制脚本
评论
共有 条评论