function IndexbaseModule() { define_module(); Lang::load(module_lang('common')); $this->visitor =& env('visitor'); parent::__construct(); }
if (in_array($ver, $versions)) { $m['versions'][] = $ver; } } } $m['install'] = trim($_GPC['install']); $m['uninstall'] = trim($_GPC['uninstall']); $m['upgrade'] = trim($_GPC['upgrade']); if ($_FILES['icon'] && $_FILES['icon']['error'] == '0' && !empty($_FILES['icon']['tmp_name'])) { $m['icon'] = $_FILES['icon']['tmp_name']; } if ($_FILES['preview'] && $_FILES['preview']['error'] == '0' && !empty($_FILES['preview']['tmp_name'])) { $m['preview'] = $_FILES['preview']['tmp_name']; } $manifest = manifest($m); $mDefine = define_module($m); $pDefine = define_processor($m); $rDefine = define_receiver($m); $sDefine = define_site($m); $ident = strtolower($m['application']['identifie']); if ($_GPC['method'] == 'create') { $mRoot = IA_ROOT . "/source/modules/{$ident}"; if (file_exists($mRoot)) { message("目标位置 {$mRoot} 已存在, 请更换标识或删除现有内容. "); } mkdirs($mRoot); f_write("{$mRoot}/manifest.xml", $manifest); if ($mDefine) { f_write("{$mRoot}/module.php", $mDefine); } if ($pDefine) {
<?php include_once 'header.php'; ?> <body> <!-- Static navbar --> <?php include_once 'nav.php'; ?> <div class="container-fluid"> <div class="row-fluid"> <div class="col-sm-9 main"> <div class="marketing"> <?php url_routing(define_module()); ?> </div> </div> <!--Body content--> </div> <div class="col-sm-3 sidebar"> <!--Sidebar content--> <?php url_routing(define_module_sidebar()); ?> </div> </div>