3

我正在一个需要非常简单的 CMS 的网站上工作 - 基本上主页上有一段文本需要客户端编辑。他们当前的托管计划不允许使用数据库,并且包括一个将每月额外花费 X 美元,我认为这对于这样一个基本系统来说是不必要的。

该网站目前是使用 Codeignitor 构建的。我打算使用平面 PHP 或 TXT 文件编写其中的 CMS 部分,是否有值得考虑的替代方法,优缺点是什么?

4

5 回答 5

2

好的,除此之外,我选择了自定义平面文件系统。我查看了一些推荐的非 DB CMS 系统,它们看起来相当不错 - 特别是我后来发现的这个:http: //get-simple.info/

我自己构建的原因主要是因为该站点已经在 Codeignitor 框架上,我不想使用其他站点来重建它。

所以我现在的问题是 - 如果我的系统将数据存储在两个 txt 文件中:一个用于用户数据,一个用于站点内容,如果我将站点内容文件权限设置为 RW,是否存在大量安全问题?该站点很小,我无法想象有人会想要破解它,但我仍然想知道是否存在任何重大安全隐患。

于 2010-02-24T03:31:41.517 回答
1

试试http://www.opensourcecms.com/

您可能感兴趣的一些示例

  • PivotX
  • 采摘
  • 剃刀CMS
于 2010-02-22T02:25:48.737 回答
1

轻松的CMS

它的 ftp 进入您的主机帐户,读取您的 html,并查找具有 class="cushy" 的标签并使这些内容字段可编辑。它对你想要的有好处。

于 2010-03-04T08:02:55.040 回答
0

I once solved this problem by simply putting markers in an HTML file, as HTML comments, and then had my PHP script parse the file and insert the desired text in between the markers. Done this way, you need no other files other than the PHP that handles the form submission from the CMS and a static HTML page.

In words, read the file into a string, explode() the string using the marker as the delimiter, modify the second (if you have a single editable section enclosed by the markers) array element to contain the new text submitted by the user, then implode the array back into the string, then write the string back as the complete file.

于 2010-02-22T01:36:16.543 回答
0

What about sqlite? it is just a file, no need to install anything? But if this is also not welcome, you could just keep the contents in txt files and have a php to read it, put to your template.

于 2010-02-22T01:41:38.373 回答