• 大小: 1.21MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-25
  • 语言: PHP
  • 标签: 博客  php  

资源简介

建立博客,除了可以利用现有的服务器外(例如:WordPress,LifeType等),本次从无到有制作一个具有风格的博客

资源截图

代码片段和文件信息

“““
FCKeditor - The text editor for Internet - http://www.fckeditor.net
Copyright (C) 2003-2007 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 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

Html += “

return Html

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-12-31 17:03  boke\
     文件        5362  2009-12-24 15:51  boke\admin.php
     文件        4910  2009-12-24 15:47  boke\admin_cat.php
     文件        6261  2009-12-24 16:47  boke\admin_edit.php
     文件        1638  2008-10-01 17:38  boke\blog.sql
     文件        6930  2009-12-24 15:48  boke\category.php
     目录           0  2010-12-31 17:03  boke\Connections\
     文件         346  2010-12-31 17:08  boke\Connections\blog_conn.php
     文件        2540  2008-10-03 09:56  boke\del.php
     目录           0  2010-12-31 17:03  boke\fckeditor\
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\css\
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\css\behaviors\
     文件         236  2007-06-14 14:08  boke\fckeditor\editor\css\behaviors\disablehandles.htc
     文件         822  2007-06-14 14:08  boke\fckeditor\editor\css\behaviors\showtableborders.htc
     文件        2040  2007-03-01 23:55  boke\fckeditor\editor\css\fck_editorarea.css
     文件        2550  2007-06-13 20:56  boke\fckeditor\editor\css\fck_internal.css
     文件        1514  2007-03-01 23:55  boke\fckeditor\editor\css\fck_showtableborders_gecko.css
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\css\images\
     文件         184  2007-06-14 14:08  boke\fckeditor\editor\css\images\fck_anchor.gif
     文件         599  2007-06-14 14:08  boke\fckeditor\editor\css\images\fck_flashlogo.gif
     文件         105  2007-06-14 14:08  boke\fckeditor\editor\css\images\fck_hiddenfield.gif
     文件          54  2007-06-14 14:08  boke\fckeditor\editor\css\images\fck_pagebreak.gif
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\dialog\
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\dialog\common\
     文件         439  2007-06-14 14:08  boke\fckeditor\editor\dialog\common\fcknumericfield.htc
     文件        1662  2007-03-01 23:55  boke\fckeditor\editor\dialog\common\fck_dialog_common.css
     文件        4106  2007-03-01 23:55  boke\fckeditor\editor\dialog\common\fck_dialog_common.js
     目录           0  2010-12-31 17:03  boke\fckeditor\editor\dialog\common\images\
     文件          74  2007-06-14 14:08  boke\fckeditor\editor\dialog\common\images\locked.gif
     文件         104  2007-06-14 14:08  boke\fckeditor\editor\dialog\common\images\reset.gif
............此处省略576个文件信息

评论

共有 条评论