Shopex技巧:去除shopex版權 

 

 

http://www.inspirr.com 
 

 


 

 

 

這樣做是有一些不厚道了,建議大家只是學一下方法,版權么還是保留著對你也沒什么不好,好下面我們來去除版權這是原始代碼,修改我加亮的部份就ok了,shop文件夾中的TPL_BOTTOM.php

  

這樣做是有一些不厚道了,建議大家只是學一下方法,版權么還是保留著對你也沒什么不好,好下面我們來去除版權

這是原始代碼,修改我加亮的部份就ok了,shop文件夾中的TPL_BOTTOM.php

<?php
/**
*
* 頁面底部模塊文件
*
* @package ShopEx網上商店系統
* @version 4.6
* @author ShopEx.cn <develop@shopex.cn>
* @urlhttp://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}&amp;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>
* @urlhttp://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>");*/
?>

 

 

   

 

  Tag: 設計公司 | 網頁設計公司 | 廣告公司 | 網站設計 | 平面設計 | 互動媒體 | 網頁設計 | Web design | Website design | design house | 媒體公司 | Iphone app | 程式設計 | Flash 網頁 | Flash game | 動畫設計 | 後期製作 | 網上商店 | 網上宣傳 | 網頁服務 |

arrow
arrow
    創作者介紹
    創作者 inspirr 的頭像
    inspirr

    inspirr

    inspirr 發表在 痞客邦 留言(0) 人氣()