资源简介
支持上传图片带背景音乐版-程序员小店表白墙程序源码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 中文帮助
相关资源
- SgExam.zip
- DHT11温湿度.rar
- 5124386zofui_taskself.zip
- 6001760stm32串口模拟.zip
- 力软敏捷开发框架V7.0开发文档.chm
- Multisim实用基础入门教程——初学者福
- 现代控制工程第五版.pdf
- openvpn_62512.zip
- 最新抽奖助手5.2.5.zip
- K8飞刀20150412BadUSB专版[K.8].rar
- qq33q_10660147.zip
- syncnavigator-7-5-1.zip
- 管家婆辉煌ⅡTOP12.6不带+版五版通用
- 20160929110051981.rar
- 42ecaca3f026d87b4259a104662d79f3.zip
- First-orderMethodsinOptimization.pdf
- Desktop(1).zip
- OpManager12.3企业版64位+操作文档.rar
- ES6标准入门第二版.pdf
- 高效能人士的七个习惯30周年纪念版
- 牛牛数据处理器C3.rar
- GPS定位系统源码.rar
- SpeedPan1.8.1.137.zip
- 1eee4289cab6f06caa107554884b622c.rar
- 第十五届五一赛优秀论文.rar
- DiskGenius4.3专业版真正绿色破解.rar
- md380_C_org_q.zip
- Hibernate4.1.1中文文档.rar
- IEC61850Server.zip
- TheGreenBowIPSecVPNClient5.55ANDKeyGen.zip
评论
共有 条评论