|
|
|||
|
|||
| Autor: | threegee | ||
| Titel: | RedireX » zum Support-Thread | ||
| Demo: | http://keine_demo.de | ||
| Version: | 1.0 | ||
| Beschreibung: | Was macht dieser Hack? Er fügt einen Redirektor an jeden Link, der den Forenserver verlässt. Wofür ist sowas gut? -> Referrer verstecken öffne ./acp/lib/class_parse.php Suche function formaturl($url, $title="", $maxwidth=60, $width1=40, $width2=-15) { if(!trim($title)) $title=$url; if(!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url"; if($this->cuturls==1 && strlen($title)>$maxwidth && !strstr(strtolower($title),"[img]") && !strstr(strtolower($title),"<img")) $title = substr($title,0,$width1)."...".substr($title,$width2); return "<a href=\"$url\" target=\"_blank\">".str_replace("\\\"", "\"", $title)."</a>"; } Ersetze Durch function formaturl($url, $title="", $maxwidth=60, $width1=40, $width2=-15) { $boardurls = array("www.domain1.de","www.domain2.de"); // Hier alle Domains reinschreiben! $host = parse_url($url); $host = $host['host']; if(!trim($title)) $title=$url; if(!preg_match("/[a-z]:\/\//si", $url)) $url = "http://$url"; if($this->cuturls==1 && strlen($title)>$maxwidth && !strstr(strtolower($title),"[img]") && !strstr(strtolower($title),"<img")) $title = substr($title,0,$width1)."...".substr($title,$width2); if(in_array($host, $boardurls)) { return "<a href=\"$url\" target=\"_blank\">".str_replace("\\\"", "\"", $title)."</a>"; } else { return "<a href=\"redir.php?url=".urlencode($url)."\" target=\"_blank\">".str_replace("\\\"", "\"", $title)."</a>"; } } Suche Nach redir.php?url=".urlencode($url)." Ersetze Durch http://3275.adref.in/?".urlencode($url)." |
||
| Datum: | 01.11.06 17:38 | ||
| Letzte Aktualisierung: | 01.11.06 17:38 | ||
| Dateigröße: | 2 KB | ||
| Downloads: | 34 | ||
|
|||