• 大小: 73MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-05-31
  • 语言: PHP
  • 标签: php  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  socure\01\
     目录           0  2018-09-13 21:39  socure\01\Data\
     目录           0  2018-09-13 21:39  socure\01\Data\db_reglog\
     文件          65  2008-06-25 22:01  socure\01\Data\db_reglog\db.opt
     文件        2320  2011-05-27 16:51  socure\01\Data\db_reglog\tb_member.MYD
     文件        2048  2011-05-27 16:51  socure\01\Data\db_reglog\tb_member.MYI
     文件        8936  2008-08-05 13:17  socure\01\Data\db_reglog\tb_member.frm
     文件         795  2008-09-06 08:55  socure\01\activation.php
     文件         243  2008-08-14 09:07  socure\01\chkname.php
     目录           0  2018-09-13 21:39  socure\01\conn\
     文件        3131  2011-02-25 13:17  socure\01\conn\conn.php
     目录           0  2018-09-13 21:39  socure\01\css\
     文件        5907  2010-01-26 17:53  socure\01\css\style.css
     文件        1051  2010-01-26 16:43  socure\01\found.php
     文件        2084  2011-05-27 15:30  socure\01\found_chk.php
     目录           0  2018-09-13 21:39  socure\01\images\
     文件       61193  2008-08-14 09:26  socure\01\images\bg.gif
     文件         803  2008-08-14 11:22  socure\01\images\bottom.gif
     文件         301  2008-08-14 10:37  socure\01\images\fdbg.gif
     文件        1943  2008-08-12 16:40  socure\01\images\fdbtn.gif
     文件        1880  2008-08-14 10:18  socure\01\images\finish.gif
     文件        1954  2008-08-14 08:40  socure\01\images\infobtn.gif
     文件        1632  2008-08-12 16:38  socure\01\images\lgbtn.gif
     文件        1754  2008-08-14 08:45  socure\01\images\lgbtn2.gif
     文件        1519  2008-08-06 16:39  socure\01\images\loading.gif
     文件       72491  2008-08-14 11:47  socure\01\images\rgbg.gif
     文件        1873  2008-08-12 16:39  socure\01\images\rgbtn.gif
     文件        1733  2008-08-14 08:27  socure\01\images\rgbtn2.gif
     文件         397  2008-08-16 08:31  socure\01\index.php
     目录           0  2018-09-13 21:39  socure\01\js\
............此处省略6526个文件信息

评论

共有 条评论