php典型模块与项目实战源代码


php典型模块与项目实战源代码,全集,包含全部的源代码目录和源代码文件,和框架引擎介绍文档以及源码
资源截图
代码片段和文件信息
“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2008 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 += “yle=“width: %s; height: %s;“ wrap=“virtual“>%s“ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue

return Html

def IsCom

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-13 21:39  socure
     目录           0  2018-09-13 21:39  socure1
     目录           0  2018-09-13 21:39  socure1Data
     目录           0  2018-09-13 21:39  socure1Datadb_reglog
     文件          65  2008-06-25 22:01  socure1Datadb_reglogdb.opt
     文件        2320  2011-05-27 16:51  socure1Datadb_reglog b_member.MYD
     文件        2048  2011-05-27 16:51  socure1Datadb_reglog b_member.MYI
     文件        8936  2008-08-05 13:17  socure1Datadb_reglog b_member.frm
     文件         795  2008-09-06 08:55  socure1activation.php
     文件         243  2008-08-14 09:07  socure1chkname.php
     目录           0  2018-09-13 21:39  socure1conn
     文件        3131  2011-02-25 13:17  socure1connconn.php
     目录           0  2018-09-13 21:39  socure1css
     文件        5907  2010-01-26 17:53  socure1cssstyle.css
     文件        1051  2010-01-26 16:43  socure1found.php
     文件        2084  2011-05-27 15:30  socure1found_chk.php
     目录           0  2018-09-13 21:39  socure1images
     文件       61193  2008-08-14 09:26  socure1imagesg.gif
     文件         803  2008-08-14 11:22  socure1imagesottom.gif
     文件         301  2008-08-14 10:37  socure1imagesfdbg.gif
     文件        1943  2008-08-12 16:40  socure1imagesfdbtn.gif
     文件        1880  2008-08-14 10:18  socure1imagesfinish.gif
     文件        1954  2008-08-14 08:40  socure1imagesinfobtn.gif
     文件        1632  2008-08-12 16:38  socure1imageslgbtn.gif
     文件        1754  2008-08-14 08:45  socure1imageslgbtn2.gif
     文件        1519  2008-08-06 16:39  socure1imagesloading.gif
     文件       72491  2008-08-14 11:47  socure1images
gbg.gif
     文件        1873  2008-08-12 16:39  socure1images
gbtn.gif
     文件        1733  2008-08-14 08:27  socure1images
gbtn2.gif
     文件         397  2008-08-16 08:31  socure1index.php
     目录           0  2018-09-13 21:39  socure1js
............此处省略6526个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)