Веб мастеру / DataLife Engine / DLE хаки
if( $this->filter_mode ) $txt = $this->word_filter( $txt, false );
$txt = preg_replace( "#<!--FFriend--><noindex><a rel=\"nofollow\" href=[\"'](http://|https://|ftp://|ed2k://|news://|magnet:)?(\S.+?)['\"].+?".">(.+?)</a></noindex><!--EndFFriend-->#ie" , "\$this->decode_friend('\\1\\2', '\\3')", $txt );
return "<a href=\"" . $url['html'] . "\" " . $target . ">" . $url['show'] . "</a>" . $url['end'];
if($this->check_home($url['html'])||$this->check_friends($url['html'])) {
return "<a href=\"" . $url['html'] . "\" " . $target . ">" . $url['show'] . "</a>" . $url['end']; }
else
{ $url['html'] = $config['http_home_url']."go/?".($url['html']);
return "<noindex><a rel=\"nofollow\" href=\"".$url['html']."\" ".$target.">" . $url['show'] . "</a></noindex>" . $url['end']; }
function word_filter($source, $encode = true) {
function check_friends ($url)
{
global $config;
$friend_url = file($config['http_home_url']."engine/friend/friend_user-net_url.txt");
for ($i = 0; $i < count($friend_url); $i++)
{
$value = str_replace("http://", "", trim($friend_url[$i]));
$value = str_replace("www.", "", $value);
$value = explode('/', $value);
$value = reset($value);
if ($value == "" ) continue;
if (strpos($url, $value) === false) continue; else return true;
}
return false;
}
return "" . $show . "";
}
function decode_friend($url="", $show="")
{
global $config;
$home_url = $config['http_home_url']."go/?";
$url = str_replace($home_url, "", $url);
$url = explode ("url=", $url);
$url = end ( $url );
$url = rawurldecode($url);
return "".$show."";
}
$friend_url = file($config['http_home_url']."engine/friend/friend_user-net_url.txt");
http://user-net.ru
http://user-net.ru
<?php
if (!empty($_SERVER['QUERY_STRING'])){
$re_addr=$_SERVER['QUERY_STRING'];
header('Location: '.$re_addr);
}
?>
DirectoryIndex index.php
RewriteEngine Off
Комментарии отключены..
Перед публикацией, советую ознакомится с правилами!
Нашли ошибку?
Вы можете сообщить об этом администрации.
Выделив текст нажмите CTRL+Enter