1 Star 0 Fork 0

moz / jhs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
site.php 1.20 KB
一键复制 编辑 原始数据 按行查看 历史
Anjou 提交于 2018-12-16 23:03 . 嘉和晟商城_2018-12-16
<?php
if (!(defined('IN_IA'))) {
exit('Access Denied');
}
if (!(function_exists('getIsSecureConnection'))) {
function getIsSecureConnection()
{
if (isset($_SERVER['HTTPS']) && (('1' == $_SERVER['HTTPS']) || ('on' == strtolower($_SERVER['HTTPS'])))) {
return true;
}
if (isset($_SERVER['SERVER_PORT']) && ('443' == $_SERVER['SERVER_PORT'])) {
return true;
}
return false;
}
}
if (function_exists('getIsSecureConnection')) {
$secure = getIsSecureConnection();
$http = (($secure ? 'https' : 'http'));
$_W['siteroot'] = ((strexists($_W['siteroot'], 'https://') ? $_W['siteroot'] : str_replace('http', $http, $_W['siteroot'])));
}
require_once IA_ROOT . '/addons/ewei_shopv2/version.php';
require_once IA_ROOT . '/addons/ewei_shopv2/defines.php';
require_once EWEI_SHOPV2_INC . 'functions.php';
class Ewei_shopv2ModuleSite extends WeModuleSite
{
public function getMenus()
{
global $_W;
return array(
array('title' => '管理后台', 'icon' => 'fa fa-shopping-cart', 'url' => webUrl())
);
}
public function doWebWeb()
{
m('route')->run();
}
public function doMobileMobile()
{
m('route')->run(false);
}
public function payResult($params)
{
return m('order')->payResult($params);
}
}
?>
HTML
1
https://gitee.com/git-tao/jhs.git
git@gitee.com:git-tao/jhs.git
git-tao
jhs
jhs
master

搜索帮助