中文名:PHP+TXT站点管理系统3.2版
英文名:php+txt Site Management System V3.2
源码下载:http://phptxtsite.sourceforge.net/
联系方式:hufangqiang@139.com;hufangqiang@gmail.com
演示地址：http://www.it09.com


如果您需要一个无需数据库就能用的公司网站系统，这可能是你的一个好选择，
我们不能做到最好，定会努力追求更好！！！

系统特点:
1\无需数据库支持,防注入与sql攻击.
2\数据以文件夹方式存储,无限分类,无限记录条数.
3\支持多语言,多模板,自定义变量,信息页自定义项.
4\支持伪地址,灵活定义地址参数.
5\运用国际流行的SMARTY技术,可挂接任何模板.
6\模板自定义编辑,可以交叉调用模板，随意修改模板.
7\友情链接自定义,自定义CSS风格.
8\一键修复所有数据结构。
9\读写分流技术，不会造成数据丢失。
10\更多功能等待您。



安装与配置方法:
1、首先将所有数据复制到服务器上。
2、在浏览器中输入安装站点/admin即可打开管理,该文件夹请更名，以免别人修改。
3、模板功能还没开发完善，其他都可用了。
4、关键配置文件：/includes/config.php请谨慎修改。
5、数据都存放在data文件夹内，可以另外指定文件夹。
6、调节网站自动更新时间，请修改includes/smarty.php文件，第10行和第11行，单位为秒，最好改大一点，比如3600*24*10，
7、请设置data_directory文件夹为可写777,在WINDOWS系统中勿须进行此项设置.

设置方法:
1\设置SMARTY参数,请修改includes/smarty.php,具体参数参见smarty说明.
2\设置系统参数,请修改includes/config.php.
4\设置语言模板选项,请修改templates文件夹下对应的语言的模板选项.
5\定义变量方法:进入管理界面-基本设置－定义变量名称,可以添加无限个变量,在文章管理里会自动要求设定变量值的.
6\调用变量方法:在templates文件夹下对应的语言的模板里设置.以{$变量名}格式调用.
7\查看变量方法：打开smarty的调试输出开关即可。includes/smarty.php文件中的第18行。
7\更多功能期待您的参与!

其它程式请精通PHP的朋友进行修改吧.
欢迎与我交流，QQ：88497361
交流群：12135445 

2013年08月08日累积更新：[近半年来工作太忙了，再加上这个系统比较稳定，所以更新得少了啊]
1、优化内核代码，减少装入文件数量。
2、修改设置参数，所有配置数据均写到CONF文件中。
3、修改长地址功能为短地址功能，各位可将文件夹直接改名，然后用系统的自动整理与修理功能，就可以直接修复所有数据。
4、更新模板为最新稳定版本，不再挂装其他测试版本的了。
5、其他更新。

2012年12月16日累积更新：
1、重写后台数据结构代码，管理页面功能更强，
2、优化输出代码，SMARTY缓存自动控制。
3、部分函数操作优化。
4、数据结构与语言结构文件、系统设置文件三分离。
5、自动整理数据的优化等等。
6、升级模板引擎为smarty3.1.12版式
7、升级编辑器为ckeditor_4.0全功能版

2012年5月15日更新：
1、升级编辑器为ckeditor_3.6.3全功能版
2、升级模板引擎为smarty3.1.8版式
3、重写后台代码，易于管理。
4、优化数据结构，节约存储空间，
5、增加自动更新功能，快速更新最新消息
6、增加错误语言库，为以后更新多语言提示打下基础。

2012年3月17日更新:
目前主要在后台开发,前台基本完成,速度快了许多.


2012年2月26日累积更新:
1、充分运用SMARTY缓存技术,提高速度80%以上,打开速度只有原来的五分之一了.
2、更新模板为多功能项模板,如果要改成自已所要的模板,只要在默认项里修改就可以了.
3、增加广告功能,在TEMPLATS里的9个文件名为GG*.HTML的,都是广告文件,对应相应的广告位,可在模板中直接调用.
4、函数优化,操作更简捷.


2011年9月30日更新：
1、提交标题的一小BUG，
2、更新自动检测功能。
3、系统运行了几个月，基本稳定不出错了。庆国庆，特更新至1.0版。

2011年08月17日更新：
1、修改后台所有数据项，设置可以动态更新与保存。
2、增加变量自动设计项，喜欢修改模板的朋友可以随时添加变量了。
3、增加变量默认值，注意要 一一对应才行。
4、更新最新软件更新算法，自动更新与处理软件，不会因软件太多而超页面。
5、系统基本完善，正式发布1.0版吧。马上要开学了，对此项目暂时告一段落。

2011年8月14日更新：
1、更新首页文件，完善了几句算法。
2、自动修复功能更完善了。

