• 大小: 6.85MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-11
  • 语言: PHP
  • 标签:

资源简介

关于php的新闻发布系统,挺好用的,大家需要的话可以下载

资源截图

代码片段和文件信息

“““
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 += “yle=\“width: %s; height: %s;\“ wrap=\“virtual\“>%s“ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue

return Html

def IsCom

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-16 17:15  news\
     文件          43  2011-09-19 08:45  news\category_add.php
     文件          43  2011-09-19 08:45  news\category_list.php
     目录           0  2013-05-16 17:15  news\css\
     文件        1477  2011-04-14 17:21  news\css\news.css
     文件         126  2011-04-12 17:01  news\download.php
     目录           0  2013-05-16 17:15  news\fckeditor\
     文件        1262  2010-02-15 12:13  news\fckeditor\_documentation.html
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\_plugins\
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\_plugins\findreplace\
     文件        1735  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\fckplugin.js
     文件         595  2010-02-15 13:31  news\fckeditor\_samples\_plugins\findreplace\find.gif
     文件        4561  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\find.html
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\_plugins\findreplace\lang\
     文件        1145  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\lang\en.js
     文件        1161  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\lang\fr.js
     文件        1166  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\lang\it.js
     文件         326  2010-02-15 13:31  news\fckeditor\_samples\_plugins\findreplace\replace.gif
     文件        4157  2010-02-15 12:12  news\fckeditor\_samples\_plugins\findreplace\replace.html
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\_plugins\samples\
     文件        2392  2010-02-15 12:12  news\fckeditor\_samples\_plugins\samples\fckplugin.js
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\adobeair\
     文件        1365  2010-02-15 12:12  news\fckeditor\_samples\adobeair\application.xml
     目录           0  2013-05-16 17:15  news\fckeditor\_samples\adobeair\icons\
     文件        1242  2010-02-15 13:31  news\fckeditor\_samples\adobeair\icons\128.png
     文件         273  2010-02-15 13:31  news\fckeditor\_samples\adobeair\icons\16.png
     文件         562  2010-02-15 13:31  news\fckeditor\_samples\adobeair\icons\32.png
     文件         563  2010-02-15 13:31  news\fckeditor\_samples\adobeair\icons\48.png
     文件         893  2010-02-15 13:31  news\fckeditor\_samples\adobeair\package.bat
     文件         811  2010-02-15 13:31  news\fckeditor\_samples\adobeair\run.bat
............此处省略769个文件信息

评论

共有 条评论