Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Code: Alles auswählen
if ($vtopic AND $HTTP_GET_VARS['t']) {
$keyurl=$page_title_url;
$search = array( 'Ö', 'Ä', 'Ü','ö', 'ä', 'à', 'é', 'è', 'ü', 'ß', '°', '²', '³','§', '$', '%', '=', '`', '´', '|', '€', 'µ', '~',' ', '.', ',', "'", '"', '#','"', '&','+','>', '<', '!', '?','{','}','[', ']', '/','\\', ";", ")", "(", ':', '_', '*', '@', '^', '&','---', '--', '–');
$replace = array('oe', 'ae', 'ue', 'oe','ae', 'a', 'e', 'e', 'ue','ss', '', '', '', '', '','', '', '', '', '', '', '', '', '-', '-', '', '', '','', '', 'und','und', '', '', '', '', '','', '', '', '-', '', '', '', '', '', '-', '', '', '','und', '-', '-', '-');
$keyurl=str_replace($search, $replace, "$keyurl");
$keyurl = strtolower($keyurl);
$seite = $_SERVER['REQUEST_URI'];
if (strrpos($seite,'/') > 0)
$seite = substr($seite, strrpos($seite,'/'));
$start=$HTTP_GET_VARS['start'];
$tid=$HTTP_GET_VARS['t'];
if ($seite !="/$keyurl-t$tid.html" and $seite != "/$keyurl-t$tid-s$start.html") {
header("HTTP/1.1 301 Moved Permanently");
if (intval($start) > 0)
header("Location: $keyurl-t$tid-s$start.html");
else
header("Location: $keyurl-t$tid.html");
}
}
Code: Alles auswählen
// on the right page?
if(($start && ($total_posts < $config['posts_per_page'])) || ($start > $total_posts) || (!is_int($start/$config['posts_per_page'])) )
{
$script_path = ( $config['script_path'] != '/' ) ? $config['script_path'] . '/' : '/';
$req_addon_sid = ( isset($_GET['sid']) ) ? '?sid=' . $_GET['sid'] : '';
$needed_forum_url = $script_path . $forum . '/' . title_to_url($topic_data['topic_title']) . '-t' . $topic_data['topic_id'] . '.html' .$req_addon_sid;
header("HTTP/1.1 301 Moved Permanently");
header("Location: $needed_forum_url");
die;
}