Das Problem ist, dass der Autor von CH immer mehr bei include() seine Funktion dazwischen quetscht:
Code: Alles auswählen
function url($basename, $parms=array(), $add_sid=false, $fragments='', $force=false, $external=false)
{
global $SID;
static $script_path;
$url_parms = '';
if ( empty($parms) )
{
$parms = array();
}
if ( $add_sid && empty($parms['sid']) )
{
$parms['sid'] = substr($SID, strlen('sid='));
}
if ( !empty($parms) )
{
foreach ( $parms as $key => $val )
{
if ( !empty($key) && (!empty($val) || $force) )
{
$url_parms .= (empty($url_parms) ? '?' : '&') . $key . '=' . $val;
}
}
}
if ( !empty($fragments) )
{
$url_parms .= (empty($url_parms) ? '?#' : '#') . $fragments;
}
if ( $external && empty($script_path) )
{
$script_path = $this->get_script_path();
}
return ($external ? $script_path : (trim(substr($this->root, 0, 2) == './') && $add_sid ? substr($this->root, 2) : $this->root)) . $basename . '.' . $this->ext . $url_parms;
}
Ich denke er wird so dem ./ .// etc. Problem Herr. Aber ich greife mit meinen SEOs genau auf die gleiche Funktion zu... dann schreibe ich um und dann wird die umgeschriebene Datei includet... und das geht in die Hose, weil z.B. include('test.html') nicht auf test.php zugreift
