网站推广-网站优化-合肥久飞SEO论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7652|回复: 0

Shopex最新版去版权

[复制链接]
发表于 2014-5-11 14:08:25 | 显示全部楼层 |阅读模式
声明:公开方法丝毫没有不尊重ShopEX团队劳动成果之意,冒犯之处请ShopEX团队多多海涵。还请看过此法的网友自觉加上ShopEX的友链,毕竟人家辛苦开发的一个程序都免费提供给大家用了,还请大家不要吝啬一个友链!方法不是本人原创,是一次逛论坛的时候淘到的,关于ShopEX去版权的方法,网上提供了三种方法,第一、二两种办法是通过修改CSS样式实现,不是不行,只是偶尔会影响到系统,而且要一套一套模板修改,那多累啊。最简单高效的方法就是第三种了---直接改shopex里面的内部代码,但要用什么代码来修改呢?网上高手一直秘而不宣,个别穷得发疯的宵小竟要收费。我一直觉得互联网是大家的,互联网技术亦一样,不应该只掌握在几个人手上。在这里我们衷心感谢作者RM提供源码

一、方法指导:

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

二.覆盖代码:

  1. <?php

  2. /*********************/

  3. /* */

  4. /* Version : 5.1.0 */

  5. /* Author : RM */

  6. /* Comment : 071223 */

  7. /* */

  8. /*********************/


  9. function tpl_function_footer( $params, &$smarty )

  10. {

  11. global $system;

  12. $system =& $system;

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

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

  15. $data = unserialize( $tmpdata );

  16. $theme_dir = $system->base_url( )."themes/".$output->theme;

  17. echo $smarty->_fetch_compile_include( "shop:common/footer.html", array(

  18. "theme_dir" => $theme_dir,

  19. "certtext" => "<a href="http://www.miibeian.gov.cn/ " target="blank">".$system->getConf( "site.certtext" )."</a>",

  20. "mini_cart" => $system->getConf( "site.buy.target" ) == 3,

  21. "preview_theme" => $system->in_preview_theme,

  22. "im_setting" => $data,

  23. "system_url" => $system->base_url( ),

  24. "stateString" => "cron=".urlencode( $system->request['action']['controller'].":".$system->request['action']['method'] )."&p=".urlencode( $system->request['action']['args'][0] )

  25. ) );

  26. if ( constant( "SHOP_DEVELOPER" ) )

  27. {

  28. $html .= $system->_debugger['log'];

  29. }

  30. if ( $system->getConf( "shopex.wss.show" ) )

  31. {

  32. $wssjs = $system->getConf( "shopex.wss.js" );

  33. }

  34. if ( $system->getConf( "certificate.channel.status" ) )

  35. {

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

  37. $channel .= "</a>";

  38. }

  39. if ( $system->getConf( "site.shopex_certify" ) == 0 )

  40. {

  41. $ref = $_SERVER['HTTP_HOST'];

  42. $check = md5( $ref."ShopEx@Store" );

  43. $str = urlencode( $system->getConf( "certificate.str" ) );

  44. if ( !$str )

  45. {

  46. $str = urlencode( __( "无" ) );

  47. }

  48. if ( constant( "SAAS_MODE" ) )

  49. {

  50. $versionStr = "";

  51. }

  52. else

  53. {

  54. $versionStr = "v".$system->_app_version;

  55. }

  56. if ( $system->use_gzip )

  57. {

  58. $gzip = "enabled";

  59. }

  60. else

  61. {

  62. $gzip = "disabled";

  63. }

  64. $themeFoot = "<div class="themefoot">".$system->getConf( "system.foot_edit" )."</div>";

  65. $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;">";

  66. if ( $system->getConf( "certificate.auth_type" ) == "commercial" )

  67. {

  68. $greencard = $system->getConf( "store.greencard" );

  69. if ( !isset( $greencard ) || $greencard )

  70. {

  71. $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>";

  72. }

  73. }

  74. //$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">";

  75. //$PoweredStr .= "Powered by <b style="color:#5c719e">Shop</b><b style="color:#f39000">Ex</b>";

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

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

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

  79. if ( $channel )

  80. {

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

  82. }

  83. if ( $system->getConf( "site.certtext" ) )

  84. {

  85. $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>";

  86. }

  87. if ( $wssjs )

  88. {

  89. $PoweredStr .= "<span style="display:none">".$wssjs."</span>";

  90. }

  91. $PoweredStr .= "</div>";

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

  93. {

  94. $p = array( );

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

  96. {

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

  98. }

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

  100. $p = "";

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

  102. {

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

  104. }

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

  106. $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>";

  107. $PoweredStr .= $RSC_RPC_STR;

  108. }

  109. }

  110. return $html.$themeFoot.$PoweredStr;

  111. }


  112. ?>
复制代码

本文地址: https://jiufei.net/bbs/thread-11449-1-1.html
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|合肥网站优化,合肥百度优化,合肥网络推广,合肥SEO优化论坛 ( 皖ICP备2022014487号-2 )

GMT+8, 2025-1-31 11:27 , Processed in 0.053312 second(s), 15 queries , File On.

Powered by jiufei X3.4

© 2008-2020 www.jiufei.net

快速回复 返回顶部 返回列表