You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
872 B
23 lines
872 B
<?php
|
|
define('IN_STORE', true);
|
|
if(is_file('../wlversion.txt')){
|
|
$version = file_get_contents('../wlversion.txt');
|
|
define("MODULE_NAME",$version);
|
|
}else{
|
|
define("MODULE_NAME",'weliam_smartcity');
|
|
}
|
|
require '../framework/bootstrap.inc.php';
|
|
require_once IA_ROOT . "/addons/".MODULE_NAME."/core/common/defines.php";
|
|
require_once PATH_CORE . "common/autoload.php";
|
|
Func_loader::core('global');
|
|
load()->model('attachment');
|
|
|
|
$_W['catalog'] = 'web';
|
|
$_W['plugin'] = $plugin = !empty($_GPC['p']) ? $_GPC['p'] : 'dashboard';
|
|
$_W['controller'] = $controller = !empty($_GPC['ac']) ? $_GPC['ac'] : 'dashboard';
|
|
$_W['method'] = $method = !empty($_GPC['do']) ? $_GPC['do'] : 'index';
|
|
Func_loader::web('storecover');
|
|
$_W['wlsetting'] = Setting::wlsetting_load();
|
|
$_W['attachurl'] = attachment_set_attach_url();
|
|
|
|
wl_new_method($plugin, $controller, $method, $_W['catalog']);
|