资源简介
think_demo.rar
代码片段和文件信息
/***********************************************************************
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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 66 2016-06-11 09:49 think_demo\Admin\Conf\config.php
文件 319 2016-06-13 09:33 think_demo\Admin\Lib\Action\CommonAction.class.php
文件 160 2016-06-13 08:12 think_demo\Admin\Lib\Action\IndexAction.class.php
文件 1439 2016-06-12 15:06 think_demo\Admin\Lib\Action\LoginAction.class.php
文件 1233 2016-06-13 08:12 think_demo\Admin\Lib\Action\MenberAction.class.php
文件 1284 2016-06-13 08:12 think_demo\Admin\Lib\Action\OperateAction.class.php
文件 453 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\054bffbd73ec1412253fd9d4c980048d.php
文件 1191 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\20eabf8d43f497715f3e1a7ec1a2f00f.php
文件 1147 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\27e9c4fddbdacc085a84cce69c1ba206.php
文件 2094 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\354b89d315b9f63e23d50527766707dc.php
文件 705 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\46aff8ecab50f44c3ff70f1d1757a663.php
文件 1619 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\a044aee67b94fc6aa1c6b378aa2b4715.php
文件 1936 2016-06-13 08:06 think_demo\Admin\Runtime\Cache\b2031c384b7a6f237585fe09def724f7.php
文件 1711 2016-06-13 08:06 think_demo\Admin\Runtime\Cache\b5ffc36faf541d14d12aea34439e61b9.php
文件 443 2016-06-13 09:33 think_demo\Admin\Runtime\Cache\f20f5d5076810b0593080293c13747c1.php
文件 2104598 2016-06-12 22:55 think_demo\Admin\Runtime\Logs\1465743355-16_06_12.log
文件 1041042 2016-06-12 23:01 think_demo\Admin\Runtime\Logs\16_06_12.log
文件 1904966 2016-06-13 09:33 think_demo\Admin\Runtime\Logs\16_06_13.log
文件 404 2016-06-12 15:07 think_demo\Admin\Tpl\Index\bottom.html
文件 412 2016-06-12 15:09 think_demo\Admin\Tpl\Index\content.html
文件 1150 2016-06-12 14:47 think_demo\Admin\Tpl\Index\index.html
文件 0 2016-06-12 15:10 think_demo\Admin\Tpl\Index\menber.html
文件 662 2016-06-13 09:29 think_demo\Admin\Tpl\Index\menu.html
文件 0 2016-06-12 15:10 think_demo\Admin\Tpl\Index\post_audit.html
文件 0 2016-06-12 15:10 think_demo\Admin\Tpl\Index\post_del.html
文件 2044 2016-06-12 14:54 think_demo\Admin\Tpl\Index\top.html
文件 1106 2016-06-12 14:32 think_demo\Admin\Tpl\Login\login.html
文件 1543 2016-06-12 16:35 think_demo\Admin\Tpl\Menber\show.html
文件 1742 2016-06-12 22:42 think_demo\Admin\Tpl\Operate\show.html
文件 208 2015-03-13 08:58 think_demo\admin.php
............此处省略697个文件信息
相关资源
- Ginkgo_USB-I2C_Classic_Setup_v2.9.2.zip
- backups-cos.zip
- 主从蓝牙配置及其使用.pdf
- 加载PPTUnity.unitypackage
- Spire.Doc和Spire.Xls集合_去水印破解版
- MobipocketCreator汉化版.zip
- 37g7j4.zip
- 基于list-mode数据的PET高分辨率重建算
- VM15安装MacOS10.14懒人版CDR版.docx
- DataStructures(ZJU).pdf
- 微信扫码支付ssm.rar
- P5WE0121UNLOCK.part01.rar
- KPMG网测-SHL测评-数字题答案及详解.
- 组态王6.53工程密码.rar
- 破解SIM卡.rar
- 基于QT的绘图软件.rar
- 电动汽车动力电池管理系统的研究_姜
- zw_xingzhengquhua_shp.zip
- 一款自动流向控制、宽接口电压的R
- lafmpw.pdf
- GBT33777-2017附网存储设备通用规范.pd
- china-basin2.rar
- 组合数学第5版_答案Richard.zip
- xumh40.rar
- 1046306网络人远程控制软件旗舰版V1.
- Axe_free_max_X64_12-19.rar
- WINCCV7.5免狗和谐补丁.zip
- 线性代数附册学习辅导与习题全解.
- 连连看辅助.rar
- DatComSetUp.rar
评论
共有 条评论