Hallo,
Sodalla, wieder eine Frage, die mich beschäftigt:
Ich filtere mit folgendem Script Javascript und PHP-Code aus einem übergebenen Inhalt:
function Scripting_filtern ($Inhalt)
{
  $Dummy = strtoupper ($Inhalt);
while (is_integer ($Anfang = strpos ($Dummy, "JAVASCRIPT:")) && $Anfang >= 0)
  {
    $Inhalt = substr_replace ($Inhalt, "", $Anfang, 11);
    $Dummy = strtoupper ($Inhalt);
  }
while (is_integer ($Anfang = strpos ($Dummy, "TEXT/JAVASCRIPT")) && $Anfang >= 0)
  {
    $Inhalt = substr_replace ($Inhalt, "", $Anfang, 15);
    $Dummy = strtoupper ($Inhalt);
  }
while (is_integer ($Anfang = strpos ($Dummy, "APPLICATION/X-JAVASCRIPT")) && $Anfang >= 0)
  {
    $Inhalt = substr_replace ($Inhalt, "", $Anfang, 24);
    $Dummy = strtoupper ($Inhalt);
  }
$Ende = 0;
while ((is_integer ($Anfang = strpos($Dummy, "<?")) && $Anfang >= 0) && (is_integer ($Ende = strpos($Dummy, "?>")) && $Ende >= 0))
  {
    $Inhalt = substr_replace ($Inhalt, "", $Anfang, $Ende - $Anfang);
    $Dummy = strtoupper ($Inhalt);
  }
while ((is_integer ($Anfang = strpos($Dummy, "<%")) && $Anfang >= 0) && (is_integer ($Ende = strpos($Dummy, "%>")) && $Ende >= 0))
  {
    $Inhalt = substr_replace ($Inhalt, "", $Anfang, $Ende - $Anfang);
    $Dummy = strtoupper ($Inhalt);
  }
}
Mein Problem ist nun aber, wie ich den in Grossbuchstaben umewandelten Inhalt wieder in seine ursprüngliche Form bringe.
Wie könnte ich das am besten anstellen ?
Vielen Dank im voraus.
Gruss, Enrico
 nicht angemeldet
 nicht angemeldet