资源简介
php开发案例以及常用的模块源代码,已经经过加工成各种模块系统,对学习php的朋友很有用的,我用过觉得很好。其中有RSS阅读器模块,留言本模块,在线支付模块,,电子邮件收发模块,,搜索引擎模块,论坛,电子商城系统
代码片段和文件信息
“““
FCKeditor - The text editor for internet
Copyright (C) 2003-2006 Frederico Caldeira Knabben
Licensed under the terms of the GNU Lesser General Public License:
http://www.opensource.org/licenses/lgpl-license.php
For further information visit:
http://www.fckeditor.net/
“Support Open Source software. What about a donation today?“
File Name: fckeditor.py
This is the integration file for Python.
File Authors:
Andrew Liu (andrew@liuholdings.com)
“““
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
def IsCompatible(self):
if (os.environ.has_key(“HTTP_USER_AGENT“)):
sAgent = os.environ.get(“HTTP_USER_AGENT“ ““)
else:
s
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 18760 2004-07-10 20:16 PHP案例代码\ebbs\ebbs\--contrib\dbinformer.php
文件 831 2004-03-25 17:56 PHP案例代码\ebbs\ebbs\--contrib\fixfiles.sh
文件 13774 2006-01-28 13:25 PHP案例代码\ebbs\ebbs\--contrib\README.html
文件 16031 2004-07-10 20:16 PHP案例代码\ebbs\ebbs\--contrib\template_db_cache.php
文件 15171 2004-07-10 20:16 PHP案例代码\ebbs\ebbs\--contrib\template_file_cache.php
文件 169 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\index.htm
文件 35211 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\install.php
文件 169 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\index.htm
文件 19451 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\mssql_basic.sql
文件 22793 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\mssql_schema.sql
文件 53566 2006-06-01 20:25 PHP案例代码\ebbs\ebbs\--install\schemas\ms_access_primer.zip
文件 18486 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\mysql_basic.sql
文件 18302 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\mysql_schema.sql
文件 18498 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\postgres_basic.sql
文件 22371 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\schemas\postgres_schema.sql
文件 45940 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\update_to_latest.php
文件 57398 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\--install\upgrade.php
文件 15202 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_board.php
文件 25911 2007-01-04 14:00 PHP案例代码\ebbs\ebbs\admin\admin_db_utilities.php
文件 4686 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_disallow.php
文件 8850 2007-01-08 14:05 PHP案例代码\ebbs\ebbs\admin\admin_forumauth.php
文件 31050 2007-01-05 14:02 PHP案例代码\ebbs\ebbs\admin\admin_forums.php
文件 4844 2007-01-05 16:40 PHP案例代码\ebbs\ebbs\admin\admin_forum_prune.php
文件 13803 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_groups.php
文件 5985 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_mass_email.php
文件 9928 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_ranks.php
文件 18789 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_smilies.php
文件 31628 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_st
文件 32064 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_ug_auth.php
文件 47188 2006-06-09 16:29 PHP案例代码\ebbs\ebbs\admin\admin_users.php
............此处省略3915个文件信息
评论
共有 条评论