backup_roundcube.php to work with php 5.2

Version 1.58


Yes, I know it's EOL.. but some are using it anyway. The script/backup_roundcube.php makes a call to: $mysql_conf = @parse_ini_file("/usr/local/directadmin/conf/mysql.conf", false, INI_SCANNER_RAW); but the 3rd funciton parameter only existed since php 5.3. We can now use both: if (version_compare(PHP_VERSION, '5.3.0', '<')) { $mysql_conf = @parse_ini_file("/usr/local/directadmin/conf/mysql.conf", false); } else { $mysql_conf = @parse_ini_file("/usr/local/directadmin/conf/mysql.conf", false, INI_SCANNER_RAW); } Same change applied to restore_roundcube.php. P.S. use newer versions.

Interested to try DirectAdmin? Get a 30-day Free Trial!