Added backup_required_functions to pre-check required functions in

backup/restore process.
This commit is contained in:
stronk7
2003-06-12 15:33:25 +00:00
parent bb7ca60b29
commit fe3c84ab46
+12
View File
@@ -355,4 +355,16 @@
return addslashes(utf8_decode($data));
}
//This function is used to check that every necessary function to
//backup/restore exists in the current php installation. Thanks to
//[email protected] by the idea.
function backup_required_functions() {
if(!function_exists('utf8_encodes') {
error('You need to add utf8 support to your PHP installation');
}
}
?>