资源简介
这是一个php的招聘网站项目源码,容易看懂,适合初学者学习。
代码片段和文件信息
/***********************************************************************
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);
k = xxtea_to_long_array(key 16 0 &k_len);
xxtea_long_encrypt(v v_len k);
result
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 100 2014-12-01 16:49 招聘网站\readme.txt
文件 203 2014-11-06 01:07 招聘网站\SML\.htaccess
I.A.... 557 2014-11-14 22:41 招聘网站\SML\.project
文件 1030 2014-11-06 01:07 招聘网站\SML\admin.php
I.A.... 1 2014-11-12 10:23 招聘网站\SML\Application\Admin\Common\index.html
I.A.... 1602 2014-11-24 16:59 招聘网站\SML\Application\Admin\Conf\config.php
I.A.... 1 2014-11-12 10:23 招聘网站\SML\Application\Admin\Conf\index.html
I.A.... 1525 2014-11-23 23:13 招聘网站\SML\Application\Admin\Controller\BringinController.class.php
I.A.... 629 2014-11-14 22:49 招聘网站\SML\Application\Admin\Controller\CommonController.class.php
I.A.... 1884 2014-11-14 22:49 招聘网站\SML\Application\Admin\Controller\DetailController.class.php
I.A.... 4704 2014-11-25 20:32 招聘网站\SML\Application\Admin\Controller\EnterpriseController.class.php
I.A.... 1 2014-11-12 10:23 招聘网站\SML\Application\Admin\Controller\index.html
I.A.... 1262 2014-11-19 20:59 招聘网站\SML\Application\Admin\Controller\IndexController.class.php
I.A.... 1298 2014-11-12 10:23 招聘网站\SML\Application\Admin\Controller\LoginController.class.php
I.A.... 3631 2014-11-12 10:23 招聘网站\SML\Application\Admin\Controller\RbacController.class.php
I.A.... 2298 2014-11-12 10:23 招聘网站\SML\Application\Admin\Controller\RecruitController.class.php
I.A.... 820 2014-11-24 16:43 招聘网站\SML\Application\Admin\Controller\ResumeController.class.php
I.A.... 1877 2014-11-14 22:49 招聘网站\SML\Application\Admin\Controller\SimpleController.class.php
I.A.... 9063 2014-11-25 20:32 招聘网站\SML\Application\Admin\Controller\SortController.class.php
I.A.... 1138 2014-11-24 16:43 招聘网站\SML\Application\Admin\Controller\UserController.class.php
I.A.... 1981 2014-11-14 22:49 招聘网站\SML\Application\Admin\Controller\VdetailController.class.php
I.A.... 1988 2014-11-14 22:49 招聘网站\SML\Application\Admin\Controller\VipController.class.php
I.A.... 2194 2014-11-25 20:32 招聘网站\SML\Application\Admin\Controller\ViplistController.class.php
I.A.... 1 2014-11-12 10:23 招聘网站\SML\Application\Admin\index.html
I.A.... 1 2014-11-12 10:23 招聘网站\SML\Application\Admin\Model\index.html
I.A.... 279 2014-11-12 10:23 招聘网站\SML\Application\Admin\Model\NodeModel.class.php
I.A.... 3455 2014-11-24 22:40 招聘网站\SML\Application\Admin\View\Bringin\index.html
I.A.... 2809 2014-11-24 16:43 招聘网站\SML\Application\Admin\View\Bringin\minute.html
I.A.... 3678 2014-11-20 21:59 招聘网站\SML\Application\Admin\View\Enterprise\add.html
I.A.... 0 2014-11-25 20:32 招聘网站\SML\Application\Admin\View\Enterprise\del.html
............此处省略1201个文件信息
相关资源
- PHP项目开发案例全程实录-源代码
- 十大精典PHP项目开发全程案例 CD源码
- php项目驾考通项目源码
- 深入体验PHP项目开发
- 十大精典PHP项目开发全程案例 源码十
- PHP项目开发案例全程实录第2版-源代码
- 深入体验PHP项目开发 书本案例
- [PHP项目开发案例全程实录]
- 实战突击 PHP项目开发案例整合
- php项目开发1200例
- php项目开发案例整合
- 实战突击 PHP项目开发案例整合.pdf
- 设计模式之PHP项目应用策略模式:商
- PHP--传智播客最新最全的教学视频,从
- 2018最新PHP零基础入门到原生项目实战
- PHP框架之ThinkPHP项目案例源码
- 《PHP项目开发案例全程实录》随书源
- PHP项目开发案例整合-配套源码
- 实战突击:PHP项目开发案例整合-配套
评论
共有 条评论