Elvis: Problem mit $HTTP_POST_VARS nach Serverumzug

Beitrag lesen

Ich habe ein Script für den Mailversand. Benutzt wird eine datei namens phpeasymail.lib. Leider bekomme ich nach dem Serverumzug einen Fehler und der Versand geht ohne Feldinhalt ungefähr so: "%Feld%". Register Globals ist an.
Folgene Fehler tauchen auf:

Warning: reset() [function.reset]: Passed variable is not an array or object in /is/htdocs/wp10592299_60PZ4VU5FX/www.xxx.de/lib/common.lib on line 131

Warning: Variable passed to each() is not an array or object in /is/htdocs/wp10592299_60PZ4VU5FX/www.xxx.de/lib/common.lib on line 135

Warning: reset() [function.reset]: Passed variable is not an array or object in /is/htdocs/wp10592299_60PZ4VU5FX/www.xxx.de/lib/common.lib on line 131

Warning: Variable passed to each() is not an array or object in /is/htdocs/wp10592299_60PZ4VU5FX/www.xxx.de/lib/common.lib on line 135

Fehlerhafte Position:

  
// Function replaces variables into templates  
function build_body ($bbody = "") {  
 global $HTTP_POST_VARS;  
 reset($HTTP_POST_VARS);   //Zeile 131  
  
 if (!empty($bbody)) {  
    // Fill in variables into the template  
    while (list($header, $value) = each($HTTP_POST_VARS)) { // Zeile 135  
       $bbody = ereg_replace("%".$header."%", $value, $bbody);  
    } // endwhile  
 } else {  
    // Simply add variables line by line  
    $bbody = "";  
    sort($HTTP_POST_VARS);  
    while (list($header, $value) = each($HTTP_POST_VARS)) {  
       $bbody = $bbody."\n$header: $value";  
    }   // endwhile  
 }   // endif  
  
 return $bbody;  
  
}   // endfunc  

Weis jemand des Rätsels Lösung? Ich denke es hat was mit dem Server zu tun.