资源简介
支持上传图片带背景音乐版-程序员小店表白墙程序源码V4.12.zip

代码片段和文件信息
/***********************************************************************
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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-03-08 20:15 Forlove\
目录 0 2018-03-08 20:15 Forlove\Common\
目录 0 2018-03-08 20:15 Forlove\Common\Common\
文件 1 2015-11-07 13:47 Forlove\Common\Common\index.html
目录 0 2018-03-08 20:15 Forlove\Common\Conf\
文件 50 2015-11-07 13:47 Forlove\Common\Conf\config.php
文件 1 2015-11-07 13:47 Forlove\Common\Conf\index.html
文件 1 2015-11-07 13:47 Forlove\Common\index.html
目录 0 2018-03-08 20:15 Forlove\Home\
目录 0 2018-03-08 20:15 Forlove\Home\Common\
文件 1 2015-11-07 13:47 Forlove\Home\Common\index.html
目录 0 2018-03-08 20:15 Forlove\Home\Conf\
文件 386 2017-03-27 20:58 Forlove\Home\Conf\config.php
文件 1 2015-11-07 13:47 Forlove\Home\Conf\index.html
目录 0 2018-03-08 20:15 Forlove\Home\Controller\
文件 3277 2017-03-26 22:07 Forlove\Home\Controller\AdminController.class.php
文件 5180 2018-03-08 20:09 Forlove\Home\Controller\IndexController.class.php
文件 1 2015-11-07 13:47 Forlove\Home\Controller\index.html
目录 0 2018-03-08 20:15 Forlove\Home\Model\
文件 336 2017-01-20 10:35 Forlove\Home\Model\MessageModel.class.php
文件 1 2015-11-07 13:47 Forlove\Home\Model\index.html
目录 0 2018-03-08 20:15 Forlove\Home\View\
目录 0 2018-03-08 20:15 Forlove\Home\View\Admin\
文件 916 2017-08-28 09:11 Forlove\Home\View\Admin\admin.html
文件 813 2017-08-28 09:12 Forlove\Home\View\Admin\iriguchi.html
文件 707 2017-08-28 09:12 Forlove\Home\View\Admin\ping.html
文件 1877 2017-08-28 09:12 Forlove\Home\View\Admin\siteconfig.html
目录 0 2018-03-08 20:59 Forlove\Home\View\Index\
文件 1290 2017-03-26 22:31 Forlove\Home\View\Index\about.html
文件 4627 2017-08-28 09:12 Forlove\Home\View\Index\dosearch.html
文件 5256 2018-03-08 20:59 Forlove\Home\View\Index\index.html
............此处省略464个文件信息
- 上一篇:计算机英语 机械工业出版社出版 原版+翻译
- 下一篇:fluent udf 中文帮助
相关资源
- 价值2k的H漫画小说系统
- Pythonamp;课堂amp;笔记(高淇amp;400;集第
- ddos压力测试工具99657
- UML建模大全
- 开源1A锂电池充电板TP4056原理图+PCB
- m1卡 ic卡可选择扇区初始化加密软件
- TSCC.exe
- FTP课程设计(服务端+客户端)
- 计算机图形学 边填充算法实现代码
- 电力系统潮流计算程序集合
- oracle数据迁移项目实施方案
- Web Api 通过文件流 文件到本地
- Visio图标-最新最全的网络通信图标库
- Spire API文档
- OpenGL参考手册
- Python中Numpy库最新教程
- SPD博士V5.3.exe
- 直流无刷电机方波驱动 stm32 例程代码
- layui后台管理模板
- 仿知乎界面小程序源代码
- 云平台-阿里云详细介绍
- photoshop经典1000例
- scratch垃圾分类源码(最终版本).sb
- IAR ARM 7.8破解
- TI CCS V5.4 安装步骤及破解文件
- 松下plc FP-XH的驱动
- 局域网硬件信息收集工具
- 加快Windows XP操作系统开机速度
- 联想启天M4350 BIOS升级文件
- 操作系统教程课后答案华中科技大学
评论
共有 条评论