2011年08月13日更新：
1、修改前台调用结构，改进算法，优化输出方式。
2、减少文件读取操作，采取小文件加判断调用，智能装载所需代码，提高网页反应速度。
3、更新smarty至3.0.8正式版，速度更快更稳定。
4、删除语言包文件，输出语言直接写入对应模板中，不再单列。
5、系统配置文件重新设计，只写入一个配置文件。
6、更新ckeditor至3.6.1正式版，增加更多功能。
7、数据结构无关性，智能处理。
8、经过本次修改后，测试运行速度更快。（前一版第二次首页访问时间为430毫秒，本版首页达370毫秒。－－本机测试）
9、后台尚未修改，个别功能会出错。待开发。


2011年08月04日更新：
 1、更新底层数据驱动文件写入函数库，使不再受字符码限制，真正做到可以写入任意数据。
 2、完善后台管理系统，现在可以用一个后台管理多个语言种类的数据了，修正后台链接。
 3、增加地址码识别多语种功能。

2011年07月26日更新：
1、修复多语种切换功能，可以随意切换。
2、增加伪静态地址开关，支持伪静态地址与动态地址。如果服务器不支持伪静态的朋友有福了。
3、后台管理项大部分可操作，直接写入系统设置文件。
4、自带有两种语言模板与相关数据。
5、采取最新的SMARTY后台支持，可以手动设置相关参数了。
6、图片精简，大部分用CSS进行美化，速度快。
7、增加运行时间监测项，在每个页脚都有显示了。
8、数据结构未曾更改，原先研究的朋友只要将除DATA以外的所有数据覆盖即可运行。


0.5版更新日志：
1\增加了友情链接的功能。
2\美化了ＣＳＳ文件，修正了ＣＳＳ布局。
3\管理员界面增加了相应管理项。
4\管理分类数据写入增加自动纠错项
5\首页超链接更完善
6\信息页添加上一篇与下一篇相关链接。
7\增加系统工具，一键修复所有数据结构。
8\功能有相当大的完善，姑且命名为0.5版吧。



版权诚明:
本程式是个人作品,您可以任意传播与使用,但不得用于谋利,在实际使用中不得去除数据内含之版权信息.
作者保留追究侵权的权利.
内含部分程序遵循原发行人的约定标准,本人不再陈述.

错误代码输出值：
000系统配置文件丢失
001不存在的数据文件
002无法解析的地址
004预定义文件错误
005系统存在文件错误


011丢失首页模板
012丢失列表页模板
013丢失产品信息页模板




Chinese name: PHP + TXT, site management system, version 3.2
English Name: php + txt Site Management System V3.2.
Download source: http://phptxtsite.sourceforge.net/
Contact: hufangqiang@139.com; hufangqiang@gmail.com
Demo Address: http://www.it09.com



If you need a need to be able to use the company's Web site database systems, this may be a good choice for you,
We can not do our best, will strive for better! ! !

System features:
1 \ without database support, anti-injection and sql attacks.
2 \ data folder is stored, unlimited categories, unlimited number of records.
3 \ Support multi-language, multi-template, custom variables, information page customization.
4 \ support pseudo address, flexible definition of address parameters.
5 \ using internationally popular SMARTY technology can mount any template.
6 \ Templates custom editor, you can cross-call template, free to modify templates.
7 \ Links customization, custom CSS styles.
8 \ a key to fix all the data structures.
9 \ reader streaming technology will not cause data loss.
10 \ More features await you.



Installation and configuration methods:
1, the first copy all data to the server.
2, in the browser, enter the installation site / admin to open management, please rename the folder so that others modified.
3, the template function not develop perfect, others are available.
4, the key configuration file :/ includes / config.php careful modification.
5, the data are stored in the data folder, you can specify another folder.
6, adjust the Web site to automatically update, modify includes / smarty.php file, line 10 and line 11, in units of seconds, and preferably changed a bit, such as 3600 * 24 * 10,
7, set the folder is writable data_directory 777, in the WINDOWS system Needless to set this up.

Setting method:
1 \ Set SMARTY parameters, modify the includes / smarty.php, specific parameters see smarty instructions.
2 \ set system parameters, modify the includes / config.php.
4 \ set the language template options, modify the templates folder under the corresponding language template options.
5 \ define variables: enter the management interface - Basic Settings - defined variable names, you can add an unlimited number of variables in the article management requirements will be automatically set variable values.
6 \ call variables: In the templates folder under the corresponding language template settings in $ {variable name} format called.
7 \ See variables: Open smarty debug output switch. includes / smarty.php file line 18.
7 \ more features look forward to your participation!

Please proficient in PHP other programs to modify it a friend.
I welcome the exchange, QQ: 88497361
Exchange group: 12135445

