Fix: function "split" is deprecated since php 5.3.0
This commit is contained in:
parent
d50d4bae7c
commit
679ef74b24
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user