Fix: function "split" is deprecated since php 5.3.0

This commit is contained in:
Regis Houssin 2009-10-21 19:49:29 +00:00
parent d50d4bae7c
commit 679ef74b24
3 changed files with 4 additions and 4 deletions

View File

@ -66,9 +66,9 @@ class geoipdnsrecord {
function getrecordwithdnsservice($str){ function getrecordwithdnsservice($str){
$record = new geoipdnsrecord; $record = new geoipdnsrecord;
$keyvalue = split(";",$str); $keyvalue = explode(";",$str);
foreach ($keyvalue as $keyvalue2){ foreach ($keyvalue as $keyvalue2){
list($key,$value) = split("=",$keyvalue2); list($key,$value) = explode("=",$keyvalue2);
if ($key == "co"){ if ($key == "co"){
$record->country_code = $value; $record->country_code = $value;
} }

View File

@ -150,7 +150,7 @@ class MagpieRSS {
// check for a namespace, and split if found // check for a namespace, and split if found
$ns = false; $ns = false;
if ( strpos( $element, ':' ) ) { if ( strpos( $element, ':' ) ) {
list($ns, $el) = split( ':', $element, 2); list($ns, $el) = explode( ':', $element, 2);
} }
if ( $ns and $ns != 'rdf' ) { if ( $ns and $ns != 'rdf' ) {
$this->current_namespace = $ns; $this->current_namespace = $ns;

View File

@ -181,7 +181,7 @@ function smarty_function_fetch($params, &$smarty)
$content .= fgets($fp,4096); $content .= fgets($fp,4096);
} }
fclose($fp); fclose($fp);
$csplit = split("\r\n\r\n",$content,2); $csplit = explode("\r\n\r\n",$content,2);
$content = $csplit[1]; $content = $csplit[1];