2018年04月6日网站服务器迁移完成……

shopex 485 去版权方法

shopex 苏 demo 2213℃ 0评论

shopex 485 去版权方法

第一种方法:找到 \core\include_v5\smartyplugins\function.footer.php 打开:

<?php
function tpl_function_footer($params, &$smarty)
{
$system = &$GLOBALS[‘system’];
$output = &$system->loadModel(‘system/frontend’);
$tmpdata = $system->getConf(“im.setting”);
$data = unserialize($tmpdata);
$appmgr = $system->loadModel(‘system/appmgr’);
if($appmgr->openid_loglist()){
$open_id_login = true;
}else{
$open_id_login = false;
}

$theme_dir = $system->base_url().‘themes/’.$output->theme;
echo $smarty->_fetch_compile_include(‘shop:common/footer.html’,array(‘theme_dir’=>$theme_dir,‘certtext’=>‘<a href=”http://www.miibeian.gov.cn/ ” target=”blank”>’.$system->getConf(‘site.certtext’).‘</a>’,
‘mini_cart’=>($system->getConf(‘site.buy.target’)==3),
‘passport_login’=>$system->getConf(‘plugin.passport.config.current_use’),
‘preview_theme’=>$system->in_preview_theme,
‘im_setting’=>$data,
‘system_url’=>$system->base_url(),
‘stateString’=>‘cron=’.urlencode($system->request[‘action’][‘controller’].‘:’.
$system->request[‘action’][‘method’]).‘&p=’.urlencode($system->request[‘action’][‘args’][0]),‘certi_id’=>$system->getConf(‘certificate.id’),‘openid_lg_url’=>urlencode($system->base_url()),‘openid_open’=>$open_id_login,
‘cront’=>unserialize($system->getConf(“system.crontab_queue”)),
)
);

if(constant(‘SHOP_DEVELOPER’)){
$html .= $system->_debugger[‘log’];
}

if($system->getConf(‘shopex.wss.show’)) {
$wssjs=$system->getConf(‘shopex.wss.js’);
}

if($system->getConf(‘certificate.channel.status’) && $system->getConf(‘certificate.channel.status’)===true){
$channel = $system->getConf(‘certificate.channel.service’).‘<a href=”‘.$system->getConf(‘certificate.channel.url’).‘” target=”_blank”>’.$system->getConf(‘certificate.channel.name’);
$channel =$channel.‘</a>’;
}

if($system->getConf(‘site.shopex_certify’)==0){
//站点底部
$ref = $_SERVER[‘HTTP_HOST’];
$check = md5($ref.‘ShopEx@Store’);
$str = urlencode($system->getConf(‘certificate.str’));
if(!$str){
$str = urlencode(__(‘无’));
}
if(constant(‘SAAS_MODE’)){
$versionStr=;
}else{
$versionStr=‘v’.$system->_app_version;
}

if($system->use_gzip) {
$gzip = ‘enabled’;
} else {
$gzip = ‘disabled’;
}

$themeFoot=‘<div class=”themefoot”>’.$system->getConf(‘system.foot_edit’).‘</div>’;

$PoweredStr=‘<div style=”font-family:Verdana;line-height:20px!important;height:auto!important;font-size:11px!important;text-align:center;overflow:none!important;text-indent:0!important;”>’;

if ($system->getConf(‘certificate.auth_type’)==“commercial”){
$greencard = $system->getConf(‘store.greencard’);
if (!isset($greencard)||$greencard)
$PoweredStr.=“<a href=’http://service.shopex.cn/show/certinfo.php?certi_id=”.$system->getConf(‘certificate.id’).“&url=”.rawurlencode($system->base_url()).“‘ target=’_blank’><img src=’statics/bottom-authorize.gif’></a><br>”;
}

$PoweredStr.=‘<a href=”http://store.shopex.cn/rating/store_detail.php?ref=’.$ref.‘&check=’.$check.‘&str=’.$str.‘” target=”_blank” style=”color:#666;text-decoration:none;cursor:pointer”>’;
$PoweredStr.=‘Powered&nbsp;by&nbsp;<b style=”color:#5c719e”>Shop</b><b style=”color:#f39000″>Ex</b>’;
$PoweredStr.=‘</a>’;
$PoweredStr.=‘<span style=”font-size:9px;”>&nbsp;’.$versionStr.‘</span>’;
$PoweredStr.=‘<span style=”color:#999;display:none”>&nbsp|Gzip ‘.$gzip.‘</span>&nbsp;’;
if($channel){
$PoweredStr.=‘<br/><span>’.$channel.‘</span>&nbsp;’;
}
if($system->getConf(‘site.certtext’)){
$PoweredStr.=‘<a href=”http://www.miibeian.gov.cn/” target=”blank” style=”color:#666;text-decoration:none;cursor:pointer;display:block;” class=”textcenter”>’.$system->getConf(‘site.certtext’).‘</a>’;
}
if($wssjs){
$PoweredStr.=‘<span style=”display:none”>’.$wssjs.‘</span>’;
}
$PoweredStr.=‘</div>’;
$PoweredStr = ;//去版权

$themeFoot = ”;//增加此处,不然页面底部出现一大块空白
}

return $html.$themeFoot.$PoweredStr;
}

?>

然后将 $PoweredStr 变量进行修改。设为你想要的结果即可。

第二种方法就是非常非常的easy啦。找到模版目录或这你的core/shop/view/common/footer.html里进行简单的修改。
例如在 模版目录 themes/block/ 找到你的footer.html
将 <{$footer}> 这一段代码删除即可。
PS:如果您感觉此文对您有帮助,请帮忙点击 文章 右侧的广告位,支持一下博主,谢谢!
打赏

转载请注明:苏demo的别样人生 » shopex 485 去版权方法

   如果本篇文章对您有帮助,欢迎向博主进行赞助,赞助时请写上您的用户名。
支付宝直接捐助帐号oracle_lee@qq.com 感谢支持!
喜欢 (0)or分享 (0)
发表我的评论
取消评论
表情