8 August 2013 cumulative update: [too busy the past six months, plus the system is relatively stable, the update was less ah]
1, optimize the kernel code, reducing the number of files loaded.
2, modify the setup parameters, all configuration data are written to the CONF file.
3, modify the short addresses long address function function you can rename the folder directly, and then use the system's automatic sorting and repair function, you can directly fix all data.
4, update to the latest stable version of the template is no longer mounted versions of the other tests.
5, other updates.

December 16, 2012 cumulative update:
1, rewrite background data structure code, powerful admin page,
2, optimize the output code, SMARTY cache automatic control.
3, part of the function operation optimization.
4, the data structure and language structure files, system settings file three separation.
5, automatic collating data optimization and so on.
6, the upgrade template layout engine smarty3.1.12
7, the upgrade editor ckeditor_4.0 full version

May 15, 2012 update:
1, the upgrade editor ckeditor_3.6.3 full version
2, the upgrade template layout engine smarty3.1.8
3, rewrite the code behind, easy to manage.
4, optimizing data structures, saving storage space,
5, increasing the automatic update feature to quickly update the latest news
6, increasing the wrong language library for the future lay the foundation for updating multi-language prompts.

March 17, 2012 update:
At present, the development in the background, foreground basically completed, a lot faster.


26 February 2012 cumulative update:
A full use of SMARTY cache technology, improve the speed more than 80% open rate is only one-fifth of the original.
2, update the template for the multi-item template, if you want to change the template to be their own, as long as the default entry in modifying it.
3, increase advertising functions in TEMPLATS Lane 9 file named GG *. HTML, are advertising documents, corresponding to the appropriate advertising, can be called directly in the template.
4, function optimization, operating more simple.


September 30, 2011 update:
1, submit the title of a small BUG,
2, update automatic detection feature.
3, the system runs for a few months, the basic stability is not wrong. National Day, special updated to version 1.0.

August 17, 2011 update:
1, modify the background of all data items, settings can be dynamically updated and saved.
2, increasing variable automatic design items, like a friend you can always modify the template to add variables.
3, increasing the variable default values, pay attention to one correspondence job.
4, updated with the latest software update algorithm automatically updated and processing software, the software will not be too much over the page.
5, the system is basically sound, officially released version 1.0 bar. Immediately to the school, and this project is temporarily come to an end.

August 14, 2011 update:
An update Home, improve a few algorithms.
2, the automatic repair function better.

August 13, 2011 update:
1, modify the foreground call structure, improved algorithm to optimize output.
2, to reduce file read operation, to take a small file plus judgment call, intelligent load the required code to improve page response times.
3, update smarty to 3.0.8 official version, faster and more stable.
4, delete the language pack file, the output is written directly correspond to the template language is no longer single.
5, system configuration files redesign, just write a configuration file.
6, update ckeditor to official version 3.6.1, adding more functionality.
7, the data structure independent, intelligent processing.
8, after this revision, the test run faster. (The previous version of the second home access time is 430 milliseconds to 370 milliseconds Home edition. - This test)
9, the background has not been modified, the individual functions to be wrong. To be developed.


August 4, 2011 Updated:
 An update file is written to the underlying data-driven library, so no longer subject to the character code restrictions, truly can write arbitrary data.
 2, improve the backstage management system, you can now manage multiple languages ​​with a background kind of data, the correction backstage link.
 3, increasing the address code identifying the multilingual capabilities.

July 26, 2011 update:
A repair multilingual switching function, you can easily switch.
2, increasing the pseudo-static address switches, supporting pseudo-static and dynamic address address. If the server does not support pseudo-static blessed friend.
3, the most actionable items backstage management, direct-write system setting file.
4, comes with two languages ​​templates with the relevant data.
5, take the latest SMARTY background support, you can manually set the relevant parameters.
6, Picture streamlined, most with CSS landscaping, fast.
7, increasing uptime monitoring, and in the footer of each are shown.
8, the data structure has not changed, as long as the original study except DATA friends outside of all data coverage to run.


Version 0.5 update log:
A \ adds Link function.
2 \ beautify the CSS file, amended CSS layout.
3 \ Administrator interface to increase the appropriate management items.
4 \ management segment data is written to increase auto-correction term
5 \ Home hyperlinks better
6 \ information on one page and the next one to add links.
7 \ increases system tools, a key repair all data structures.
8 \ function has considerable improvement, tentatively named the 0.5 version of it.



Copyright Cheng Ming:
This program is a personal work, you can spread and use, but not for profit, in actual use shall not remove the copyright information embedded in the data.
The author reserves the right to pursue infringement.
Containing part of the program follows the standards of the original issuer of the contract, I no longer statements.

Error code output value:
000 system configuration files are missing
001 data file does not exist
002 unresolved address
004 predefined file error
005 existing file system errors


011 missing page template
A list of 012 missing page template
013 missing product information page template