PHP ver gevorderde |
|
Ja dus dan kom ik weer uit op alles handmatig aanpassen
Kan denk ik niet anders dan.
Zoiets?
<?php
function append_sid($url, $non_html_amp = false)
{
global $SID, $mforum;
if ( !empty($SID) && !preg_match('#sid=#', $url) )
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID . "&mforum=$mforum";
}
else
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . "mforum=$mforum";
}
return $url;
}
?>
<?php function append_sid($url, $non_html_amp = false) { { $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID . "&mforum=$mforum"; } else { $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . "mforum=$mforum"; } return $url; } ?>
|