-
大小: 6.29MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-10-31
- 语言: PHP
- 标签: thinkphp2.1 源码
资源简介
thinkphp2.1 中文web应用开发框架 源码
代码片段和文件信息
/***********************************************************************
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);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 791144 2011-04-29 21:45 thinkphp中文web应用开发框架\Docs\ThinkPHP2.1 RBAC使用和示例操作.pdf
文件 2232704 2011-04-30 20:48 thinkphp中文web应用开发框架\Docs\ThinkPHP2.1 完全开发手册.pdf
文件 1373352 2011-04-30 21:02 thinkphp中文web应用开发框架\Docs\ThinkPHP2.1 常见问题&开发技巧.pdf
文件 80 2010-09-28 10:14 thinkphp中文web应用开发框架\Examples\Ajax\Conf\config.php
文件 881 2010-09-28 10:14 thinkphp中文web应用开发框架\Examples\Ajax\index.php
文件 1016 2010-09-28 10:14 thinkphp中文web应用开发框架\Examples\Ajax\Lib\Action\IndexAction.class.php
文件 486 2010-09-28 10:14 thinkphp中文web应用开发框架\Examples\Ajax\Lib\Model\FormModel.class.php
文件 4248 2010-09-30 09:55 thinkphp中文web应用开发框架\Examples\Ajax\Tpl\default\Index\index.html
文件 895 2010-09-30 15:32 thinkphp中文web应用开发框架\Examples\Autoindex\index.php
文件 19125 2010-10-13 15:37 thinkphp中文web应用开发框架\Examples\Blog\Common\common.php
文件 428 2010-10-09 22:12 thinkphp中文web应用开发框架\Examples\Blog\Conf\config.php
文件 850 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\index.php
文件 58 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Action\AttachAction.class.php
文件 11798 2010-10-13 15:37 thinkphp中文web应用开发框架\Examples\Blog\Lib\Action\BlogAction.class.php
文件 955 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Action\CategoryAction.class.php
文件 470 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Action\IndexAction.class.php
文件 15044 2010-10-16 11:57 thinkphp中文web应用开发框架\Examples\Blog\Lib\Action\PublicAction.class.php
文件 702 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Model\BlogModel.class.php
文件 296 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Model\BlogViewModel.class.php
文件 172 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Model\CategoryModel.class.php
文件 919 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\Model\CommentModel.class.php
文件 25807 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\Date.class.php
文件 15709 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\Dir.class.php
文件 16043 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\Http.class.php
文件 22864 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\Image.class.php
文件 9974 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\IpLocation.class.php
文件 5788 2010-09-28 10:15 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\Page.class.php
文件 13122 2010-09-28 17:31 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\String.class.php
文件 23395 2010-10-16 11:57 thinkphp中文web应用开发框架\Examples\Blog\Lib\ORG\UploadFile.class.php
文件 9295 2010-10-13 15:37 thinkphp中文web应用开发框架\Examples\Blog\Tpl\default\Blog\add.html
............此处省略1783个文件信息
评论
共有 条评论