资源简介
做的一个基于tp框架的评论和回复的小例子(支持多级),有需要的话可以看一下,欢迎提出改进意见建议

代码片段和文件信息
/***********************************************************************
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 < len; 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 - 7) || (m > n - 4)) return NULL;
n = m;
}
result = (unsigned char *)emalloc(n + 1);
for (i = 0; i < n; 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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2890 2017-01-03 20:13 t_comment.sql
文件 174 2015-05-10 16:26 test\.buildpath
文件 210 2015-01-28 15:46 test\.htaccess
文件 517 2015-05-10 16:26 test\.project
文件 83 2015-05-10 16:26 test\.settings\org.eclipse.php.core.prefs
文件 85 2015-05-10 16:26 test\.settings\org.eclipse.php.debug.core.Debug_Process_Preferences.prefs
文件 73 2015-05-10 16:26 test\.settings\org.eclipse.php.server.core.phpServersPrefs.prefs
文件 1 2015-05-10 16:44 test\app\Common\Common\index.html
文件 50 2015-05-10 16:44 test\app\Common\Conf\config.php
文件 1 2015-05-10 16:44 test\app\Common\Conf\index.html
文件 207 2015-05-10 20:41 test\app\Common\data\table.sql
文件 1 2015-05-10 16:44 test\app\Common\index.html
文件 1 2015-05-10 16:44 test\app\Home\Common\index.html
文件 232 2015-05-10 17:05 test\app\Home\Conf\config.php
文件 1 2015-05-10 16:44 test\app\Home\Conf\index.html
文件 1 2015-05-10 16:44 test\app\Home\Controller\index.html
文件 2871 2017-01-03 19:54 test\app\Home\Controller\IndexController.class.php
文件 1 2015-05-10 16:44 test\app\Home\index.html
文件 89 2015-05-10 17:16 test\app\Home\Model\CommentModel.class.php
文件 1 2015-05-10 16:44 test\app\Home\Model\index.html
文件 6724 2017-01-03 20:12 test\app\Home\View\Index\index.html
文件 315 2017-01-03 19:50 test\app\Home\View\Index\replyComment.html
文件 7624 2017-01-03 20:12 test\app\Runtime\Cache\Home\2bc71d220ff77e6b12bf354b9e8a67ea.php
文件 392 2017-01-03 19:59 test\app\Runtime\Cache\Home\49d593ccfd5e7319b6a201bb2f43c311.php
文件 1652 2017-01-03 20:00 test\app\Runtime\Cache\Home\7b45bcf73d182b18a0580b6c19f39823.php
文件 706 2015-05-10 16:44 test\app\Runtime\Cache\Home\b39761fdd01eadcd4b8a82f371520558.php
文件 10090 2015-05-12 23:31 test\app\Runtime\Cache\Home\c615badf64b242fe8722435b0a8401cf.php
文件 1 2015-05-10 16:44 test\app\Runtime\Cache\Home\index.html
文件 1 2015-05-10 16:44 test\app\Runtime\Cache\index.html
文件 1 2015-05-10 16:44 test\app\Runtime\Data\index.html
............此处省略480个文件信息
相关资源
- 关于Chern–Simons修正重力场中Taub
- 对论文“重新审视-狄拉克振荡器
- 语料库.zip
- 晨风QQ机器人破解版
- AI Challenger用户评论情感分析
- AI Challenger 细粒度用户评论情感分析
- 关于在AdS / cft中旋转OPE块的评论
- 数学建模美国赛2004MCM-A Faster QuickPas
- 用R语言进行电影评论挖掘
- 乐享新浪微博刷评论软件v1.25中文绿色
- STM32F单片机与SIM900A的硬件条件下读一
- 简单评论回复小程序
- 情感分析评论训练数据
- 中文情感分析 语料数据 酒店评论
- 新浪微博评论语料
- 谭松波-酒店评论语料-UTF-810000条
- 谭松波-酒店评论语料-utf8gb 两种格式
- Sentiment Analysis and Opinion Mining_BingLiu
- 通过webbrowser文件看评论酌情
- 电磁场与电磁波 第二版 David K Chen
- 华科834历年真题看评论酌情
- 简单仿微信朋友圈评论功能
- 路由按需加载react论坛提问回复功能基
- 5款Unity3D制作的小游戏,新手必备看评
- 水淼·电商评论采集器v1.5.7.0 破解版
- 贝叶斯模型LDA贝叶斯算法实现的电商
- 情感分析语料-谭松波酒店评论语料
- e语言-58自动回复招聘方源码 websocke
- 抖音自动评论引流脚本
- Vue简单评论组件代码
评论
共有 条评论