|
我们为了满足开发者对历史数据导入的需求,所以在中放置了钩子,那么今天我们就来仔细描述下如何使用:
- case 'import':
- $infiles = array('install_import_data');
- CheckModule($pname,$infiles);
- cpmsg(unie('⑥数据导入及临时文件创建'), "{$insurl}&step=ok", 'loading');
- break;
复制代码 文件必须放置在
文件夹中且文件命名规则必须含有同时我们也在install文件中放置了案例:
- <?php
- /*
- * CopyRight : [Discuz!] (C)2001-2099 HaoTeam Inc.
- * Document : install_xx.php
- * Created on : 2014-3-20,19:54:48
- * Author : 51漂泊(51piaobo) www.51piaobo.com $
- * Description: This is NOT a freeware, use is subject to license terms.
- * 这即使是一个免费软件,使用时也请遵守许可证条款,得到当时人书面许可。
- * 未经书面许可,不得翻版,翻版必究;版权归属51漂泊;
- */
- if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
- exit('Access Denied');
- }
- $sql1 = <<< EOF
- EOF;
- runquery($sql1);
- ?>
复制代码 |
|