资源简介
基于php的新闻管理系统,普通用户、管理员有不同的权限,可以实现新闻的浏览、编辑、评论的添加删除以及用户的管理,数据库:MYSQL数据库

代码片段和文件信息
“““
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 += ““ % (
self.InstanceName
WidthCSS
HeightCSS
HtmlValue
)
return Html
def IsCom
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1041 2017-12-18 15:52 news\addreview.php
文件 1180 2017-12-18 17:37 news\adduser.php
文件 6194 2017-12-20 15:48 news\content.php
文件 797 2012-10-13 17:15 news\css\responsive.css
文件 2915 2012-10-11 14:36 news\css\responsiveslides.css
文件 6167 2017-12-22 14:25 news\css\st
文件 1249 2017-12-22 14:39 news\css\st
文件 9285 2012-10-13 17:07 news\css\zerogrid.css
文件 5475 2017-12-21 10:59 news\find.php
文件 10031 2012-10-09 23:40 news\font\BebasNeue-webfont.eot
文件 21736 2012-10-09 23:41 news\font\BebasNeue-webfont.ttf
文件 11632 2012-10-09 23:41 news\font\BebasNeue-webfont.woff
文件 99042 2012-10-11 14:23 news\images\1.jpg
文件 69656 2012-10-11 14:38 news\images\2.jpg
文件 94212 2012-10-11 14:23 news\images\3.jpg
文件 94510 2012-10-11 14:23 news\images\4.jpg
文件 111070 2012-10-11 13:41 news\images\bg.jpg
文件 1150 2012-10-11 13:13 news\images\favicon.ico
文件 3897 2017-12-18 16:10 news\images\logo.png
文件 3691 2012-08-03 16:41 news\images\marker-1.gif
文件 359 2012-05-25 02:43 news\images\themes.gif
文件 37590 2012-10-07 00:25 news\images\thumb1.jpg
文件 32090 2012-10-07 00:25 news\images\thumb2.jpg
文件 32350 2012-10-07 00:27 news\images\thumb3.jpg
文件 11846 2012-10-07 17:01 news\images\thumb4.jpg
文件 11200 2012-10-07 17:01 news\images\thumb5.jpg
文件 10844 2012-10-07 17:01 news\images\thumb6.jpg
文件 11163 2017-12-22 14:38 news\index.php
文件 146 2017-12-13 19:29 news\is_login.php
文件 16018 2013-04-21 14:04 news\js\css3-mediaqueries.js
............此处省略813个文件信息
相关资源
- 校园疫情防控进出登记管理系统THIN
- 手写签名,PHP +js+html5
- 学籍管理系统(php源码+mysql数据库)
- 新闻管理系统(原生php源码)
- php图书管理系统源码(附数据库)
- php文章管理系统源码(附数据库)
- PHP图书馆管理系统(源码 数据库脚本
- PHP考试答题系统
- 基于PHP的学生管理系统(优雅版)
- PHP物品管理系统
- php新闻管理系统源码
- resetful框架
- PHP免杀大马-过D盾过安全狗WAF免杀ph
- 友邻B2B系统(PHPB2B) 5.0.2 UTF-8
- 新型冠状病毒肺炎疫情实时图PHP源码
- WordPress柚子皮主题 新闻媒体资讯博客
- PHP调用企业微信API接口底层类库
- 基于PHP的统一检索系统的设计与实现
- PHP版本的网络打印机提交打印代码
- conefor操作(Manual_Conefor_26)
- php Goto解密
- PHP大转盘抽奖
- php模拟文件上传(socket_upload.php)
- php连接mysql实现界面crud(附数据库文
- php在线相册(附数据库脚本)
- PHP在线人数统计
- php+Ajax无刷新分页列表
- PHP失物招领
- php 随机生成颜色
- php-redis中文帮助手册.chm
评论
共有 条评论