wemall开源商城免费商城系统部分代码,下面分享部分代码,供学习者学习;
开源版把install文件夹下的install.lock删除之后可进行自动安装
后台访问地址:http://
前台访问地址:http:// index.php?m=App&c=Index&a=index
菜单管理:click类型时不设置URL,点击事件为BUY,可触发自定义回复,view类型可设置url,点击类型不设置
url是前台访问地址:http:// index.php?m=App&c=Index&a=index
index.php
-
<?php
-
-
// 应用入口文件
-
-
// 检测PHP环境
-
if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !');
-
-
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
-
define('APP_DEBUG',True);
-
define('APP_VERSION', '3.5.2');
-
define('APP_VERSION_TIME', '2016.10.15');
-
// 定义应用目录
-
define('APP_PATH','./Application/');
-
define('PUBLIC_PATH', './Public/');
-
-
/**
-
* 系统安装及开发模式检测
-
*/
-
if (!file_exists('./Install/install.lock')) {
-
header('Location: ./Install/index.php');
-
exit ();
-
}
-
-
include "vendor/autoload.php";
-
// 引入ThinkPHP入口文件
-
require './ThinkPHP/ThinkPHP.php';
Index_index.html
autoload_real.php
-
<?php
-
-
// autoload_real.php @generated by Composer
-
-
class ComposerAutoloaderInitcffe19dda1006f05515659a276e2fc8b
-
{
-
private static $loader;
-
-
public static function loadClassLoader($class)
-
{
-
if ('Composer\Autoload\ClassLoader' === $class) {
-
require __DIR__ . '/ClassLoader.php';
-
}
-
}
-
-
public static function getLoader()
-
{
-
if (null !== self::$loader) {
-
return self::$loader;
-
}
-
-
spl_autoload_register(array('ComposerAutoloaderInitcffe19dda1006f05515659a276e2fc8b', 'loadClassLoader'), true, true);
-
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
-
spl_autoload_unregister(array('ComposerAutoloaderInitcffe19dda1006f05515659a276e2fc8b', 'loadClassLoader'));
-
-
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION');
-
if ($useStaticLoader) {
-
require_once __DIR__ . '/autoload_static.php';
-
-
call_user_func(\Composer\Autoload\ComposerStaticInitcffe19dda1006f05515659a276e2fc8b::getInitializer($loader));
-
} else {
-
$map = require __DIR__ . '/autoload_namespaces.php';
-
foreach ($map as $namespace => $path) {
-
$loader->set($namespace, $path);
-
}
-
-
$map = require __DIR__ . '/autoload_psr4.php';
-
foreach ($map as $namespace => $path) {
-
$loader->setPsr4($namespace, $path);
-
}
-
-
$classMap = require __DIR__ . '/autoload_classmap.php';
-
if ($classMap) {
-
$loader->addClassMap($classMap);
-
}
-
}
-
-
$loader->register(true);
-
-
return $loader;
-
}
-
}
开源商城免费商城系统下载地址:
wemall 开源微商城 ,微信商城,商城源码,三级分销,微生鲜,微水果,微外卖,微订餐---专业的o2o系统
wemall地址:
代码来源:
阅读(717) | 评论(0) | 转发(0) |