I've been trying to edit phpbb, in sessions.php
function append_sid($url, $non_html_amp = false){
global $SID;
if ( !preg_match('/php?/', $url) ){
$hehehe = "?forum=";
}
else{
$hehehe = "&forum=";
}
if ( !empty($SID) && !preg_match('#sid=#', $url) ){
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
$xstuffx1 = "?forum=";
$xstuffx2 = "&forum=";
return $url.$hehehe.$_SESSION["forumnameforurl"];
}
Basicly I want to add a variable at the end of all links, it seems to do so except if theirs already a variable it shows like this:
mydomain.com/somepage.php?variable=alreadyone
then it just ads ?after=that
I want it so whens theres already a variable I need it to be &after=that.
Any help?