#1645 fix - missing function in PHP4
This commit is contained in:
parent
ca0b89bd6e
commit
51e3aa1162
2 changed files with 12 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define('LS_VERSION', '1.1');
|
define('LS_VERSION', '1.1');
|
||||||
|
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* configuration structure:
|
* configuration structure:
|
||||||
|
@ -168,4 +169,15 @@ if(!is_null($this_file)){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!PHP5){
|
||||||
|
eval('
|
||||||
|
define("FILE_APPEND", TRUE);
|
||||||
|
function file_put_contents($f, $s, $ap=FALSE){
|
||||||
|
$fp=fopen($f, $ap==FILE_APPEND ? "a" : "w");
|
||||||
|
fwrite($fp,$s);
|
||||||
|
fclose($fp);
|
||||||
|
}
|
||||||
|
');
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
Location : $URL$
|
Location : $URL$
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
|
|
||||||
|
|
||||||
/* ====================================================== specific PHP config */
|
/* ====================================================== specific PHP config */
|
||||||
//error_reporting(0);
|
//error_reporting(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue