#1645 fix - missing function in PHP4

This commit is contained in:
tomash 2006-03-29 13:53:24 +00:00
parent ca0b89bd6e
commit 51e3aa1162
2 changed files with 12 additions and 1 deletions

View file

@ -34,6 +34,7 @@
*/
define('LS_VERSION', '1.1');
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
/**
* 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);
}
');
}
?>

View file

@ -27,7 +27,6 @@
Location : $URL$
------------------------------------------------------------------------------*/
define('PHP5', version_compare( phpversion(), "5.0.0", ">=" ));
/* ====================================================== specific PHP config */
//error_reporting(0);