Shopex技巧:去除shopex版权
这样做是有一些不厚道了,建议大家只是学一下方法,版权么还是保留着对你也没什么不好,好下面我们来去除版权这是原始代码,修改我加亮的部份就ok了,shop文件夹中的TPL_BOTTOM.php
这样做是有一些不厚道了,建议大家只是学一下方法,版权么还是保留着对你也没什么不好,好下面我们来去除版权
这是原始代码,修改我加亮的部份就ok了,shop文件夹中的TPL_BOTTOM.php
<?php
/**
*
* 页面底部模块文件
*
* @package ShopEx网上商店系统
* @version 4.6
* @author ShopEx.cn <develop@shopex.cn>
* @url http://www.shopex.cn/
* @since PHP 4.3
* @copyright ShopEx.cn
*
**/
if (!defined("ISSHOP"))
{
Header("Location:../index.php");
exit;
}
/* 实例商店支付方式类 */
$shopPayment = newclass("shopPayment");
$shopPayment->shopId = $INC_SHOPID;
$aliacount="";
$alibutton = 0;
$aliurl = "";
/* 判断是否有支付宝支付方式 */
if($shopPayment->getbyType("ALIPAY"))
{
$aliacount = $shopPayment->merId;
$alibutton = $shopPayment->button;
$wildSetup = newclass("wildSetup");
$arr = $wildSetup->decode($shopPayment->p_text);
/* 如果支付宝支付方式,需要显示联盟图片 */
if($arr['zfbunion']==1 && $alibutton>0 && isset($ALIPAY_INFO) && $aliacount!="")
{
$aliurl = "<br /><a href=\"http://www.alipay.com/\" target=\"_blank\"><img border=\"0\" src=\"".$INC_PAYBUTTON_URL."alipay_logo.gif\" alt=\"\" /></a>";
}
}
/* 实例即时通讯类 */
$IntegrateIm = newclass("IntegrateIm");
$IntegrateIm->shopId = $INC_SHOPID;
$IntegrateIm->showpage = "copyright";
/* 查询发布为页面底部的即时通讯在线状态按钮 */
$IntegrateIm->getList();
$strintegratim = "";
/* 读取组合即时通讯在线状态按钮 */
while($IntegrateIm->next()){
$strintegratim .= " ".$IntegrateIm->content;
}
/* 如果系统不是正式单店版本,并且需要显示版权信息,则生成显示内容 */
$shopSetup = newclass('shopSetup');
$shopSetup->shopId = $INC_SHOPID;
/*
if(LICENSE_4!="Formal"&&LICENSE_8==2&&!file_exists(dirname(__FILE__)."/../include/disable_copy.txt")) {
$mfcopyright = '';
$gen_id = $shopSetup->getValue('generalize_id');
if ($gen_id!=0) {
$strHref = "http://www.shopex.cn/r/{$gen_id}/";
} else {
$strHref = 'http://www.shopex.cn/';
}
$mfcopyright .= "<p align=center><a href=\"{$strHref}\" _fcksavedurl="\"{$strHref}\"" target=\"_blank\"><img src=\"{$INC_PAYBUTTON_URL}shopex_80-15.gif\" border=\"0\" alt=\"".$PROG_TAGS["ptag_powerby"]."\" /></a></p>";
} else {
$mfcopyright = "";
}
*/
/* 输出SHOPEX免费版POWERBY_BY图 */
$t->set_var("mfcopyright",$mfcopyright);
$checkStr = $shopSetup->getValue("license_certificate_str");
if($checkStr)
{
$str = urlencode($checkStr);
}
else
{
$str = urlencode("无");
}
if(strstr($_SERVER["HTTP_ACCEPT_ENCODING"],'gzip')&&strstr($_SERVER["HTTP_ACCEPT_ENCODING"],'deflate') &&function_exists('gzcompress')&&!(defined('SYS_GZIP')&&SYS_GZIP==false)) {
$gzipEnable = 'enabled';
} else {
$gzipEnable = 'disable';
}
$codeRunningTime = substr(getmicrotime()-$script_start_time,0,5);
$ref = $_SERVER['HTTP_HOST'];
$check = md5($ref.'ShopEx@Store');
$ptag_newpowerby=$PROG_TAGS["ptag_newpowerby"];
if ($frontShow->copyrightMode == 'copyright1.jpg') {
$copyright = <<<EOF
{$INC_COPYRIGHT}{$aliurl}<p>{$strintegratim}</p>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto; ">
<tr>
<td style="padding:0 10px 0 0;"><a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" target="_blank"><img src="syssite/dfiles/shopexstorelogo.jpg" /></a></td><td><table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto;line-height:16px">
<tr>
<td align="left"><a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" style="color:#999" target="_blank">{$ptag_newpowerby}</a></td>
</tr>
<tr>
<td align="left" style="font-size:9px; font-family:Verdana; color:#999;">Processed in {$codeRunningTime} second(s) </td>
</tr>
<tr>
<td align="left" valign="top" style="font-size:9px; font-family:Verdana; color:#999;">Gzip {$gzipEnable}</td>
</tr>
</table></td>
</tr>
</table>
EOF;
} else {
$copyright = <<<EOF
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="line-height:14px">
<tr>
<td width="200" style="padding:0 5px; border-right:1px solid #ddd"><a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" target="_blank"><img src="syssite/dfiles/shopexstorelogo.jpg" /></a></td>
<td rowspan="3" style="padding:0; vertical-align:top;">{$INC_COPYRIGHT}{$aliurl}<p>{$strintegratim}</p></td>
</tr>
<tr>
<td style="color:#666; font-size:12px; text-align:center;padding:0 5px;border-right:1px solid #ddd;vertical-align:top;">
<a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" style="color:#999" target="_blank">{$ptag_newpowerby}</a>
</td>
</tr>
<tr>
<td style="color:#999; font-size:9px; font-family:Verdana;text-align:center;padding:0 5px ;border-right:1px solid #ddd;vertical-align:top;"">Processed in {$codeRunningTime} second(s)<br />
Gzip {$gzipEnable}. </td>
</tr>
</table>
EOF;
}
/* 输出版权信息,并将ALIPAY按钮 和 即时通讯在线状态按钮一起输出 */
$t->set_var("copyright",$copyright);
/* 输出ICP备案证信息 */
$t->set_var("certinfo", "<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\">".$shopinfo->certtext."</a>");
?>
这是我修改过的,如果你觉得不方便,直接copy下就行了
<?php
/**
*
* 页面底部模块文件
*
* @package ShopEx网上商店系统
* @version 4.6
* @author ShopEx.cn <develop@shopex.cn>
* @url http://www.shopex.cn/
* @since PHP 4.3
* @copyright ShopEx.cn
*
**/
if (!defined("ISSHOP"))
{
Header("Location:../index.php");
exit;
}
/* 实例商店支付方式类 */
$shopPayment = newclass("shopPayment");
$shopPayment->shopId = $INC_SHOPID;
$aliacount="";
$alibutton = 0;
$aliurl = "";
/* 判断是否有支付宝支付方式 */
if($shopPayment->getbyType("ALIPAY"))
{
$aliacount = $shopPayment->merId;
$alibutton = $shopPayment->button;
$wildSetup = newclass("wildSetup");
$arr = $wildSetup->decode($shopPayment->p_text);
/* 如果支付宝支付方式,需要显示联盟图片 */
if($arr['zfbunion']==1 && $alibutton>0 && isset($ALIPAY_INFO) && $aliacount!="")
{
$aliurl = "<br /><a href=\"http://www.alipay.com/\" target=\"_blank\"><img border=\"0\" src=\"".$INC_PAYBUTTON_URL."alipay_logo.gif\" alt=\"\" /></a>";
}
}
/* 实例即时通讯类 */
$IntegrateIm = newclass("IntegrateIm");
$IntegrateIm->shopId = $INC_SHOPID;
$IntegrateIm->showpage = "copyright";
/* 查询发布为页面底部的即时通讯在线状态按钮 */
$IntegrateIm->getList();
$strintegratim = "";
/* 读取组合即时通讯在线状态按钮 */
while($IntegrateIm->next()){
$strintegratim .= " ".$IntegrateIm->content;
}
/* 如果系统不是正式单店版本,并且需要显示版权信息,则生成显示内容 */
$shopSetup = newclass('shopSetup');
$shopSetup->shopId = $INC_SHOPID;
/*
if(LICENSE_4!="Formal"&&LICENSE_8==2&&!file_exists(dirname(__FILE__)."/../include/disable_copy.txt")) {
$mfcopyright = '';
$gen_id = $shopSetup->getValue('generalize_id');
if ($gen_id!=0) {
$strHref = "http://www.shopex.cn/r/{$gen_id}/";
} else {
$strHref = 'http://www.shopex.cn/';
}
$mfcopyright .= "<p align=center><a href=\"{$strHref}\" _fcksavedurl="\"{$strHref}\"" target=\"_blank\"><img src=\"{$INC_PAYBUTTON_URL}shopex_80-15.gif\" border=\"0\" alt=\"".$PROG_TAGS["ptag_powerby"]."\" /></a></p>";
} else {
$mfcopyright = "";
}
*/
/* 输出SHOPEX免费版POWERBY_BY图 */
$t->set_var("mfcopyright",$mfcopyright);
$checkStr = $shopSetup->getValue("license_certificate_str");
if($checkStr)
{
$str = urlencode($checkStr);
}
else
{
$str = urlencode("无");
}
if(strstr($_SERVER["HTTP_ACCEPT_ENCODING"],'gzip')&&strstr($_SERVER["HTTP_ACCEPT_ENCODING"],'deflate') &&function_exists('gzcompress')&&!(defined('SYS_GZIP')&&SYS_GZIP==false)) {
$gzipEnable = 'enabled';
} else {
$gzipEnable = 'disable';
}
$codeRunningTime = substr(getmicrotime()-$script_start_time,0,5);
$ref = $_SERVER['HTTP_HOST'];
$check = md5($ref.'ShopEx@Store');
$ptag_newpowerby=$PROG_TAGS["ptag_newpowerby"];
if ($frontShow->copyrightMode == 'copyright1.jpg') {
$copyright = <<<EOF
{$INC_COPYRIGHT}{$aliurl}<p>{$strintegratim}</p>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto; ">
<tr>
<td style="padding:0 10px 0 0;"><a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" target="_blank"><img src="syssite/dfiles/shopexstorelogo.jpg" /></a></td><td><table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto;line-height:16px">
<tr>
<td align="left"><a href="http://store.shopex.cn/rating/store_detail.php?ref={$ref}&check={$check}&str={$str}" style="color:#999" target="_blank">{$ptag_newpowerby}</a></td>
</tr>
<tr>
<td align="left" style="font-size:9px; font-family:Verdana; color:#999;">Processed in {$codeRunningTime} second(s) </td>
</tr>
<tr>
<td align="left" valign="top" style="font-size:9px; font-family:Verdana; color:#999;">Gzip {$gzipEnable}</td>
</tr>
</table></td>
</tr>
</table>
EOF;
} else {
$copyright = <<<EOF
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="line-height:14px">
<tr>
<td rowspan="3" style="padding:0; vertical-align:top;">
{$INC_COPYRIGHT}
{$aliurl}
<div style="line-height:14px">$t->set_var <a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\">$shopinfo->certtext</a></div>
<div style="line-height:14px">{$strintegratim}</div>
Processed in {$codeRunningTime} second(s) Gzip {$gzipEnable}. </td>
</tr>
</table>
EOF;
}
/* 输出版权信息,并将ALIPAY按钮 和 即时通讯在线状态按钮一起输出 */
$t->set_var("copyright",$copyright);
/* 输出ICP备案证信息 */
/*$t->set_var("certinfo", "<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\">".$shopinfo->certtext."</a>");*/
?>