• 大小: 1.66MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-26
  • 语言: PHP
  • 标签: php  博客  简单  实用  

资源简介

没有采用面向对象技术的,非常适合初学者参考的PHP博客系统。

资源截图

代码片段和文件信息

“““
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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       4310  2007-08-10 20:30  5dblog\admin\admin.css

     文件       4149  2007-08-19 15:16  5dblog\admin\article_add.php

     文件        953  2007-08-19 15:16  5dblog\admin\article_com.php

     文件       1691  2007-08-19 15:16  5dblog\admin\article_del.php

     文件       5013  2007-08-19 15:17  5dblog\admin\article_edit.php

     文件       5394  2007-08-19 15:17  5dblog\admin\article_index.php

     文件       4762  2007-06-25 20:19  5dblog\admin\article_page.php

     文件       2045  2007-08-19 15:17  5dblog\admin\category_add.php

     文件        989  2007-08-19 15:17  5dblog\admin\category_del.php

     文件       2162  2007-08-19 15:17  5dblog\admin\category_edit.php

     文件       2413  2007-08-19 15:32  5dblog\admin\category_index.php

     文件       1082  2007-06-25 19:33  5dblog\admin\comment_del.php

     文件       4092  2007-08-19 15:17  5dblog\admin\comment_index.php

     文件       3539  2007-06-25 20:22  5dblog\admin\comment_page.php

     文件        186  2007-08-19 15:19  5dblog\admin\footer.php

     文件       1678  2007-08-19 15:19  5dblog\admin\header.php

     文件       2211  2006-10-31 18:16  5dblog\admin\images\adminLogo.gif

     文件        599  2007-08-11 21:53  5dblog\admin\images\cancel.gif

     文件        558  2007-08-11 18:40  5dblog\admin\images\cancel2.gif

     文件        929  2007-01-22 20:48  5dblog\admin\images\cancel22.gif

     文件        386  2006-11-22 20:22  5dblog\admin\images\cate.gif

     文件        987  2007-06-23 11:10  5dblog\admin\images\cate2.gif

     文件        230  2006-11-22 20:22  5dblog\admin\images\del.gif

     文件        394  2006-11-22 20:22  5dblog\admin\images\Drafts.gif

     文件        339  2006-11-22 20:22  5dblog\admin\images\edit.gif

     文件        288  2006-03-14 09:40  5dblog\admin\images\icon_arrow.gif

     文件        146  2006-04-11 21:17  5dblog\admin\images\icon_delete.gif

     文件        135  2006-03-21 12:35  5dblog\admin\images\icon_edit.gif

     文件         77  2006-03-14 09:40  5dblog\admin\images\icon_folder.gif

     文件         95  2006-03-14 09:40  5dblog\admin\images\icon_folder3.gif

............此处省略457个文件信息

评论

共有 条评论