极品分享

去除shopex版权、后台未授权标示、向导内容

一、如何去除shopex后台的(未授权用户[免费] )文字

方法一:

shopex 打开:\core\admin\view\index.html

找到下面这段代码删除即可:

<span class="certiinfo" id="CertificateInfo">&nbsp;</span>

 

方法二:

首先找到根目录——》shopadmin文件夹——css文件——》shopadmin.css这个样式表。

查找到certiinfo,即.certiinfo{font-size:11px;padding:0 10px;color:#f90;font-weight:normal; } 加上display:none隐藏。那么你就看不到未授权免费这几个字样了。

 

二、如何修改shopex的后台向导内容?

修改向导就更简单了,纯粹的html,找到shopadmin\user_guide,里面就是那几个步骤,可以根据需要更改删除。

三、如何去除shopex版权信息?
 

直接改shopex里面的内部代码,也就是function.footer.php这个文件function.footer.php所在路径:core/include_v5/smartyplugins

用以下代码覆盖该文件中原有代码:
 

<?php

/*********************/

/* */

/* Version : 5.1.0 */

/* Author : RM */

/* Comment : 071223 */

/* */

/*********************/

 

function tpl_function_footer( $params, &$smarty )

{

global $system;

$system =& $system;

$output =& $system->loadModel( "system/frontend" );

$tmpdata = $system->getConf( "im.setting" );

$data = unserialize( $tmpdata );

$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,

"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] )

) );

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" ) )

{

$channel = $system->getConf( "certificate.channel.service" )."<a href=\"".$system->getConf( "certificate.channel.url" )."\" target=\"_blank\">".$system->getConf( "certificate.channel.name" );

$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 by <b style=\"color:#5c719e\">Shop</b><b style=\"color:#f39000\">Ex</b>";

//$PoweredStr .= "</a>";

//$PoweredStr .= "<span style=\"font-size:9px;\"> ".$versionStr."</span>";

//$PoweredStr .= "<span style=\"color:#999;display:none\"> |Gzip ".$gzip."</span> ";

if ( $channel )

{

$PoweredStr .= "
<span>".$channel."</span> ";

}

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>";

if ( $system->getConf( "site.rsc_rpc" ) && defined( "RSC_RPC" ) && ( $certificate = $system->getConf( "certificate.id" ) ) )

{

$p = array( );

foreach ( $runtime['path'] as $path )

{

$p[] = $path['title'];

}

$pageinfo['path'] = implode( $p, "/" );

$p = "";

foreach ( $pageinfo as $k => $v )

{

$p .= "&_".$k."=".urlencode( $v );

}

$p .= "&_time=".time( );

$RSC_RPC_STR = "<script>\r\n withBroswerStore(function(store){\r\n \r\n store.get(\"jsapi\",function(data){\r\n \r\n var script = document.createElement(\"script\");\r\n var _src = \"".RSC_RPC."/jsapi?certi_id=".$certificate.$p."&pt=".urlencode( $smarty->pagedata['request']['action']['controller'] ).":".urlencode( $smarty->pagedata['request']['action']['method'] )."&app=shopex(".$system->_app_version.")&uid=\"+(encodeURIComponent(Cookie.get(\"S[MEMBER]\") || \"\").split(\"-\")[0])+\"&ref=\"+encodeURIComponent(document.referrer)+\"&sz=\"+JSON.encode(window.getSize())+\"&hs=\"+encodeURIComponent(location.hash.slice(1))+\"&rt=\"+\$time();\r\n \r\n if(data){\r\n try{\r\n data = JSON.decode(data);\r\n }catch(e){}\r\n if(\$type(data)==\"object\"){\r\n _src +=\"&\"+Hash.toQueryString(data); \r\n }else if(\$type(data)==\"string\"){\r\n _src +=\"&\"+data; \r\n }\r\n }\r\n \r\n script.setAttribute(\"src\",_src);\r\n document.head.appendChild(script);\r\n document.head.removeChild(script);\r\n \r\n });\r\n \r\n \r\n });\r\n </script>";

$PoweredStr .= $RSC_RPC_STR;

}

}

return $html.$themeFoot.$PoweredStr;

}

 

?>

 

2012-03-06 0 /
其他
/
标签: 

评论回复

回到顶部