資源簡介
1.本系統為Thinkphp3.2.3開發的文章管理系統。相對簡單,代碼比較規范,適合新手看。麻雀雖小五臟俱全,有需要的朋友可以看看。
2.系統分為:前臺與后臺兩模塊。用到的技術有:文件上傳、驗證碼、實現登錄、自動完成、自動驗證等。
3.內含數據庫文件。
4.相關介紹:http://blog.csdn.net/qq_17362885/article/details/51138075

代碼片段和文件信息
/***********************************************************************
????Copyright?2006-2007?Ma?Bingyao
????These?sources?is?free?software.?Redistributions?of?source?code?must
????retain?the?above?copyright?notice.?Redistributions?in?binary?form
????must?reproduce?the?above?copyright?notice.?You?can?redistribute?it
????freely.?You?can?use?it?with?any?free?or?commercial?software.
????These?sources?is?distributed?in?the?hope?that?it?will?be?useful
????but?WITHOUT?ANY?WARRANTY.?Without?even?the?implied?warranty?of
????MERCHANTABILITY?or?FITNESS?FOR?A?PARTICULAR?PURPOSE.
????????You?may?contact?the?author?by:
???????????e-mail:??andot@coolcode.cn
*************************************************************************/
#ifdef?HAVE_CONFIG_H
#include?“config.h“
#endif
#include?“php.h“
#if?HAVE_XXTEA
#include?“php_xxtea.h“
#include?“ext/standard/info.h“?/*?for?phpinfo()?functions?*/
#include?“xxtea.h“
/*?compiled?function?list?so?Zend?knows?what‘s?in?this?module?*/
zend_function_entry?xxtea_functions[]?=
{
????ZEND_FE(xxtea_encrypt?NULL)
????ZEND_FE(xxtea_decrypt?NULL)
????ZEND_FE(xxtea_info?NULL)
????{NULL?NULL?NULL}
};
/*?compiled?module?information?*/
zend_module_entry?xxtea_module_entry?=
{
????STANDARD_MODULE_HEADER
????XXTEA_MODULE_NAME
????xxtea_functions
????ZEND_MINIT(xxtea)
????ZEND_MSHUTDOWN(xxtea)
????NULL
????NULL
????ZEND_MINFO(xxtea)
????XXTEA_VERSION
????STANDARD_MODULE_PROPERTIES
};
/*?implement?standard?“stub“?routine?to?introduce?ourselves?to?Zend?*/
#if?defined(COMPILE_DL_XXTEA)
ZEND_GET_MODULE(xxtea)
#endif
static?xxtea_long?*xxtea_to_long_array(unsigned?char?*data?xxtea_long?len?int?include_length?xxtea_long?*ret_len)?{
????xxtea_long?i?n?*result;
n?=?len?>>?2;
????n?=?(((len?&?3)?==?0)???n?:?n?+?1);
????if?(include_length)?{
????????result?=?(xxtea_long?*)emalloc((n?+?1)?<2);
????????result[n]?=?len;
????*ret_len?=?n?+?1;
}?else?{
????????result?=?(xxtea_long?*)emalloc(n?<2);
????*ret_len?=?n;
????}
memset(result?0?n?<2);
for?(i?=?0;?i?????????result[i?>>?2]?|=?(xxtea_long)data[i]?<((i?&?3)?<3);
????}
????return?result;
}
static?unsigned?char?*xxtea_to_byte_array(xxtea_long?*data?xxtea_long?len?int?include_length?xxtea_long?*ret_len)?{
????xxtea_long?i?n?m;
????unsigned?char?*result;
????n?=?len?<2;
????if?(include_length)?{
????????m?=?data[len?-?1];
????????if?((m??n?-?4))?return?NULL;
????????n?=?m;
????}
????result?=?(unsigned?char?*)emalloc(n?+?1);
for?(i?=?0;?i?????????result[i]?=?(unsigned?char)((data[i?>>?2]?>>?((i?&?3)?<3))?&?0xff);
????}
result[n]?=?‘\0‘;
*ret_len?=?n;
return?result;
}
static?unsigned?char?*php_xxtea_encrypt(unsigned?char?*data?xxtea_long?len?unsigned?char?*key?xxtea_long?*ret_len)?{
????unsigned?char?*result;
????xxtea_long?*v?*k?v_len?k_len;
????v?=?xxtea_to_long_array(data?len?1?&v_len);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????210??2015-01-28?15:46??TPTest\.htaccess
?????文件??????????1??2016-04-06?20:04??TPTest\article\Admin\Common\index.html
?????文件????????107??2016-04-07?11:33??TPTest\article\Admin\Conf\config.php
?????文件??????????1??2016-04-06?20:04??TPTest\article\Admin\Conf\index.html
?????文件???????3104??2016-04-11?16:29??TPTest\article\Admin\Controller\ArticleController.class.php
?????文件????????358??2016-04-09?10:05??TPTest\article\Admin\Controller\ba
?????文件??????????1??2016-04-06?20:04??TPTest\article\Admin\Controller\index.html
?????文件????????257??2016-04-08?20:39??TPTest\article\Admin\Controller\IndexController.class.php
?????文件????????973??2016-04-09?09:22??TPTest\article\Admin\Controller\LoginController.class.php
?????文件????????557??2016-04-09?10:34??TPTest\article\Admin\Controller\ManagerController.class.php
?????文件???????1833??2016-04-09?21:10??TPTest\article\Admin\Controller\TypeController.class.php
?????文件??????????1??2016-04-06?20:04??TPTest\article\Admin\index.html
?????文件????????633??2016-04-10?10:02??TPTest\article\Admin\Model\ArticleModel.class.php
?????文件??????????1??2016-04-06?20:04??TPTest\article\Admin\Model\index.html
?????文件????????792??2016-04-09?10:24??TPTest\article\Admin\Model\ManagerModel.class.php
?????文件????????365??2016-04-08?22:18??TPTest\article\Admin\Model\TypeModel.class.php
?????文件???????2211??2014-06-22?18:52??TPTest\article\Admin\Public\css\admin.css
?????文件????????576??2014-06-22?18:52??TPTest\article\Admin\Public\css\mine.css
?????文件???????5648??2014-06-22?18:53??TPTest\article\Admin\Public\css\User_Login.css
?????文件??????33156??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174034-58977.jpg
?????文件???????6680??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174034-97960.jpg
?????文件??????31432??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174248-28718.jpg
?????文件???????6460??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174248-87501.jpg
?????文件??????18225??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174346-31424.jpg
?????文件???????4337??2014-06-22?18:52??TPTest\article\Admin\Public\img\20121018-174346-54660.jpg
?????文件???????4332??2014-06-22?18:52??TPTest\article\Admin\Public\img\20121018-174455-10118.jpg
?????文件??????18554??2014-06-22?18:53??TPTest\article\Admin\Public\img\20121018-174455-91962.jpg
?????文件???????1921??2014-06-22?18:52??TPTest\article\Admin\Public\img\admin.png
?????文件???????4386??2014-06-22?18:52??TPTest\article\Admin\Public\img\admin_p.gif
?????文件????????300??2014-06-22?18:52??TPTest\article\Admin\Public\img\bt_login.gif
............此處省略631個文件信息
- 上一篇:PHP仿土巴兔裝修報價器源碼.zip
- 下一篇:ThinkPHP5控制器從入門到精通
評論
共有 條評論