ds ce mod,il ya ça de marqué pour includes/sessions.php mais je ne sais pas koi faire:je n'utilise ni mod mx Sitemaps, ni mxBB Portal.
quelle ligne faut-il supprimer ou faut il que je ne change rien ds ce fichier sessions.php
- Code: Tout sélectionner
function append_sid($url, $non_html_amp = false)
{
global $SID;
// phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpEx, $seo_cat_name, $seo_forum_name, $seo_topic_name;
$url = ( strstr ($url, 'start=0') ) ? str_replace( '&start=0', '', $url ) : $url;
$url = ( strstr ($url, 'postdays=0') ) ? str_replace( '&postdays=0', '', $url ) : $url;
$url = ( strstr ($url, 'topicdays=0') ) ? str_replace( '&topicdays=0', '', $url ) : $url;
$url = ( strstr ($url, 'postorder=asc') ) ? str_replace( '&postorder=asc', '', $url ) : $url;
if ( $seo_cat_name )
{
$urlin = array(
"'(?)index.php\?c=([0-9]+)((&)|(&)){0,1}'",
// mx Sitemaps Module (cat URL injection)
//"'(?)sitemaps([0-9]+)\.html((&)|(&)){0,1}'",
);
$urlout = array(
"".format_url($seo_cat_name)."-vc\\1.html".if_query('\\2')."",
// mx Sitemaps Module (cat URL injection)
//"".format_url($seo_cat_name)."-sc\\1.html".if_query('\\2')."",
);
$url = preg_replace($urlin, $urlout, $url);
}
if ( $seo_forum_name )
{
$urlin = array(
"'(?)viewforum.php\?f=([0-9]+)&start=([0-9]+)((&)|(&)){0,1}'",
"'(?)viewforum.php\?f=([0-9]+)((&)|(&)){0,1}'",
// mx Sitemaps Module (forum URL injection + pagination)
//"'(?)forum-map([0-9]+)\.html&start=([0-9]+)((&)|(&)){0,1}'",
//"'(?)forum-map([0-9]+)\.html((&)|(&)){0,1}'",
);
$urlout = array(
"".format_url($seo_forum_name)."-vf\\1-\\2.html".if_query('\\3')."",
"".format_url($seo_forum_name)."-vf\\1.html".if_query('\\2')."",
// mx Sitemaps Module (forum URL injection + pagination)
//"".format_url($seo_forum_name)."-fmp\\1-\\2.html".if_query('\\3')."",
//"".format_url($seo_forum_name)."-fmp\\1.html".if_query('\\2')."",
);
$url = preg_replace($urlin, $urlout, $url);
}
if ($seo_topic_name)
{
$urlin = array(
"'(?)viewtopic.php\?t=([0-9]+)&start=([0-9]+)((&)|(&)){0,1}'",
"'(?)viewtopic.php\?t=([0-9]+)((&)|(&)){0,1}'",
"'(?)viewtopic.php\?p=([0-9]+)((&)|(&)){0,1}'",
);
$urlout = array(
"".format_url($seo_topic_name)."-vt\\1-\\2.html".if_query('\\3')."",
"".format_url($seo_topic_name)."-vt\\1.html".if_query('\\2')."",
"".format_url($seo_topic_name)."-vp\\1.html".if_query('\\2')."",
);
$url = preg_replace($urlin, $urlout, $url);
}
$url = preg_replace("'(?)profile.php\?mode\=viewprofile&u=([0-9]+)'", "membre\\1.html", $url);
// mx Sitemaps Module (mxBB map URL + pagination)
//$url = preg_replace("'(?)mx-map\.html&start=([0-9]+)'", "mx-map\\1.html", $url);
$url = (substr($url, strlen($url) - 1, 1) == '?') ? substr($url, 0, strlen($url) - 1) : $url;
// phpBB-SEO.com SEO TOOLKIT END
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') !== false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
return $url;
}

Français |
Anglais
