至尊版全插件,完美无错运营。 包含全套安装部署,小程序,app打包教程。 全套vue代码,小程序新版可以获取头像, 配送商家小程序是有音乐提醒二次开发强化的版本。 截图:
贴一段代码片段:
<?php
/**
* [WeEngine System] Copyright (c) 2013 WE7.CC
* $sn$
*/
define('IN_IA', true);
define('IN_MOBILE', true);
define('STARTTIME', microtime());
define('IA_ROOT', str_replace("\\", '/', dirname(dirname(__FILE__))));
define('MAGIC_QUOTES_GPC', (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) || @ini_get('magic_quotes_sybase'));
define('TIMESTAMP', time());
$_W = $_GPC = array();
$configfile = IA_ROOT . "/data/config.php";
if(!file_exists($configfile)) {
exit(json_encode(ierror(-1, '获取站点配置文件失败')));
}
require $configfile;
require IA_ROOT . '/framework/version.inc.php';
require IA_ROOT . '/framework/const.inc.php';
require IA_ROOT . '/framework/class/loader.class.php';
load()->func('global');
load()->func('compat');
load()->func('pdo');
load()->classs('db');
load()->classs('account');
load()->model('cache');
load()->model('account');
load()->model('setting');
load()->func('communication');
define('CLIENT_IP', getip());
$_W['config'] = $config;
$_W['config']['db']['tablepre'] = !empty($_W['config']['db']['master']['tablepre']) ? $_W['config']['db']['master']['tablepre'] : $_W['config']['db']['tablepre'];
$_W['timestamp'] = TIMESTAMP;
$_W['charset'] = $_W['config']['setting']['charset'];
$_W['clientip'] = CLIENT_IP;
unset($configfile, $config);
// 附件地址绝对路径
define('ATTACHMENT_ROOT', IA_ROOT .'/attachment/');
define('DEVELOPMENT', $_W['config']['setting']['development'] == 1);
if(DEVELOPMENT) {
ini_set('display_errors', '1');
error_reporting(E_ALL ^ E_NOTICE);
} else {
error_reporting(0);
}
if(!in_array($_W['config']['setting']['cache'], array('mysql', 'file', 'memcache'))) {
$_W['config']['setting']['cache'] = 'mysql';
}
load()->func('cache');
if(function_exists('date_default_timezone_set')) {
date_default_timezone_set($_W['config']['setting']['timezone']);
}
if(!empty($_W['config']['memory_limit']) && function_exists('ini_get') && function_exists('ini_set')) {
if(@ini_get('memory_limit') != $_W['config']['memory_limit']) {
@ini_set('memory_limit', $_W['config']['memory_limit']);
}
}
|