资源简介
基于Yii 框架开发的博客 ,YiiBlog 是一个基于 Yii 框架开发的博客程序。
Yii是一个高性能的PHP5的web应用程...
代码片段和文件信息
“““
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个文件信息
相关资源
- php高仿赶集网58同城源码v3.2
- php问答系统-ask2问答 问答系统源码
- PHP Tools for VS 2013(永久免费最新版)
- PHP+MySQL动态网站开发 源码66768
- phpdisk_Z-Core_v4.5 网赚运营版 破解版
- 基于php+mysql+Apache的学生成绩管理系统
- phpMyAdmin-4.3.6-all-languages.zip
- php微信吸粉源码生成个性标签
- php在线选课系统含学生教师操作手册
- php调用webservice及myeclipse创建webservic
-
Phpcmsv9.3.6ba
seUE4Fix.zip - PHPDiskZ-Core Advanced Edition v4.5 无域名限
- php+mysql+smarty仿淘宝商城源码
- PHP工具箱配置和
- php 简单的商城。
- phpcms v9.6.0版本
- 二手车买卖网站源码 php 带sql
- php+mysql+apache的图书管理系统.rar
- 基于php的新闻管理系统
- PHP网络点餐系统源码整套完整 网上点
- ThinkPHP31.3发送邮件
- 众大云采集phpcms v9.6.5.zip
- WikyBlog v1.7.3 RC2 多国语言版.rar
- PHPCMS2008黄页模块UTF-8测试版
- 齐享云php开源网盘源码 v1.0.zip
- 新之站PHPwind采集器.rar
- ThinkPHP5.0-快速入门手册(新手教程版
- php个人博客源码
- PHP学生信息管理系统课程设计
- php旅游网站毕业设计程序
评论
共有 条评论